Merge branch 'board-gui-refactor' of https://github.com/SLCC-Programming-Club/Sudoku into board-gui-refactor

This commit is contained in:
Edwin Casady
2024-04-01 14:01:16 -06:00
20 changed files with 33 additions and 17 deletions
BIN
View File
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+3 -6
View File
@@ -2,15 +2,12 @@ function Run {
param(
[string]$flag
)
javac *.java
java App $flag
Remove-Item *.class
Remove-Item gui/*.class
Remove-Item gui/backend/*.class
javac -d bin *.java
java -cp bin App $flag
}
if ($args.Length -eq 1) {
$flag = $args[0]
}
Run $flag
Run $flag
Regular → Executable
+30 -11
View File
@@ -1,13 +1,32 @@
run() {
javac *.java
java App $1
rm *.class
rm gui/*.class
rm gui/backend/*.class
function run() {
if [[ $# -eq 0 ]]; then
# Compile the program
javac -d bin *.java
java -cp bin App
else
case $1 in
"-c" | "--cli")
# Run the program in the CLI
# Compile the program
javac -d bin *.java
java -cp bin App -c
;;
"-b" | "--build")
# Compile the program
javac -d bin *.java
;;
"-j" | "--jar")
# Create a JAR file
jar cfe sudoku.jar App -C bin .
;;
*)
echo "Invalid argument"
;;
esac
fi
}
if($# -eq 1) then
FLAG=$1
fi
run $FLAG
run $@
BIN
View File
Binary file not shown.