Build is now in lua
This commit is contained in:
parent
129b97f821
commit
b51037c42e
|
@ -0,0 +1,14 @@
|
||||||
|
#!/usr/bin/lua
|
||||||
|
|
||||||
|
print("Building pack...")
|
||||||
|
os.execute("cargo build --release")
|
||||||
|
os.execute("cp target/release/pack .")
|
||||||
|
print("Done!\n\n")
|
||||||
|
|
||||||
|
print("Setup environment? (requires root) [Y/n]:")
|
||||||
|
input = io.read()
|
||||||
|
if input == "y" then
|
||||||
|
os.execute("scripts/setup.sh")
|
||||||
|
else
|
||||||
|
print("Goodbye!\n")
|
||||||
|
end
|
|
@ -1,14 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
printf "Building pack..."
|
|
||||||
cargo build --release
|
|
||||||
cp target/release/pack .
|
|
||||||
printf "Done!\n\n"
|
|
||||||
|
|
||||||
printf "Setup environment? (requires root) [Y/n]: "
|
|
||||||
read input
|
|
||||||
if [ input == "y" ]; then
|
|
||||||
scripts/setup.sh
|
|
||||||
else
|
|
||||||
printf "Goodbye!\n"
|
|
||||||
fi
|
|
Loading…
Reference in New Issue