Make wrapper JRE local

This commit is contained in:
DaCool
2022-01-03 10:52:49 +00:00
committed by Sheepit Renderfarm
parent e42dc34e9f
commit 86eae5a6a9
3 changed files with 5 additions and 7 deletions

1
.gitattributes vendored
View File

@@ -3,3 +3,4 @@
*.jar binary *.jar binary
*.png binary *.png binary
*.sfx binary *.sfx binary
*.zip binary

View File

@@ -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

Binary file not shown.