mirror of
https://github.com/taigrr/wails.git
synced 2026-04-02 05:08:54 -07:00
[windows] Update WebView2 to 1.0.864.35
This commit is contained in:
@@ -1 +0,0 @@
|
||||
These files were generated using the scripts in the [webview](https://github.com/webview/webview) project and compressed using UPX.
|
||||
File diff suppressed because it is too large
Load Diff
11
v2/internal/ffenestri/windows/scripts/README.md
Normal file
11
v2/internal/ffenestri/windows/scripts/README.md
Normal file
@@ -0,0 +1,11 @@
|
||||
# Build
|
||||
|
||||
This script will download the given webview2 sdk version and copy out the files necessary for building Wails apps.
|
||||
|
||||
## Prerequistes
|
||||
|
||||
- nuget
|
||||
|
||||
## Usage
|
||||
|
||||
`updatesdk.bat <version>`
|
||||
18
v2/internal/ffenestri/windows/scripts/updatesdk.bat
Normal file
18
v2/internal/ffenestri/windows/scripts/updatesdk.bat
Normal file
@@ -0,0 +1,18 @@
|
||||
@echo off
|
||||
IF %1.==. GOTO NoVersion
|
||||
nuget install microsoft.web.webview2 -Version %1 -OutputDirectory . >NUL || goto :eof
|
||||
echo Downloaded microsoft.web.webview2.%1
|
||||
|
||||
set sdk_version=%1
|
||||
set native_dir="%~dp0\microsoft.web.webview2.%sdk_version%\build\native"
|
||||
copy "%native_dir%\include\*.h" .. >NUL
|
||||
copy "%native_dir%\x64\WebView2Loader.dll" "..\x64" >NUL
|
||||
@rd /S /Q "microsoft.web.webview2.%sdk_version%"
|
||||
del /s version.txt >nul 2>&1
|
||||
echo The version of WebView2 used: %sdk_version% > version.txt
|
||||
echo SDK updated to %sdk_version%
|
||||
goto :eof
|
||||
|
||||
:NoVersion
|
||||
echo Please provide a version number, EG: 1.0.664.37
|
||||
goto :eof
|
||||
Binary file not shown.
Reference in New Issue
Block a user