mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-13 12:04:06 +09:00
build suggestion to hide the jarfile into the subdir
This commit is contained in:
@@ -19,17 +19,24 @@ Create an output directory; its contents shall be:
|
|||||||
|
|
||||||
```
|
```
|
||||||
+assets
|
+assets
|
||||||
+runtime-linux-aarch64
|
+runtimes
|
||||||
+runtime-linux-amd64
|
`+runtime-linux-aarch64
|
||||||
+runtime-osx-amd64
|
`+runtime-linux-amd64
|
||||||
+runtime-osx-aarch64
|
`+runtime-osx-amd64
|
||||||
+runtime-windows-amd64
|
`+runtime-osx-aarch64
|
||||||
start_game_linux.sh
|
`+runtime-windows-amd64
|
||||||
start_game_mac.sh
|
`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
|
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.
|
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`.
|
||||||
@@ -1,3 +1,3 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
cd "${0%/*}"
|
cd "${0%/*}"
|
||||||
./runtime-linux-aarch64/bin/java -Xms1G -Xmx6G -jar TerrarumBuild.jar
|
./runtimes/runtime-linux-aarch64/bin/java -Xms1G -Xmx6G -jar ./runtimes/TerrarumBuild.jar
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
cd "${0%/*}"
|
cd "${0%/*}"
|
||||||
./runtime-linux-amd64/bin/java -Xms1G -Xmx6G -jar TerrarumBuild.jar
|
./runtimes/runtime-linux-amd64/bin/java -Xms1G -Xmx6G -jar ./runtimes/TerrarumBuild.jar
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
cd "${0%/*}"
|
cd "${0%/*}"
|
||||||
./runtime-osx-aarch64/bin/java -Xms1G -Xmx6G -jar TerrarumBuild.jar
|
./runtimes/runtime-osx-aarch64/bin/java -Xms1G -Xmx6G -jar ./runtimes/TerrarumBuild.jar
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
cd "${0%/*}"
|
cd "${0%/*}"
|
||||||
./runtime-osx-amd64/bin/java -Xms1G -Xmx6G -jar TerrarumBuild.jar
|
./runtimes/runtime-osx-amd64/bin/java -Xms1G -Xmx6G -jar ./runtimes/TerrarumBuild.jar
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
cd /D "%~dp0"
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user