-
-
Notifications
You must be signed in to change notification settings - Fork 149
/
Copy pathgenerate_appcast.bat
40 lines (36 loc) · 1.5 KB
/
generate_appcast.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
@echo off
set tools_version=2.0.0-preview20201108002
set appcast_path=%UserProfile%\.dotnet\tools\netsparkle-generate-appcast.exe
set appcast_output=%cd%\UnrealBinaryBuilderUpdater
set appcast_binary=%cd%\Output
set appcast_mainexe=%appcast_binary%\UnrealBinaryBuilder.exe
set appcast_version=3.1.3
set appcast_release=https://github.com/ryanjon2040/Unreal-Binary-Builder/releases/download/%appcast_version%/UnrealBinaryBuilder.v%appcast_version%.zip
set appcast_changelog=https://raw.githubusercontent.com/ryanjon2040/UE4-Binary-Builder/master/CHANGELOG.md
set appcast_default_key_path=%localappdata%\netsparkle
set default_option=0
echo 1 for export-keys
echo 2 for force generate keys
echo 3 for verifying
echo 4 for generating appcast
set /p option=What would you like to do?:
echo %option%
if %option% == 1 (
%appcast_path% --export true
) else if %option% == 2 (
%appcast_path% --generate-keys --force true
%SystemRoot%\explorer.exe appcast_default_key_path
%appcast_path% --export true
) else if %option% == 3 (
set /p input_signature=Input your signature
%appcast_path% --verify "%appcast_mainexe%" --signature %input_signature%
) else if %option% == 4 (
if exist %appcast_path% (
echo Generating appcast.xml...
%appcast_path% -a "%appcast_output%" -b "%appcast_binary%" -e exe -o windows -u %appcast_release% -l %appcast_changelog% -n "Unreal Binary Builder" --key-path "%appcast_output%\keys"
echo Done.
) else (
echo generate_appcast.exe was not found.
)
)
pause