-
-
Notifications
You must be signed in to change notification settings - Fork 326
/
build_release.bat
51 lines (39 loc) · 1.16 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
49
50
51
@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
rem build executable
dotnet clean src/UniGetUI.sln
dotnet publish src/UniGetUI/UniGetUI.csproj /noLogo /property:Configuration=Release /property:Platform=x64
rem sign code
pushd src\UniGetUI\bin\x64\Release\net8.0-windows10.0.19041.0\win-x64\publish
echo .
echo .
echo You may want to sign now the following executables
cd
echo WingetUI.dll
echo WingetUI.exe
echo .
echo .
pause
cp WingetUI.exe UniGetUI.exe
popd
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."
)
goto:end
:error
echo "Error!"
:end
pause