-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8046df7
commit 1e58f06
Showing
3 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/usr/bin/env bash | ||
|
||
case $1 in | ||
"build" | "b") | ||
scripts/build.sh --full || exit 1 | ||
;; | ||
"genProto" | "gp") | ||
scripts/genProto.sh || exit 1 | ||
;; | ||
"miniBuild" | "mb") | ||
scripts/build.sh || exit 1 | ||
;; | ||
"migrate" | "m") | ||
scripts/migrate.sh || exit 1 | ||
;; | ||
"close") | ||
exit 0 | ||
;; | ||
*) | ||
echo "This is the NookureStaff build tool. Please specify a command to run." | ||
echo "" | ||
echo "Commands:" | ||
echo " * b, build | Builds the project" | ||
echo " * gp, genProto | Generates the protobuf classes" | ||
echo " * mb, miniBuild | Builds the project without running the full build" | ||
echo " * m, migrate | Migrates the project to the latest version" | ||
echo " * close | Closes the build tool" | ||
exit 1 | ||
;; | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env bash | ||
|
||
if [ "$1" == "--full" ]; then | ||
echo "Building full project" | ||
./scripts/genProto.sh | ||
./scripts/migrate.sh | ||
fi | ||
|
||
echo "Building project..." | ||
./gradlew shadowJar | ||
|
||
echo "Build successful!" | ||
echo "You can find the jar file in the build/libs directory." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env bash | ||
|
||
echo "Generating protobuf files..." | ||
|
||
git submodule update --init | ||
|
||
protoc --proto_path=NookureStaff-Protobuf --java_out=lite:NookureStaff-API/src/main/java/ NookureStaff-Protobuf/*.proto |