diff --git a/README.md b/README.md index 8adb1f7..4e31741 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/Setup.iss b/Setup.iss index b50c58a..9d072f9 100644 --- a/Setup.iss +++ b/Setup.iss @@ -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 @@ -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 diff --git a/bin/data/img/fox.ico b/bin/data/img/fox.ico new file mode 100644 index 0000000..5de1b82 Binary files /dev/null and b/bin/data/img/fox.ico differ diff --git a/icon.rc b/icon.rc new file mode 100644 index 0000000..b8eb015 --- /dev/null +++ b/icon.rc @@ -0,0 +1,5 @@ +#ifndef _resource_rc +#define _resource_rc +MAINICON ICON "bin/data/img/fox.ico" + +#endif \ No newline at end of file diff --git a/make.ps1 b/make.ps1 index 72c479a..15777ca 100644 --- a/make.ps1 +++ b/make.ps1 @@ -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............" @@ -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............"