From 32f6d681642203edb643ff3b7daf837c63f53023 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sindre=20=C3=98strem?= Date: Tue, 17 Dec 2024 14:38:52 +0100 Subject: [PATCH] test installing fixed version --- .github/workflows/build.yml | 7 +++++++ src-tauri/tauri.conf.json | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d0132dc..34571aa 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -116,6 +116,13 @@ jobs: echo "'${{ github.ref_name }}' is not a valid version - using default. Must be a numerical only semver version." fi + - name: Supply webview2 + if: ${{ matrix.windows }} + run: | + curl -L https://msedge.sf.dl.delivery.mp.microsoft.com/filestreamingservice/files/023aa9c1-c16d-4b52-a1dd-55f125aa3061/Microsoft.WebView2.FixedVersionRuntime.131.0.2903.99.x86.cab -o . + cabextract Microsoft.WebView2.FixedVersionRuntime.131.0.2903.99.x86.cab --directory=./src-tauri/ + rm Microsoft.WebView2.FixedVersionRuntime.131.0.2903.99.x86.cab + - name: Tauri build uses: tauri-apps/tauri-action@v0 env: diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index b93d4cf..eedbc65 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -10,7 +10,8 @@ "targets": "all", "windows": { "webviewInstallMode": { - "type": "skip" + "type": "fixedRuntime", + "path": "./Microsoft.WebView2.FixedVersionRuntime.131.0.2903.99.x86/" } }, "shortDescription": "Filflytting og registrering fra skannermaskiner",