浏览代码

I've given up. Just have to deal with the artifact always containing a directory.

Sebastian Stenzel 3 年之前
父节点
当前提交
880a342f4e
共有 1 个文件被更改,包括 9 次插入9 次删除
  1. 9 9
      .github/workflows/build.yml

+ 9 - 9
.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