Skip to content
Maidfile.toml 585 B
Newer Older
theMackabu's avatar
theMackabu committed
import = [".maid/build.toml", ".maid/server.toml"]
theMackabu's avatar
theMackabu committed
[project]
name = "pmc"
version = "2.0.0"
theMackabu's avatar
theMackabu committed

[tasks]
clean = { script = ["rm -rf bin", "mkdir bin"] }
theMackabu's avatar
theMackabu committed
api = { script = ["maid install -q", "pmc daemon start --api"] }
theMackabu's avatar
theMackabu committed
webui = { script = ["maid install -q", "pmc daemon start --webui"] }
theMackabu's avatar
theMackabu committed

[tasks.build]
depends = ["clean"]
script = [
   "cargo zigbuild --release", 
theMackabu's avatar
theMackabu committed
   "cp target/release/pmc bin/pmc"
]
theMackabu's avatar
theMackabu committed

[tasks.build.cache]
path = "src"
target = ["bin/pmc"]

theMackabu's avatar
theMackabu committed
[tasks.install]
script = [
theMackabu's avatar
theMackabu committed
   "killall pmc",
theMackabu's avatar
theMackabu committed
   "maid build -q", 
   "sudo cp bin/pmc /usr/local/bin",
theMackabu's avatar
theMackabu committed
   "echo Copied binary!"
theMackabu's avatar
theMackabu committed
]