Add icon in the installer

[skip ci]
This commit is contained in:
Kae 2024-04-01 14:46:11 +11:00
parent 02632b248c
commit 14506b1014
4 changed files with 16 additions and 13 deletions

1
.gitignore vendored
View File

@ -1,6 +1,7 @@
/build/ /build/
/build_linux/ /build_linux/
/out/ /out/
/Output/
/windows/ /windows/
/linux/ /linux/
/mac/ /mac/

View File

@ -26,5 +26,6 @@ for /f "delims=" %%f in (scripts\ci\windows\files_server.txt) do (
) )
set win=windows set win=windows
if exist %win% rmdir %win% /S /Q
xcopy %client% %win% /E /I /Y xcopy %client% %win% /E /I /Y
xcopy %server% %win% /E /I /Y xcopy %server% %win% /E /I /Y

View File

@ -1,19 +1,19 @@
; Script generated by the Inno Setup Script Wizard. ; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES! ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
#define MyAppName "OpenStarbound" #define AppName "OpenStarbound"
#define MyAppVersion "1.0" #define AppVersion "1.0"
#define MyAppExeName "starbound.exe" #define AppExeName "starbound.exe"
[Setup] [Setup]
SourceDir={#SourcePath}\..\..\ SourceDir={#SourcePath}\..\..\
; NOTE: The value of AppId uniquely identifies this application. Do not use the same AppId value in installers for other applications. ; NOTE: The value of AppId uniquely identifies this application. Do not use the same AppId value in installers for other applications.
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.) ; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
AppId={{08791089-2868-4FE5-ACC8-4473ACA67ED7} AppId={{08791089-2868-4FE5-ACC8-4473ACA67ED7}
AppName={#MyAppName} AppName={#AppName}
AppVersion={#MyAppVersion} AppVersion={#AppVersion}
;AppVerName={#MyAppName} {#MyAppVersion} AppVerName={#AppName} {#AppVersion}
DefaultDirName={autopf}\{#MyAppName} DefaultDirName={autopf}\{#AppName}
DisableProgramGroupPage=yes DisableProgramGroupPage=yes
; Uncomment the following line to run in non administrative install mode (install for current user only.) ; Uncomment the following line to run in non administrative install mode (install for current user only.)
;PrivilegesRequired=lowest ;PrivilegesRequired=lowest
@ -22,8 +22,10 @@ OutputBaseFilename=OpenStarbound
SetupIconFile=scripts\inno\starbound.ico SetupIconFile=scripts\inno\starbound.ico
Compression=lzma2/ultra64 Compression=lzma2/ultra64
SolidCompression=yes SolidCompression=yes
WizardStyle=modern
ArchitecturesInstallIn64BitMode=x64 ArchitecturesInstallIn64BitMode=x64
WizardStyle=modern
WizardImageAlphaFormat=premultiplied
WizardSmallImageFile=scripts\inno\small.bmp
[Languages] [Languages]
Name: "english"; MessagesFile: "compiler:Default.isl" Name: "english"; MessagesFile: "compiler:Default.isl"
@ -32,7 +34,7 @@ Name: "english"; MessagesFile: "compiler:Default.isl"
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
[Files] [Files]
Source: "windows\win\{#MyAppExeName}"; DestDir: "{app}\win\"; Flags: ignoreversion Source: "windows\win\{#AppExeName}"; DestDir: "{app}\win\"; Flags: ignoreversion
Source: "windows\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs Source: "windows\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
; NOTE: Don't use "Flags: ignoreversion" on any shared system files ; NOTE: Don't use "Flags: ignoreversion" on any shared system files
@ -40,9 +42,8 @@ Source: "windows\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs creat
Name: "{app}"; Permissions: users-modify Name: "{app}"; Permissions: users-modify
[Icons] [Icons]
Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}" Name: "{autoprograms}\{#AppName}"; Filename: "{app}\{#AppExeName}"
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon Name: "{autodesktop}\{#AppName}"; Filename: "{app}\{#AppExeName}"; Tasks: desktopicon
[Run] [Run]
Filename: "{app}\win\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent Filename: "{app}\win\{#AppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(AppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent

BIN
scripts/inno/small.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB