Browse Source

update ci script

Armin Schrenk 1 year ago
parent
commit
2c8d5d3d5d
1 changed files with 6 additions and 1 deletions
  1. 6 1
      .github/workflows/win-exe.yml

+ 6 - 1
.github/workflows/win-exe.yml

@@ -260,9 +260,14 @@ jobs:
         shell: pwsh
       - name: Download WinFsp
         run: |
-          $winfspUrl = (Select-String -Path ".\dist\win\bundle\resources\winFspMetaData.wxi" -Pattern '<\?define BundledWinFspDownloadLink="(.+)".*?>').Matches.Groups[1].Value
+          $winfspUrl = (Select-String -Path ".\dist\win\bundle\resources\winfsp.url" -Pattern 'URL=(https://.+)$').Matches.Groups[1].Value
           curl --output dist/win/bundle/resources/winfsp.msi -L $winfspUrl
         shell: pwsh
+      - name: Download Legacy-WinFsp uninstaller
+        run: |
+          $winfspUninstallerUrl = (Select-String -Path ".\dist\win\bundle\resources\winfsp-uninstaller.url" -Pattern 'URL=(https://.+)$').Matches.Groups[1].Value
+          curl --output dist/win/bundle/resources/winfsp-uninstaller.exe -L $winfspUninstallerUrl
+        shell: pwsh
       - name: Compile to wixObj file
         run: >
           "${WIX}/bin/candle.exe" dist/win/bundle/bundleWithWinfsp.wxs