Make wrapper JRE local
This commit is contained in:
committed by
Sheepit Renderfarm
parent
e42dc34e9f
commit
86eae5a6a9
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -3,3 +3,4 @@
|
|||||||
*.jar binary
|
*.jar binary
|
||||||
*.png binary
|
*.png binary
|
||||||
*.sfx binary
|
*.sfx binary
|
||||||
|
*.zip binary
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ image: openjdk:11
|
|||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
- test
|
- test
|
||||||
|
- wrap
|
||||||
- deploy
|
- deploy
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
@@ -30,20 +31,16 @@ test:
|
|||||||
- ./gradlew check
|
- ./gradlew check
|
||||||
|
|
||||||
wrap-client:
|
wrap-client:
|
||||||
stage: build
|
stage: wrap
|
||||||
image: debian:stable-slim
|
image: debian:stable-slim
|
||||||
needs:
|
|
||||||
- job: build-client
|
|
||||||
artifacts: true
|
|
||||||
variables:
|
variables:
|
||||||
JVM_NAME: "jdk-11.0.13+8-jre" # Taken from https://adoptium.net/releases.html?variant=openjdk11&jvmVariant=hotspot
|
JVM_NAME: "jdk-11.0.13+8-jre" # Taken from https://adoptium.net/releases.html?variant=openjdk11&jvmVariant=hotspot
|
||||||
script:
|
script:
|
||||||
- apt-get update
|
- apt-get update
|
||||||
- apt-get install -y --no-install-recommends unzip p7zip wget ca-certificates # Add dependencies
|
- apt-get install -y --no-install-recommends unzip p7zip # Add dependencies
|
||||||
- mkdir jre # Make folder hierarchy
|
- mkdir jre # Make folder hierarchy
|
||||||
- cp ./sheepit-client-all.jar jre/sheepit-client.jar # Copy client artifact to be packaged
|
- cp ./sheepit-client-all.jar jre/sheepit-client.jar # Copy client artifact to be packaged
|
||||||
- wget https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.13%2B8/OpenJDK11U-jre_x64_windows_hotspot_11.0.13_8.zip -O $JVM_NAME.zip
|
- unzip exe-wrapper/$JVM_NAME.zip # Unzip the Java Runtime Environment archive
|
||||||
- unzip $JVM_NAME.zip # Unzip the JRE
|
|
||||||
- cp -rf $JVM_NAME/* jre/ # Copy JRE to be packaged
|
- cp -rf $JVM_NAME/* jre/ # Copy JRE to be packaged
|
||||||
- cd jre
|
- cd jre
|
||||||
- 7zr a -mx=9 ../application.7z ./ # Compress and archive app package
|
- 7zr a -mx=9 ../application.7z ./ # Compress and archive app package
|
||||||
|
|||||||
BIN
exe-wrapper/jdk-11.0.13+8-jre.zip
Normal file
BIN
exe-wrapper/jdk-11.0.13+8-jre.zip
Normal file
Binary file not shown.
Reference in New Issue
Block a user