Skip to content

Commit

Permalink
Add win installer
Browse files Browse the repository at this point in the history
  • Loading branch information
Grégoire Henry committed Nov 14, 2023
1 parent be7d6f5 commit 6e85778
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ target/

# Python generics
.env
python/__pycache__
python/__pycache__/
python/kalast/kalast.abi3.so
python/kalast/__pycache__/__init__.cpython-311.pyc

# Project
assets/perso/
bin/
bin/releases/
runs/
kalast.log
kalast.err
Expand Down
40 changes: 40 additions & 0 deletions bin/installer.iss
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define NAME "kalast"
#define VERSION "0.3.6"
#define ROOT "C:\projects\kalast"
#define URL "https://github.com/GregoireHENRY/kalast"
#define PUBLISHER "NT Productions"

[Setup]
Uninstallable=no
AppId={{2F8C40BA-A831-42C0-AECA-C6265F3ABABC}
AppName={#NAME}
AppVersion={#VERSION}
AppPublisher={#PUBLISHER}
AppPublisherURL={#URL}
AppSupportURL={#URL}
AppUpdatesURL={#URL}
CreateAppDir=yes
DefaultDirName=C:\Program Files\{#NAME}
DefaultGroupName={#NAME}
DisableWelcomePage=no
OutputDir={#ROOT}\bin\releases
OutputBaseFilename=setup-{#NAME}-v{#VERSION}
Compression=lzma
SolidCompression=yes
WizardImageFile={#ROOT}\assets\kalast-vbanner.bmp
WizardImageStretch=yes

[Icons]
Name: "{group}\{#NAME}"; Filename: "{app}\{#NAME}.exe"; WorkingDir: "{app}"; IconFilename: "{app}\{#NAME}.ico"

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

[Files]
Source: "{#ROOT}\bin\releases\{#NAME}-v{#VERSION}-win\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "{#ROOT}\include\*"; DestDir: "{app}"; Flags: onlyifdoesntexist
Source: "{#ROOT}\include\win\*"; DestDir: "{app}"; Flags: onlyifdoesntexist
Source: "{#ROOT}\README.md"; DestDir: "{app}";

0 comments on commit 6e85778

Please sign in to comment.