chore: [#443] remove runtime download from installer & add build script
This commit is contained in:
parent
d5d22153ac
commit
0e8a9baf49
3 changed files with 8 additions and 6 deletions
3
scripts/installer/buildInstaller.bat
Normal file
3
scripts/installer/buildInstaller.bat
Normal file
|
@ -0,0 +1,3 @@
|
|||
cd ../../
|
||||
docker run --rm -i -v %cd%:/work -w /work/scripts/installer amake/innosetup installer.iss
|
||||
cd scripts/installer
|
3
scripts/installer/buildInstaller.sh
Normal file
3
scripts/installer/buildInstaller.sh
Normal file
|
@ -0,0 +1,3 @@
|
|||
cd ../../
|
||||
docker run --rm -i -v $PWD:/work -w /work/scripts/installer amake/innosetup installer.iss
|
||||
cd scripts/installer
|
|
@ -26,19 +26,17 @@ UninstallDisplayName={#MyAppName}
|
|||
WizardStyle=modern
|
||||
|
||||
[Run]
|
||||
Filename: {tmp}\7za.exe; Parameters: "x ""{tmp}\runtime.zip"" -o""{app}\runtimes\"" * -r -aoa"; Flags: runhidden runascurrentuser; Components: java
|
||||
Filename: {tmp}\7za.exe; Parameters: "x ""{tmp}\jre.zip"" -o""{app}\"" * -r -aoa"; Flags: runhidden runascurrentuser; Components: java
|
||||
Filename: {app}\{#MyAppName}.exe; Description: {cm:LaunchProgram,{#MyAppName}}; Flags: nowait postinstall skipifsilent
|
||||
|
||||
[Files]
|
||||
Source: "7za.exe"; DestDir: "{tmp}"; Flags: deleteafterinstall
|
||||
Source: "{tmp}\{#MyAppName}.exe"; DestDir: "{app}"; Flags: external
|
||||
Source: "{tmp}\runtime.zip"; DestDir: "{tmp}"; Flags: external deleteafterinstall; Components: java
|
||||
Source: "{tmp}\jre.zip"; DestDir: "{tmp}"; Flags: external deleteafterinstall; Components: java
|
||||
|
||||
[Components]
|
||||
Name: "atlauncher"; Description: "ATLauncher"; ExtraDiskSpaceRequired: 20000000; Types: full compact custom; Flags: fixed
|
||||
Name: "java"; Description: "Install Java"; ExtraDiskSpaceRequired: 249643008; Types: full
|
||||
Name: "java"; Description: "Install Java"; ExtraDiskSpaceRequired: 99192832; Types: full
|
||||
|
||||
[Languages]
|
||||
Name: "english"; MessagesFile: "compiler:Default.isl"
|
||||
|
@ -48,7 +46,7 @@ Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppName}.exe"
|
|||
Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"
|
||||
|
||||
[UninstallDelete]
|
||||
Type: filesandordirs; Name: "{app}\jre"
|
||||
Type: filesandordirs; Name: "{app}\jre"; Components: java
|
||||
|
||||
[Code]
|
||||
var
|
||||
|
@ -80,10 +78,8 @@ begin
|
|||
|
||||
if WizardIsComponentSelected('java') then begin
|
||||
if IsWin64 then begin
|
||||
DownloadPage.Add('https://download.nodecdn.net/containers/atl/runtimes/jre-win-64-1.8.0_51.zip', 'runtime.zip', '6521919e3b1480c278a12bedcabe2e494f8138ef38ef63fe74f595f5f72a1337');
|
||||
DownloadPage.Add('https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u282-b08/OpenJDK8U-jre_x64_windows_hotspot_8u282b08.zip', 'jre.zip', '58f2bbf0e5abc6dee7ee65431fd2fc95cdb2c3d10126045c5882f739dda79c3b');
|
||||
end else begin
|
||||
DownloadPage.Add('https://download.nodecdn.net/containers/atl/runtimes/jre-win-32-1.8.0_51.zip', 'runtime.zip', '745810d17c51e5399dbe7c2fa7b5d5d63e399c541b9af992c930591bb2a09a24');
|
||||
DownloadPage.Add('https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u282-b08/OpenJDK8U-jre_x86-32_windows_hotspot_8u282b08.zip', 'jre.zip', 'f7748dbdfc904a7e713aebec1aabdaf7b0a18b90517adec55b93f921dce8dd65');
|
||||
end;
|
||||
end;
|
||||
|
|
Loading…
Reference in a new issue