forked from hmphus/there-edge
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make BrowserProxy.rc for /f friendly, and add an after_build step to …
…appveyor.yml which creates an SFX installer
- Loading branch information
Showing
5 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
@echo off | ||
REM Read the version number from the resource file | ||
for /F "tokens=1,2" %%G in (%~dp0..\BrowserProxy\BrowserProxy.rc) do if "%%G" == "FILEVERSION" set FILEVERSION=%%H | ||
echo FILEVERSION=%FILEVERSION:,=.% | ||
REM Create the ZIP | ||
del "%~dp0OpennessWebView2.zip" | ||
"%ProgramFiles%\7-zip\7z.exe" a -mx9 "%~dp0OpennessWebView2.zip" "%~dp0..\BrowserProxy\Release\*.dll" "%~dp0..\LICENSE.md" "%~dp0setup.bat" | ||
REM Create the SFX | ||
"%~dp0makesfx.exe" ^ | ||
/zip="%~dp0OpennessWebView2.zip" ^ | ||
/sfx="%~dp0OpennessWebView2.exe" ^ | ||
/title="OpennessWebView2 Control" ^ | ||
/website="https://github.com/datadiode/webview2" ^ | ||
/intro="Version: %FILEVERSION:,=.%\n\nThis ActiveX control embeds Microsoft Edge WebView2\ninto SIMATIC WinCC Runtime Advanced.\n\nThe Microsoft Edge WebView2 Runtime needs to be\ninstalled to use this control." ^ | ||
/runelevated ^ | ||
/overwrite ^ | ||
/exec="\"cmd.exe\" /c setup.bat $cmdline$" ^ | ||
/defaultpath="$programfiles$\OpennessWebView2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
@echo off | ||
if /i not "%~x2" == ".cab" goto :register | ||
expand.exe -f:* %2 . | ||
echo [OpennessWebView2.dll] > OpennessWebView2.ini | ||
echo BrowserExecutableFolder=%~dp0%~n2 >> OpennessWebView2.ini | ||
:register | ||
regsvr32.exe OpennessWebView2.dll | ||
del %0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters