Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/installer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: CLI Installer

on:
release:
types:
- published

jobs:
build-and-push:
if: github.ref_type == 'tag'
name: Build & Upload
runs-on: windows-latest
permissions:
contents: write
packages: write

steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Authenticate Github CLI
run: |
Write-Output $Env:GITHUB_TOKEN | gh auth login --with-token

- name: Download cli-windows-x86_64.exe from this release
run: |
gh release download "${{ github.event.release.tag_name }}" \
--pattern cli-windows-x86_64.exe \
--dir .

- name: Copy ICO into workspace root
run: |
Copy-Item -Path images\*.ico -Destination $Env:GITHUB_WORKSPACE

- name: Install Inno Setup
run: choco install innosetup -y

- name: Build Windows Installer
run: |
iscc cli\setup.iss /Ooutput

- name: Upload Windows Installer to Release
uses: softprops/action-gh-release@v2
with:
cli-windows-x86_64-setup.exe
29 changes: 29 additions & 0 deletions cli/setup.iss
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
[Setup]
; Basic application information
AppName=Atomic Cloud CLI
AppVersion=0.0.0-nightly
DefaultDirName={\pf32}\Atomic Cloud
DefaultGroupName=Atomic Cloud
OutputBaseFilename=cli-windows-x86_64-setup
Compression=lzma2
overwriteinstallations=yes

SetupIconFile=logo.ico

[Languages]
Name: "english"; MessagesFile: "compiler\:Default.isl"

[Files]
Source: "cli-windows-x86\_64.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "logo.ico"; DestDir: "{app}"; Flags: ignoreversion

[Icons]
; Desktop shortcut
Name: "{userdesktop}\Atomic Cloud CLI"; Filename: "{app}\cli-windows-x86\_64.exe"; WorkingDir: "{app}"; IconFilename: "{app}\logo.ico"

; Start Menu shortcut
Name: "{group}\Atomic Cloud CLI"; Filename: "{app}\cli-windows-x86\_64.exe"; WorkingDir: "{app}"; IconFilename: "{app}\logo.ico"

[Run]
; Optionally launch the application after installation
Filename: "{app}\cli-windows-x86\_64.exe"; Description: "Launch Atomic Cloud CLI"; Flags: nowait postinstall skipifsilent
Binary file added images/logo.ico
Binary file not shown.
File renamed without changes