From 880a342f4e1ede38e64a27c581b3727ed3e4f4aa Mon Sep 17 00:00:00 2001 From: Sebastian Stenzel Date: Tue, 20 Jul 2021 18:33:40 +0200 Subject: [PATCH] I've given up. Just have to deal with the artifact always containing a directory. --- .github/workflows/build.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 85e6d267b..6d4408ba9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -211,7 +211,7 @@ jobs: uses: actions/upload-artifact@v2 with: name: appdir-${{ matrix.profile }} - path: appdir/Cryptomator*/** + path: appdir/ if-no-files-found: error @@ -225,19 +225,13 @@ jobs: needs: [appdir] steps: - uses: actions/checkout@v2 - - name: Download buildkit-linux + - name: Download appdir-linux uses: actions/download-artifact@v2 with: name: appdir-linux - path: Cryptomator.AppDir - - name: Extract libjffi.so # workaround for https://github.com/cryptomator/cryptomator-linux/issues/27 - run: | - JFFI_NATIVE_JAR=`ls libs/ | grep -e 'jffi-[1-9]\.[0-9]\{1,2\}.[0-9]\{1,2\}-native.jar'` - ${JAVA_HOME}/bin/jar -xf libs/${JFFI_NATIVE_JAR} /jni/x86_64-Linux/ - mv jni/x86_64-Linux/* libs/libjffi.so - working-directory: Cryptomator.AppDir - name: Patch Cryptomator.AppDir run: | + mv Cryptomator Cryptomator.AppDir cp -r dist/appimage/resources/AppDir/* Cryptomator.AppDir/ chmod +x Cryptomator.AppDir/runtime/bin/java envsubst '${REVISION_NO}' < dist/appimage/resources/AppDir/bin/cryptomator.sh > Cryptomator.AppDir/bin/cryptomator.sh @@ -248,6 +242,12 @@ jobs: ln -s bin/cryptomator.sh Cryptomator.AppDir/AppRun env: REVISION_NO: ${{ needs.metadata.outputs.revNum }} + - name: Extract libjffi.so # workaround for https://github.com/cryptomator/cryptomator-linux/issues/27 + run: | + JFFI_NATIVE_JAR=`ls libs/ | grep -e 'jffi-[1-9]\.[0-9]\{1,2\}.[0-9]\{1,2\}-native.jar'` + ${JAVA_HOME}/bin/jar -xf libs/${JFFI_NATIVE_JAR} /jni/x86_64-Linux/ + mv jni/x86_64-Linux/* libs/libjffi.so + working-directory: Cryptomator.AppDir - name: Download AppImageKit run: | curl -L https://github.com/AppImage/AppImageKit/releases/download/13/appimagetool-x86_64.AppImage -o appimagetool.AppImage