Skip to content

Commit

Permalink
https://ci.appveyor.com/tools/encrypt / Change VirusTotal JSON report…
Browse files Browse the repository at this point in the history
… filename extension to .jsn to make it HTA iframe friendly / Make builds reproducible with help of https://github.com/jasonwhite/ducible
  • Loading branch information
datadiode committed Oct 7, 2023
1 parent f697a0b commit 31caee8
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 10 deletions.
5 changes: 4 additions & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "Extras"]
path = Extras
url = git@github.com:hmphus/there-edge-extras.git
url = https://github.com/hmphus/there-edge-extras
[submodule "UnityDoorstop-BSIPA"]
path = UnityDoorstop-BSIPA
url = https://github.com/nike4613/UnityDoorstop-BSIPA
4 changes: 2 additions & 2 deletions BrowserProxy/BrowserProxy.rc
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ END
//

VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,1,2,4
PRODUCTVERSION 1,1,2,4
FILEVERSION 1,01,02,04
PRODUCTVERSION 1,01,02,04
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
Expand Down
6 changes: 6 additions & 0 deletions Installer/MakeSetup.bat
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
@echo off
cd "%~dp0"
set ducible.exe="..\UnityDoorstop-BSIPA\BuildUtils\ducible.exe"
for /f "tokens=*" %%G in ('where git.exe') do (set git.exe="%%G")
set touch.exe=%git.exe:cmd\git.exe=usr\bin\touch.exe%
REM Read the version number from the resource file
for /f "tokens=1,2" %%G in (..\BrowserProxy\BrowserProxy.rc) do if "%%G" == "FILEVERSION" set FILEVERSION=%%H
echo FILEVERSION=%FILEVERSION:,=.%
%ducible.exe% ..\BrowserProxy\Release\OpennessWebView2.dll
for /f delims^=^"^ tokens^=2 %%G in (OpennessWebView2.ddf) do %touch.exe% -t 20230%FILEVERSION:,=% %~dp0%%G
set FILEVERSION=%FILEVERSION:,0=,%
REM Create the CAB
makecab /f OpennessWebView2.ddf
REM Create the SFX
Expand Down
10 changes: 5 additions & 5 deletions Installer/OpennessWebView2.ddf
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
.Set Cabinet=on
.Set Compress=on
.Set CompressionType=LZX

.Set CompressionMemory=18
"..\LICENSE.md" "LICENSE.md"
"..\BrowserProxy\Release\OpennessWebView2.dll" "OpennessWebView2.dll"
"setup.bat" "setup.bat"
"..\BrowserProxy\Release\WebView2Loader.dll" "WebView2Loader.dll"

"..\LICENSE.md" "LICENSE.md"
"..\BrowserProxy\Release\OpennessWebView2.dll" "OpennessWebView2.dll"
"setup.bat" "setup.bat"
"..\BrowserProxy\Release\WebView2Loader.dll" "WebView2Loader.dll"
1 change: 1 addition & 0 deletions UnityDoorstop-BSIPA
Submodule UnityDoorstop-BSIPA added at 7fc2ae
12 changes: 10 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
version: 1.0.{build}
image: Visual Studio 2022

clone_script:
- git clone -q --recursive --branch=%APPVEYOR_REPO_BRANCH% https://github.com/%APPVEYOR_REPO_NAME%.git %APPVEYOR_BUILD_FOLDER%
- git checkout -qf %APPVEYOR_REPO_COMMIT%

environment:
VIRUSTOTAL_API_KEY:
secure: 6VgzXytQY3l+cUPsvEuhSqu/E8JqJQPOK1Kh7mViN0SJ1M3ZHzteSpC56q3HbWXSUCAhk7ynS0BVBYDWVxi5XSXdRLCRiWaAgG7zeNoNk6Q=

configuration:
- Release

Expand All @@ -15,9 +23,9 @@ build:

after_build:
- Installer\MakeSetup.bat
- bash.exe %APPVEYOR_BUILD_FOLDER%\virustotal_upload %APPVEYOR_BUILD_FOLDER%\Installer\OpennessWebView2.exe %APPVEYOR_BUILD_FOLDER%\Installer\virustotal_report.json
- bash.exe %APPVEYOR_BUILD_FOLDER%\virustotal_upload %APPVEYOR_BUILD_FOLDER%\Installer\OpennessWebView2.exe %APPVEYOR_BUILD_FOLDER%\Installer\virustotal_report.jsn

artifacts:
- path: BrowserProxy\$(configuration)\OpennessWebView2.dll
- path: Installer\OpennessWebView2.exe
- path: Installer\virustotal_report.json
- path: Installer\virustotal_report.jsn

0 comments on commit 31caee8

Please sign in to comment.