瀏覽代碼

update ci script

Armin Schrenk 1 年之前
父節點
當前提交
2c8d5d3d5d
共有 1 個文件被更改,包括 6 次插入1 次删除
  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