Build is now in lua
This commit is contained in:
parent
129b97f821
commit
b51037c42e
2 changed files with 14 additions and 14 deletions
14
scripts/build
Executable file
14
scripts/build
Executable file
|
@ -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 a new issue