@@ -2,45 +2,45 @@ class DependencyInstaller extends InstallerBase {
22 name := " Launchpad Dependency Installer"
33 version := " latest"
44
5- __New (appState, cache, extraAssets := "", tmpDir := "" ) {
6- assets := []
5+ __New (appState, cache, extraComponents := "", tmpDir := "" ) {
6+ components := []
77
88 dbVersion := " 1.0.2"
99
1010 ahkUrl := " https://www.autohotkey.com/download/2.0/AutoHotkey_" . A_AhkVersion . " .zip"
1111 ahkPath := " Vendor\AutoHotKey"
12- ahkAsset := DownloadableInstallerAsset .new(ahkUrl, true , ahkPath, appState, " AutoHotKey" , cache, " Dependencies" , true , tmpDir, false )
13- ahkAsset .version := A_AhkVersion
14- assets .Push(ahkAsset )
12+ ahkComponent := DownloadableInstallerComponent .new(ahkUrl, true , ahkPath, appState, " AutoHotKey" , cache, " Dependencies" , true , tmpDir, false )
13+ ahkComponent .version := A_AhkVersion
14+ components .Push(ahkComponent )
1515
1616 mpressUrl := " https://github.com/bmcclure/launcher-db/releases/download/" . dbVersion . " /mpress.exe"
1717 mpressPath := " Vendor\AutoHotKey\Compiler\mpress.exe"
18- mpressAsset := DownloadableInstallerAsset .new(mpressUrl, false , mpressPath, appState, " Mpress" , cache, " AutoHotKey" , true , tmpDir, false )
19- mpressAsset .version := dbVersion
20- assets .Push(mpressAsset )
18+ mpressComponent := DownloadableInstallerComponent .new(mpressUrl, false , mpressPath, appState, " Mpress" , cache, " AutoHotKey" , true , tmpDir, false )
19+ mpressComponent .version := dbVersion
20+ components .Push(mpressComponent )
2121
2222 ahk2ExeUrl := " https://github.com/bmcclure/launcher-db/releases/download/" . dbVersion . " /Ahk2Exe.exe"
2323 ahk2ExePath := " Vendor\AutoHotKey\Compiler\Ahk2Exe.exe"
24- ahk2ExeAsset := DownloadableInstallerAsset .new(ahk2ExeUrl, false , ahk2ExePath, appState, " Ahk2Exe" , cache, " AutoHotKey" , true , tmpDir, false )
25- ahk2ExeAsset .version := dbVersion
26- assets .Push(ahk2ExeAsset )
24+ ahk2ExeComponent := DownloadableInstallerComponent .new(ahk2ExeUrl, false , ahk2ExePath, appState, " Ahk2Exe" , cache, " AutoHotKey" , true , tmpDir, false )
25+ ahk2ExeComponent .version := dbVersion
26+ components .Push(ahk2ExeComponent )
2727
28- assets .Push(GitHubReleaseInstallerAsset .new(" dafzor/bnetlauncher" , "" , true , " Vendor\BnetLauncher" , appState, " BnetLauncher" , cache, " Dependencies" , true , tmpDir, false ))
28+ components .Push(GitHubReleaseInstallerComponent .new(" dafzor/bnetlauncher" , "" , true , " Vendor\BnetLauncher" , appState, " BnetLauncher" , cache, " Dependencies" , true , tmpDir, false ))
2929
30- assetUrl := " https://benmcclure.com/launcher-db/Assets /Dependencies/BnetLauncher/gamedb.ini"
31- assetPath := " Vendor\BnetLauncher\gamedb.ini"
32- assets .Push(DownloadableInstallerAsset .new(assetUrl , false , assetPath , appState, " GameDbIni" , cache, " BnetLauncher" , true , tmpDir, false ))
30+ componentUrl := " https://benmcclure.com/launcher-db/Components /Dependencies/BnetLauncher/gamedb.ini"
31+ componentPath := " Vendor\BnetLauncher\gamedb.ini"
32+ components .Push(DownloadableInstallerComponent .new(componentUrl , false , componentPath , appState, " GameDbIni" , cache, " BnetLauncher" , true , tmpDir, false ))
3333
3434 iconsExtUrl := " https://www.nirsoft.net/utils/iconsext.zip"
3535 iconsExtPath := " Vendor\IconsExt"
36- assets .Push(DownloadableInstallerAsset .new(iconsExtUrl, true , iconsExtPath, appState, " IconsExt" , cache, " Dependencies" , false , tmpDir, false ))
36+ components .Push(DownloadableInstallerComponent .new(iconsExtUrl, true , iconsExtPath, appState, " IconsExt" , cache, " Dependencies" , false , tmpDir, false ))
3737
38- if (extraAssets ! = "" ) {
39- for (index, asset in extraAssets ) {
40- assets .Push(asset )
38+ if (extraComponents ! = "" ) {
39+ for (index, component in extraComponents ) {
40+ components .Push(component )
4141 }
4242 }
4343
44- super.__New (appState, " Dependencies" , cache, assets , tmpDir := "" )
44+ super.__New (appState, " Dependencies" , cache, components , tmpDir := "" )
4545 }
4646}
0 commit comments