@@ 0,0 1,50 @@
+image: archlinux
+packages:
+ - jdk-adoptopenjdk
+ - maven
+ - unzip
+ - python-pip
+sources:
+ - https://github.com/cryptomator/cryptomator-linux.git
+tasks:
+ - build: |
+ sudo archlinux-java set java-14-adoptopenjdk
+ cd cryptomator-libre/main
+ mvn clean install -Prelease
+ - check: |
+ cd cryptomator-libre/main/buildkit/target
+ ls
+ mv buildkit-linux.zip ~/
+ - build-appdir: |
+ unzip buildkit-linux.zip
+ export UPSTREAM_VERSION="`cat libs/version.txt`"
+ export JAVA_HOME="/usr/lib/jvm/java-14-adoptopenjdk"
+ echo $UPSTREAM_VERSION
+ echo $JAVA_HOME
+ ${JAVA_HOME}/bin/jlink --verbose --output runtimeImage --module-path "${JAVA_HOME/}/jmods" --add-modules java.base,java.logging,java.xml,java.sql,java.management,java.security.sasl,java.naming,java.datatransfer,java.security.jgss,java.rmi,java.scripting,java.prefs,java.desktop,jdk.unsupported,java.net.http,jdk.crypto.ec --no-header-files --no-man-pages --strip-debug --strip-native-commands --compress=1
+ ${JAVA_HOME}/bin/jpackage --verbose --type app-image --runtime-image runtimeImage --input libs --dest app --name Cryptomator --vendor "Skymatic GmbH" --copyright "(C) 2016 - 2020 Skymatic GmbH" --app-version ${UPSTREAM_VERSION} --java-options "-Dcryptomator.logDir=\"~/.local/share/Cryptomator/logs\"" --java-options "-Dcryptomator.settingsPath=\"~/.config/Cryptomator/settings.json:~/.Cryptomator/settings.json\"" --java-options "-Dcryptomator.ipcPortPath=\"~/.config/Cryptomator/ipcPort.bin:~/.Cryptomator/ipcPort.bin\"" --java-options "-Dcryptomator.mountPointsDir=\"~/.local/share/Cryptomator/mnt\"" --java-options "-Dcryptomator.buildNumber=\"appimage-${JOB_ID}" --java-options "-Xss2m" --java-options "-Xmx512m" --main-class org.cryptomator.launcher.Cryptomator --main-jar launcher-${UPSTREAM_VERSION}.jar
+ - build-appimage: |
+ mv app/Cryptomator ./cryptomator-linux/Cryptomator.AppDir
+ cd cryptomator-linux
+ cp -r resources/appimage/AppDir/* Cryptomator.AppDir/
+ ln -s usr/share/icons/hicolor/scalable/apps/org.cryptomator.Cryptomator.svg Cryptomator.AppDir/org.cryptomator.Cryptomator.svg
+ ln -s usr/share/icons/hicolor/scalable/apps/org.cryptomator.Cryptomator.svg Cryptomator.AppDir/Cryptomator.svg
+ ln -s usr/share/icons/hicolor/scalable/apps/org.cryptomator.Cryptomator.svg Cryptomator.AppDir/.DirIcon
+ ln -s usr/share/applications/org.cryptomator.Cryptomator.desktop Cryptomator.AppDir/Cryptomator.desktop
+ ln -s bin/Cryptomator Cryptomator.AppDir/AppRun
+ curl -L https://github.com/AppImage/AppImageKit/releases/download/12/appimagetool-x86_64.AppImage -o ./tools/appimagekit/appimagetool.AppImage
+ chmod +x ./tools/appimagekit/appimagetool.AppImage
+ (cd ./tools/appimagekit && ./appimagetool.AppImage --appimage-extract)
+ ./tools/appimagekit/squashfs-root/AppRun Cryptomator.AppDir cryptomator-$UPSTREAM_VERSION-x86_64.AppImage
+ ls
+ - deploy: |
+ mv cryptomator-linux/*.AppImage ~/
+ ls
+ pip install pyupload
+ export PATH="$PATH:/home/build/.local/bin"
+ pyupload *.AppImage --host=catbox
+ echo "Farewell!"
+triggers:
+ - action: email
+ condition: always
+ to: Nate Ijams <nate@ijams.tk>