Skip to content

Commit

Permalink
try to build windows installer
Browse files Browse the repository at this point in the history
  • Loading branch information
Odizinne committed Jan 3, 2025
1 parent da0f6b7 commit 6bc9a2b
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,26 @@ jobs:
name: Retr0Mine_msvc_64
path: build/Retr0Mine_msvc_64.zip

- name: Install Inno Setup
shell: pwsh
run: |
$url = "https://files.jrsoftware.org/is/6/innosetup-6.2.2.exe"
$installer = "innosetup.exe"
Invoke-WebRequest -Uri $url -OutFile $installer
Start-Process -FilePath $installer -Args "/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-" -Wait
- name: Create Installer
shell: pwsh
run: |
$env:Path += ";${env:ProgramFiles(x86)}\Inno Setup 6"
iscc.exe installer.iss
- name: Upload Installer
uses: actions/upload-artifact@v4
with:
name: Retr0Mine_Setup
path: Output/Retr0Mine_Setup.exe

linux-build:
runs-on: ubuntu-latest

Expand Down
39 changes: 39 additions & 0 deletions installer.iss
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#define AppName "Retr0Mine"
#define AppPublisher "Odizinne"
#define AppURL "https://github.com/Odizinne/Retr0Mine"
#define AppExeName "Retr0Mine.exe"

[Setup]
AppId={{8A9C6942-5CA3-4A02-B701-E7B4E862D635}}
AppName={#AppName}
AppPublisher={#AppPublisher}
AppPublisherURL={#AppURL}
AppSupportURL={#AppURL}
AppUpdatesURL={#AppURL}
DefaultDirName={localappdata}\Programs\{#AppName}
DefaultGroupName={#AppName}
PrivilegesRequired=lowest
OutputBaseFilename=Retr0Mine_Setup
Compression=lzma
SolidCompression=yes
WizardStyle=modern
UsedUserAreasWarning=no
DisableProgramGroupPage=yes
DisableWelcomePage=yes

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

[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked

[Files]
Source: "build\Retr0Mine\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs

[Icons]
Name: "{group}\{#AppName}"; Filename: "{app}\{#AppExeName}"
Name: "{group}\{cm:UninstallProgram,{#AppName}}"; Filename: "{uninstallexe}"
Name: "{autodesktop}\{#AppName}"; Filename: "{app}\{#AppExeName}"; Tasks: desktopicon

[Run]
Filename: "{app}\{#AppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(AppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent

0 comments on commit 6bc9a2b

Please sign in to comment.