build suggestion to hide the jarfile into the subdir

This commit is contained in:
minjaesong
2022-02-21 13:27:53 +09:00
parent 9c9a888496
commit 46b15c3d95
6 changed files with 21 additions and 14 deletions

View File

@@ -19,17 +19,24 @@ Create an output directory; its contents shall be:
```
+assets
+runtime-linux-aarch64
+runtime-linux-amd64
+runtime-osx-amd64
+runtime-osx-aarch64
+runtime-windows-amd64
start_game_linux.sh
start_game_mac.sh
+runtimes
`+runtime-linux-aarch64
`+runtime-linux-amd64
`+runtime-osx-amd64
`+runtime-osx-aarch64
`+runtime-windows-amd64
`TerrarumBuild.jar
start_game_linux_aarch64.sh
start_game_linux_x86_64.sh
start_game_mac_aarch64.sh
start_game_mac_x86_64.sh
start_game_windows.bat
TerrarumBuild.jar
```
whereas `runtime-*` are runtime directories generated from the commands above, `TerrarumBuild.jar` is the artifact built using the TerrarumBuild.
`start_game_*` files are on the root directory of the project; you only need to simply copy them over.
`start_game_*` files are on the root directory of the project; you only need to simply copy them over.
Hide the `.jar` within the subdirectory; users will think this file is the main executable and will try to execute it using whatever JVM they may (or may not) have.
And yes, I'm totally aware that `.sh` file says `x86_64` but the runtimes says `amd64`.

View File

@@ -1,3 +1,3 @@
#!/bin/bash
cd "${0%/*}"
./runtime-linux-aarch64/bin/java -Xms1G -Xmx6G -jar TerrarumBuild.jar
./runtimes/runtime-linux-aarch64/bin/java -Xms1G -Xmx6G -jar ./runtimes/TerrarumBuild.jar

View File

@@ -1,3 +1,3 @@
#!/bin/bash
cd "${0%/*}"
./runtime-linux-amd64/bin/java -Xms1G -Xmx6G -jar TerrarumBuild.jar
./runtimes/runtime-linux-amd64/bin/java -Xms1G -Xmx6G -jar ./runtimes/TerrarumBuild.jar

View File

@@ -1,3 +1,3 @@
#!/bin/bash
cd "${0%/*}"
./runtime-osx-aarch64/bin/java -Xms1G -Xmx6G -jar TerrarumBuild.jar
./runtimes/runtime-osx-aarch64/bin/java -Xms1G -Xmx6G -jar ./runtimes/TerrarumBuild.jar

View File

@@ -1,3 +1,3 @@
#!/bin/bash
cd "${0%/*}"
./runtime-osx-amd64/bin/java -Xms1G -Xmx6G -jar TerrarumBuild.jar
./runtimes/runtime-osx-amd64/bin/java -Xms1G -Xmx6G -jar ./runtimes/TerrarumBuild.jar

View File

@@ -1,2 +1,2 @@
cd /D "%~dp0"
runtime-windows-amd64\bin\java -Xms1G -Xmx6G -jar TerrarumBuild.jar
runtimes\runtime-windows-amd64\bin\java -Xms1G -Xmx6G -jar .\runtimes\TerrarumBuild.jar