浏览代码

use pwsh for license generation to circumvent slash problem in url

Armin Schrenk 3 年之前
父节点
当前提交
835a5592fc
共有 1 个文件被更改,包括 16 次插入14 次删除
  1. 16 14
      .github/workflows/win-exe.yml

+ 16 - 14
.github/workflows/win-exe.yml

@@ -118,13 +118,14 @@ jobs:
       - name: Generate license for MSI
         run: >
           mvn -B license:add-third-party
-          -Dlicense.thirdPartyFilename=license.rtf
-          -Dlicense.outputDirectory=dist/win/resources
-          -Dlicense.fileTemplate=dist/win/resources/licenseTemplate.ftl
-          -Dlicense.includedScopes=compile
-          -Dlicense.excludedGroups=^org\.cryptomator
-          -Dlicense.failOnMissing=true
-          -Dlicense.licenseMergesUrl=file:///${{ github.workspace }}/license/merges
+          "-Dlicense.thirdPartyFilename=license.rtf"
+          "-Dlicense.outputDirectory=dist/win/resources"
+          "-Dlicense.fileTemplate=dist/win/resources/licenseTemplate.ftl"
+          "-Dlicense.includedScopes=compile"
+          "-Dlicense.excludedGroups=^org\.cryptomator"
+          "-Dlicense.failOnMissing=true"
+          "-Dlicense.licenseMergesUrl=file:///${{ github.workspace }}/license/merges"
+        shell: pwsh
       - name: Create MSI
         run: >
           ${JAVA_HOME}/bin/jpackage
@@ -208,13 +209,14 @@ jobs:
       - name: Generate license for exe
         run: >
           mvn -B license:add-third-party
-          -Dlicense.thirdPartyFilename=license.rtf
-          -Dlicense.fileTemplate=dist/win/bundle/resources/licenseTemplate.ftl
-          -Dlicense.outputDirectory=dist/win/bundle/resources
-          -Dlicense.includedScopes=compile
-          -Dlicense.excludedGroups=^org\.cryptomator
-          -Dlicense.failOnMissing=true
-          -Dlicense.licenseMergesUrl=file:///${{ github.workspace }}/license/merges
+          "-Dlicense.thirdPartyFilename=license.rtf"
+          "-Dlicense.fileTemplate=dist/win/bundle/resources/licenseTemplate.ftl"
+          "-Dlicense.outputDirectory=dist/win/bundle/resources"
+          "-Dlicense.includedScopes=compile"
+          "-Dlicense.excludedGroups=^org\.cryptomator"
+          "-Dlicense.failOnMissing=true"
+          "-Dlicense.licenseMergesUrl=file:///${{ github.workspace }}/license/merges"
+        shell: pwsh
       - name: Download WinFsp
         run:
           curl --output dist/win/bundle/resources/winfsp.msi -L ${{ env.WINFSP_MSI }}