Browse Source

use multiline command for msi job

Armin Schrenk 4 years ago
parent
commit
19d7aa09f3
1 changed files with 16 additions and 21 deletions
  1. 16 21
      .github/workflows/build.yml

+ 16 - 21
.github/workflows/build.yml

@@ -430,7 +430,6 @@ jobs:
           cp dist/win/contrib/* appdir/Cryptomator
           cp dist/win/contrib/* appdir/Cryptomator
       - name: Fix permissions
       - name: Fix permissions
         run: attrib -r appdir/Cryptomator/Cryptomator.exe
         run: attrib -r appdir/Cryptomator/Cryptomator.exe
-        shell: pwsh
       - name: Codesign
       - name: Codesign
         uses: skymatic/code-sign-action@v1.0.1
         uses: skymatic/code-sign-action@v1.0.1
         with:
         with:
@@ -440,27 +439,23 @@ jobs:
           timestampUrl: 'http://timestamp.digicert.com'
           timestampUrl: 'http://timestamp.digicert.com'
           folder: appdir/Cryptomator
           folder: appdir/Cryptomator
           recursive: true
           recursive: true
-      - name: Prepare env for building msi
-        run: |
-          $path = (Get-Location).Path + "\dist\win\resources" 
-          [Environment]::SetEnvironmentVariable("JpackageWixWizardResources", $path, 'Machine')
-        shell: pwsh
       - name: Create MSI
       - name: Create MSI
-        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 
+        run: |
+          $Env:JpackageWixWizardResources = (Get-Location).Path + "\dist\win\resources" 
+          ${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
           --license-file dist/win/resources/license.rtf
       - name: Codesign MSI
       - name: Codesign MSI
         uses: skymatic/code-sign-action@v1.0.1
         uses: skymatic/code-sign-action@v1.0.1