Browse Source

try a simpler way to set an environment variable

Sebastian Stenzel 3 years ago
parent
commit
9c7b86f270
1 changed files with 17 additions and 17 deletions
  1. 17 17
      .github/workflows/build.yml

+ 17 - 17
.github/workflows/build.yml

@@ -441,24 +441,24 @@ jobs:
           folder: appdir/Cryptomator
           recursive: true
       - name: Create MSI
-        run: |
-          $Env:JpackageWixWizardResources = (Get-Location).Path + "\dist\win\resources" 
-          & "$Env:JAVA_HOME\bin\jpackage" `
-          --verbose `
-          --type msi `
-          --win-upgrade-uuid bda45523-42b1-4cae-9354-a45475ed4775 `
-          --app-image appdir/Cryptomator `
-          --dest installer `
-          --name Cryptomator `
-          --vendor "Skymatic GmbH" `
-          --copyright "(C) 2016 - 2021 Skymatic GmbH" `
-          --app-version "${{ needs.metadata.outputs.versionNum }}" `
-          --win-shortcut `
-          --win-menu `
-          --win-dir-chooser `
-          --resource-dir dist/win/resources `
+        run: >
+          ${JAVA_HOME}/bin/jpackage
+          --verbose
+          --type msi
+          --win-upgrade-uuid bda45523-42b1-4cae-9354-a45475ed4775
+          --app-image appdir/Cryptomator
+          --dest installer
+          --name Cryptomator
+          --vendor "Skymatic GmbH"
+          --copyright "(C) 2016 - 2021 Skymatic GmbH"
+          --app-version "${{ needs.metadata.outputs.versionNum }}"
+          --win-shortcut
+          --win-menu
+          --win-dir-chooser
+          --resource-dir dist/win/resources
           --license-file dist/win/resources/license.rtf
-        shell: pwsh
+        env:
+          JpackageWixWizardResources: ${{ github.workspace }}/dist/win/resources # seems to require an abs path?
       - name: Codesign MSI
         uses: skymatic/code-sign-action@v1.0.1
         with: