Skip to content

Commit

Permalink
Added icon and setup files
Browse files Browse the repository at this point in the history
  • Loading branch information
orkhasnat committed Nov 7, 2021
1 parent a4fc096 commit fb54865
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 16 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Options:
> -a/all - Does all the above except deleting the .exe file
> To execute the game run the executable
The .exe can be found in ./bin
The -a flag or -e doesnt execute properly due to failure to load resources.
The .exe can be found in ./bin
The -a flag or -e doesnt execute properly due to failure to load resources.
Git somehow corrupts the symbolic link thus creates execution failure.

39 changes: 25 additions & 14 deletions Setup.iss
Original file line number Diff line number Diff line change
@@ -1,22 +1,32 @@
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define MyAppName "Fox's Tale"
#define MyAppVersion "1.01"
#define MyAppPublisher "Orkhasnat"
#define MyAppURL "https://github.com/orkhasnat/Foxs-Tale"
#define MyAppExeName "Fox's Tale.exe"

[Setup]
; 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.)
AppId={{8864BF4B-3AAA-48C3-9D9E-05361846C823}
AppName=RapidRoll Advanced
AppVersion=0.21
;AppVerName=RapidRoll Advanced 0.21
AppPublisherURL=https://github.com/orkhasnat/RapidRoll-Advanced/
AppSupportURL=https://github.com/orkhasnat/RapidRoll-Advanced/
AppUpdatesURL=https://github.com/orkhasnat/RapidRoll-Advanced/
DefaultDirName=D:/Games\RapidRoll Advanced
DefaultGroupName=RapidRoll Advanced
AppId={{2B5F69BE-1BF7-47F2-8A73-1E622FDBF242}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName=D:\Games\{#MyAppName}
DefaultGroupName={#MyAppName}
AllowNoIcons=yes
LicenseFile=F:\dev\gccdev\Projects\Foxs-Tale\LICENSE
; Uncomment the following line to run in non administrative install mode (install for current user only.)
;PrivilegesRequired=lowest
OutputDir=C:\Users\orkha\Desktop\inno
OutputBaseFilename=Setup
SetupIconFile=C:\Users\orkha\Desktop\inno\fox.ico
Compression=lzma
SolidCompression=yes
WizardStyle=modern
Expand All @@ -28,14 +38,15 @@ Name: "english"; MessagesFile: "compiler:Default.isl"
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked

[Files]
Source: "C:\Users\orkha\Desktop\Rpaid\RapidRoll\RapidRoll.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Users\orkha\Desktop\Rpaid\RapidRoll\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "F:\dev\gccdev\Projects\Foxs-Tale\bin\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion
Source: "F:\dev\gccdev\Projects\Foxs-Tale\bin\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
; NOTE: Don't use "Flags: ignoreversion" on any shared system files

[Icons]
Name: "{group}\RapidRoll Advanced"; Filename: "{app}\RapidRoll.exe"
Name: "{autodesktop}\RapidRoll Advanced"; Filename: "{app}\RapidRoll.exe"; Tasks: desktopicon
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon

[Run]
Filename: "{app}\RapidRoll.exe"; Description: "{cm:LaunchProgram,RapidRoll Advanced}"; Flags: nowait postinstall skipifsilent
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent

Binary file added bin/data/img/fox.ico
Binary file not shown.
5 changes: 5 additions & 0 deletions icon.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#ifndef _resource_rc
#define _resource_rc
MAINICON ICON "bin/data/img/fox.ico"

#endif
4 changes: 4 additions & 0 deletions make.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ function compilation{
echo "........compilling.........."
# remove the -D ROll if the roll func creates problem
g++ -c .\src\*.cpp -I.\include -D ROLL
# resource file handling
windres icon.rc -o icon.o
echo "..........moving............"
#Move-Item -Path *.o -Destination .\obj -force
echo ".........linking............"
Expand All @@ -15,6 +17,8 @@ function compilation{
function withoutRoll{
echo "........compilling.........."
g++ -c .\src\*.cpp -I.\include
# resource file handling
windres icon.rc -o icon.o
echo "..........moving............"
#Move-Item -Path *.o -Destination .\obj -force
echo ".........linking............"
Expand Down

0 comments on commit fb54865

Please sign in to comment.