Skip to content

Commit

Permalink
Tidy-up
Browse files Browse the repository at this point in the history
  • Loading branch information
berry120 committed Feb 9, 2024
1 parent c9a7301 commit 0bd90e8
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,21 +52,22 @@ parts:
quelea:
plugin: nil
source: Quelea
build-packages: [unzip, wget, gstreamer1.0-plugins-base, gstreamer1.0-plugins-good, gstreamer1.0-plugins-bad, gstreamer1.0-plugins-ugly, gstreamer1.0-libav, gstreamer1.0-tools, gstreamer1.0-x, gstreamer1.0-alsa, gstreamer1.0-gl, gstreamer1.0-gtk3, gstreamer1.0-qt5, gstreamer1.0-pulseaudio, zlib1g, zlib1g-dev]
build-packages: [unzip, wget]
stage-packages: [libgdk-pixbuf2.0-bin, libxext6, libxrender1, libxtst6, libxi6, gstreamer1.0-plugins-base, gstreamer1.0-plugins-good, gstreamer1.0-plugins-bad, gstreamer1.0-plugins-ugly, gstreamer1.0-libav, gstreamer1.0-tools, gstreamer1.0-x, gstreamer1.0-alsa, gstreamer1.0-gl, gstreamer1.0-gtk3, gstreamer1.0-qt5, gstreamer1.0-pulseaudio, zlib1g, zlib1g-dev]
override-build: |
wget https://cdn.azul.com/zulu/bin/zulu21.32.17-ca-fx-jdk21.0.2-linux_x64.tar.gz
tar -xf zulu21.32.17-ca-fx-jdk21.0.2-linux_x64.tar.gz
wget -O jvm.tar.gz https://cdn.azul.com/zulu/bin/zulu21.32.17-ca-fx-jdk21.0.2-linux_x64.tar.gz
mkdir jvm
tar -xf jvm.tar.gz -C jvm --strip-components 1
wget https://services.gradle.org/distributions/gradle-8.6-bin.zip
unzip gradle-8.6-bin.zip
PATH=$PATH:$(pwd)/zulu21.32.17-ca-fx-jdk21.0.2-linux_x64/bin:$(pwd)/gradle-8.6/bin
JAVA_HOME=$(pwd)/zulu21.32.17-ca-fx-jdk21.0.2-linux_x64
PATH=$PATH:$(pwd)/jvm/bin:$(pwd)/gradle-8.6/bin
JAVA_HOME=$(pwd)/jvm
gradle -Djava.net.useSystemProxies=true -Dnightly=true -Dversionsuffix=CI-UNSTABLE clean labelcheck downloadJres downloadGStreamer createQueleaExe64 copyToDist
override-stage: |
snapcraftctl stage
mkdir -p $SNAPCRAFT_STAGE/jar/jvm
cp -a /build/quelea/parts/quelea/build/dist/. $SNAPCRAFT_STAGE/jar
cp -a /build/quelea/parts/quelea/build/zulu21.32.17-ca-fx-jdk21.0.2-linux_x64/. $SNAPCRAFT_STAGE/jar/jvm
cp -a /build/quelea/parts/quelea/build/jvm/. $SNAPCRAFT_STAGE/jar/jvm
override-prime: |
snapcraftctl prime
mkdir $SNAPCRAFT_PRIME/jar
Expand Down

0 comments on commit 0bd90e8

Please sign in to comment.