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.
+2 -5
View File
@@ -2,11 +2,8 @@ function Run {
param( param(
[string]$flag [string]$flag
) )
javac *.java javac -d bin *.java
java App $flag java -cp bin App $flag
Remove-Item *.class
Remove-Item gui/*.class
Remove-Item gui/backend/*.class
} }
if ($args.Length -eq 1) { if ($args.Length -eq 1) {
Regular → Executable
+30 -11
View File
@@ -1,13 +1,32 @@
run() { function run() {
javac *.java if [[ $# -eq 0 ]]; then
java App $1 # Compile the program
rm *.class javac -d bin *.java
rm gui/*.class java -cp bin App
rm gui/backend/*.class 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 run $@
FLAG=$1
fi
run $FLAG
BIN
View File
Binary file not shown.