Skip to content

Commit

Permalink
Installer CI: add Web component to releases
Browse files Browse the repository at this point in the history
  • Loading branch information
ericoporto committed Feb 5, 2022
1 parent 0797b88 commit a79ca32
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ windows_packaging_task:
- build_editor
- build_windows
- linux_packaging
- build_emscripten
windows_container:
dockerfile: ci/windows/Dockerfile
os_version: 2019
Expand Down Expand Up @@ -282,6 +283,11 @@ windows_packaging_task:
call Script\setvar.cmd ACI_VERSION_STR &&
cmd /v:on /c "curl -fLSs "https://api.cirrus-ci.com/v1/artifact/build/%CIRRUS_BUILD_ID%/linux_packaging/binaries/ags_!ACI_VERSION_STR!_linux.tar.gz" |
tar -f - -xvC Windows\Installer\Source\Linux --strip-components 1"
get_emscripten_bundle_script: >
mkdir Windows\Installer\Source\Web &&
call Script\setvar.cmd ACI_VERSION_STR &&
cmd /v:on /c "curl -fLSs "https://api.cirrus-ci.com/v1/artifact/build/%CIRRUS_BUILD_ID%/build_emscripten/binaries/ags_!ACI_VERSION_STR!_web.tar.gz" |
tar -f - -xvC Windows\Installer\Source\Web --strip-components 1"
make_installer_script: >
powershell Windows\Installer\build.ps1 -IsccPath 'C:\Program Files (x86)\Inno Setup 6\ISCC.exe'
installer_artifacts:
Expand All @@ -291,6 +297,7 @@ windows_packaging_task:
move Windows\Installer\Source\Engine\* Windows\Installer\Source\Editor\ &&
move Windows\Installer\Source\Licenses Windows\Installer\Source\Editor\ &&
move Windows\Installer\Source\Linux Windows\Installer\Source\Editor\ &&
move Windows\Installer\Source\Web Windows\Installer\Source\Editor\ &&
move Windows\Installer\Source\Templates Windows\Installer\Source\Editor\ &&
move Windows\Installer\Source\URLs Windows\Installer\Source\Editor\ &&
for %%f in (Windows\Installer\Output\*.exe) do
Expand Down Expand Up @@ -361,6 +368,7 @@ make_release_task:
- build_linux_debian
- windows_packaging
- linux_packaging
- build_emscripten
- pdb_packaging
container:
image: alpine:3.10
Expand Down Expand Up @@ -390,6 +398,7 @@ make_release_task:
for download in "windows_packaging/archive/$(basename AGS-*.exe .exe).zip" \
"windows_packaging/windevdependenciesvs/WinDevDependenciesVS.zip" \
"linux_packaging/binaries/ags_${version}_linux.tar.gz" \
"build_emscripten/binaries/ags_${version}_web.tar.gz" \
"pdb_packaging/archive/AGS-${version}-pdb.zip" \
"build_linux_debian/debian_packages/ags_${version}_i386.deb" \
"build_linux_debian/debian_packages/ags_${version}_amd64.deb" \
Expand Down
4 changes: 4 additions & 0 deletions Windows/Installer/ags.iss
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ ComponentMain=Main files
ComponentEngines=Engines
ComponentEngineDefault=Runtime engine for MS Windows
ComponentLinuxBuild=Linux build component
ComponentWebBuild=Web build component
; ComponentDemoGame=Demo Game
InstallOptions=Install options
InstallVCRedist=Install {#VcRedistName}
Expand All @@ -64,6 +65,7 @@ Name: "main"; Description: "{cm:ComponentMain}"; Types: full compact custom; Fla
Name: "engine"; Description: "{cm:ComponentEngines}"; Types: full compact custom; Flags: fixed
Name: "engine\default"; Description: "{cm:ComponentEngineDefault}"; Types: full compact; Flags: exclusive
Name: "linux"; Description: "{cm:ComponentLinuxBuild}"; Types: full custom
Name: "web"; Description: "{cm:ComponentWebBuild}"; Types: full custom
; Name: "demogame"; Description: "{cm:ComponentDemoGame}"; Types: full custom


Expand Down Expand Up @@ -111,6 +113,8 @@ Source: "Source\Linux\ags64"; DestDir: "{app}\Linux"; Flags: ignoreversion; Comp
Source: "Source\Linux\lib32\*"; DestDir: "{app}\Linux\lib32"; Flags: ignoreversion recursesubdirs createallsubdirs; Components: linux
Source: "Source\Linux\lib64\*"; DestDir: "{app}\Linux\lib64"; Flags: ignoreversion recursesubdirs createallsubdirs; Components: linux
Source: "Source\Linux\licenses\*"; DestDir: "{app}\Linux\licenses"; Flags: ignoreversion recursesubdirs createallsubdirs; Components: linux
; Web build components
Source: "Source\Web\*"; DestDir: "{app}\Web"; Flags: ignoreversion; Components: web
; Demo game
; Source: "Source\Demo Game\*"; DestDir: "{code:GetDemoGameDir}"; Flags: ignoreversion recursesubdirs createallsubdirs skipifsourcedoesntexist; Components: demogame
; Visual C++ runtime
Expand Down

0 comments on commit a79ca32

Please sign in to comment.