forked from marticliment/UniGetUI
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild_release.bat
48 lines (37 loc) · 1.47 KB
/
build_release.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
@echo off
rem update resources
python scripts/apply_versions.py
pushd scripts
python download_translations.py
popd ..
rem clean old builds
taskkill /im wingetui.exe /f
rmdir /Q /S src\wingetui\obj
rmdir /Q /S src\wingetui\bin
rem build executable
pushd src
nuget restore
popd ..
"C:\Program Files\Microsoft Visual Studio\2022\Preview\MSBuild\Current\Bin\amd64\MSBuild.exe" src/wingetui/wingetui.csproj /noLogo /property:Configuration=Release /property:Platform=x64
rem sign code
pushd Y:\WingetUI-Store\src\wingetui\bin\x64\Release\net8.0-windows10.0.19041.0
"Y:\- Signing\signtool-x64\signtool.exe" sign /v /debug /fd SHA256 /tr "http://timestamp.acs.microsoft.com" /td SHA256 /dlib "Y:\- Signing\azure.codesigning.client\x64\Azure.CodeSigning.Dlib.dll" /dmdf "Y:\- Signing\metadata.json" "wingetui.exe" "wingetui.dll"
popd
pause
set INSTALLATOR="%SYSTEMDRIVE%\Program Files (x86)\Inno Setup 6\ISCC.exe"
if exist %INSTALLATOR% (
%INSTALLATOR% "WingetUI.iss"
echo You may now sign the installer
"Y:\- Signing\signtool-x64\signtool.exe" sign /v /debug /fd SHA256 /tr "http://timestamp.acs.microsoft.com" /td SHA256 /dlib "Y:\- Signing\azure.codesigning.client\x64\Azure.CodeSigning.Dlib.dll" /dmdf "Y:\- Signing\metadata.json" "WingetUI Installer.exe"
pause
"wingetui Installer.exe"
) else (
echo "Make installer was skipped, because the installer is missing."
echo "Running WingetUI..."
start /b wingetuiBin/wingetui.exe
)
goto:end
:error
echo "Error!"
:end
pause