Add installer generation

This commit is contained in:
odrling 2020-11-19 01:09:49 +01:00
parent 7c7c6ce14a
commit 4688813b2a
2 changed files with 34 additions and 13 deletions

View File

@ -19,6 +19,10 @@ jobs:
openssl
ninja
nasm
gettext
curl
unzip
tree
mingw-w64-x86_64-boost
mingw-w64-x86_64-wxWidgets
mingw-w64-x86_64-cmake
@ -27,9 +31,24 @@ jobs:
mingw-w64-x86_64-ffms2
mingw-w64-x86_64-glib2
mingw-w64-x86_64-python-pip
- name: CI-Build
- name: Install Meson
run: |
MSYSTEM= pip install meson
- name: Build Aegisub
run: |
MSYSTEM= meson builddir -Ddefault_library=static
ninja -C builddir
- name: Create installer
run: |
tree
curl -o "aegisub-codecs.zip" https://mugen.karaokes.moe/downloads/aegisub-codecs.zip
for i in po/*.po; do
msgfmt -o $(basename $i .po).mo $i
done
cd packages/win_installer
curl -o "innosetup.zip" https://hikari.butaishoujo.moe/b/52a01bb4/innosetup.zip
unzip innosetup.zip
innosetup/ISCC.exe aegisub3.iss

View File

@ -76,18 +76,20 @@ begin
CurStepChangedMigration(CurStep);
if CurStep = ssPostInstall then
begin
if IsTaskSelected('checkforupdates') then
Updates := 'true'
else
Updates := 'false';
begin
if IsTaskSelected('checkforupdates') then
Updates := 'true';
else
Updates := 'false';
endif;
SaveStringToFile(
ExpandConstant('{app}\installer_config.json'),
FmtMessage('{"App": {"Auto": {"Check For Updates": %1}, "First Start": false, "Language": "%2"}}', [
Updates,
ExpandConstant('{language}')]),
False);
end;
SaveStringToFile(
ExpandConstant('{app}\installer_config.json'),
FmtMessage('{"App": {"Auto": {"Check For Updates": %1}, "First Start": false, "Language": "%2"}}', [
Updates,
ExpandConstant('{language}')]),
False);
end;
endif;
end;