-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
79ffbc1
commit af1619c
Showing
5 changed files
with
85 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
; Script generated by the Inno Setup Script Wizard. | ||
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES! | ||
|
||
#define MyAppName "OpenOrbis PS4 Toolchain" | ||
#define MyAppVersion "0.4" | ||
#define MyAppPublisher "OpenOrbis" | ||
#define MyAppURL "http://www.github.com/openorbis" | ||
#define Toolchain GetEnv('OO_PS4_TOOLCHAIN_SRC') | ||
|
||
[Setup] | ||
; Tell Windows Explorer to reload the environment | ||
ChangesEnvironment=yes | ||
; 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={{0E4C58BF-178A-4E2F-98C6-5BC7B5ED3472} | ||
AppName={#MyAppName} | ||
AppVersion={#MyAppVersion} | ||
;AppVerName={#MyAppName} {#MyAppVersion} | ||
AppPublisher={#MyAppPublisher} | ||
AppPublisherURL={#MyAppURL} | ||
AppSupportURL={#MyAppURL} | ||
AppUpdatesURL={#MyAppURL} | ||
DefaultDirName=C:\OpenOrbis\PS4Toolchain | ||
DefaultGroupName={#MyAppName} | ||
AllowNoIcons=yes | ||
LicenseFile={#Toolchain}\LICENSE | ||
InfoBeforeFile={#Toolchain}\extra\readme.txt | ||
; Uncomment the following line to run in non administrative install mode (install for current user only.) | ||
;PrivilegesRequired=lowest | ||
PrivilegesRequiredOverridesAllowed=dialog | ||
OutputDir={#Toolchain}\ | ||
OutputBaseFilename=OpenOrbis PS4 Toolchain | ||
SetupIconFile={#Toolchain}\extra\logo.ico | ||
Compression=lzma | ||
SolidCompression=yes | ||
WizardStyle=modern | ||
WizardSmallImageFile={#Toolchain}\extra\installer-wizard-small.bmp | ||
WizardImageFile={#Toolchain}\extra\installer-wizard-large.bmp | ||
|
||
[Languages] | ||
Name: "english"; MessagesFile: "compiler:Default.isl" | ||
|
||
[Files] | ||
Source: "{#Toolchain}\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs | ||
; NOTE: Don't use "Flags: ignoreversion" on any shared system files | ||
|
||
[Code] | ||
const | ||
SMTO_ABORTIFHUNG = 2; | ||
WM_WININICHANGE = $001A; | ||
WM_SETTINGCHANGE = WM_WININICHANGE; | ||
type | ||
WPARAM = UINT_PTR; | ||
LPARAM = INT_PTR; | ||
LRESULT = INT_PTR; | ||
function SendTextMessageTimeout(hWnd: HWND; Msg: UINT; | ||
wParam: WPARAM; lParam: PAnsiChar; fuFlags: UINT; | ||
uTimeout: UINT; out lpdwResult: DWORD): LRESULT; | ||
external '[email protected] stdcall'; | ||
procedure RefreshEnvironment; | ||
var | ||
S: AnsiString; | ||
MsgResult: DWORD; | ||
begin | ||
S := 'Environment'; | ||
SendTextMessageTimeout(HWND_BROADCAST, WM_SETTINGCHANGE, 0, | ||
PAnsiChar(S), SMTO_ABORTIFHUNG, 5000, MsgResult); | ||
end; | ||
procedure CurStepChanged(CurStep: TSetupStep); | ||
begin | ||
if CurStep = ssPostInstall then | ||
begin | ||
WizardForm.StatusLabel.Caption := 'Setting environment variable...'; | ||
RefreshEnvironment; | ||
end; | ||
end; |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
This installer will install the OpenOrbis PS4 Toolchain to a location of your choosing, and will automatically setup the OO_PS4_TOOLCHAIN environment variable all the build scripts reference. | ||
|
||
Some samples are included in /OpenOrbis-PS4-Toolchain/samples and you can find some docs too at /OpenOrbis-PS4-Toolchain/docs. | ||
|
||
OpenOrbis PS4 Toolchain does also require you to have copy of LLVM installed, which can be installed by their pre-built binary installers at releases.llvm.org/download.html. Python 3 is optional but recommended if you want to run scripts in /scripts. |