Closed github-actions[bot] closed 2 years ago
Remove dependency on A_ScriptDir
mpressPath := "Vendor\AutoHotKey\Compiler\mpress.exe"
mpressComponent := DownloadableInstallerComponent(dbVersion, mpressUrl, false, mpressPath, appState, "Mpress", cache, "AutoHotKey", true, tmpDir, false)
components.Push(mpressComponent)
ahk2ExePath := "Vendor\AutoHotKey\Compiler\Ahk2Exe.exe"
ahk2ExeComponent := DownloadableInstallerComponent(dbVersion, ahk2ExeUrl, false, ahk2ExePath, appState, "Ahk2Exe", cache, "AutoHotKey", true, tmpDir, false)
components.Push(ahk2ExeComponent)
https://github.com/VolantisDev/Launchpad/blob/120fbd30af2187fe5c0a4550c1a1693e9b7cdf15/Lib/Launchpad/Installer/DependencyInstaller.ahk#L5
name := "Dependency Installer" __New(version, appState, cache, extraComponents := "", tmpDir := "") { ; TODO: Remove dependency on A_ScriptDir installDir := A_ScriptDir components := [] cleanupFiles := [] ahkUrl := "https://www.autohotkey.com/download/2.0/AutoHotkey_" . A_AhkVersion . ".zip" components.Push(DownloadableInstallerComponent(A_AhkVersion, ahkUrl, true, "Vendor\AutoHotKey", appState, "AutoHotKey", cache, "Dependencies", true, tmpDir, false)) ahkDir := installDir . "\Vendor\AutoHotKey" cleanupFiles.Push(ahkDir . "\AutoHotKeyU32.exe") cleanupFiles.Push(ahkDir . "\AutoHotKeyU64.exe") cleanupFiles.Push(ahkDir . "\Compiler\Unicode 32-bit.bin") cleanupFiles.Push(ahkDir . "\Compiler\Unicode 64-bit.bin") ahkBins := installDir . "\Resources\Dependencies\AHkBins.zip" dest := ahkDir . "\Compiler" ahkBinsComponent := CopyableInstallerComponent(A_AhkVersion, ahkBins, true, dest, appState, "AhkBins", cache, "Dependencies", true, tmpDir, false, "Ahk2Exe.exe") components.Push(ahkBinsComponent)
d05e7f5e259e4413e6f69a381d4613a8c9554b53
Remove dependency on A_ScriptDir
mpressPath := "Vendor\AutoHotKey\Compiler\mpress.exe"
mpressComponent := DownloadableInstallerComponent(dbVersion, mpressUrl, false, mpressPath, appState, "Mpress", cache, "AutoHotKey", true, tmpDir, false)
components.Push(mpressComponent)
ahk2ExePath := "Vendor\AutoHotKey\Compiler\Ahk2Exe.exe"
ahk2ExeComponent := DownloadableInstallerComponent(dbVersion, ahk2ExeUrl, false, ahk2ExePath, appState, "Ahk2Exe", cache, "AutoHotKey", true, tmpDir, false)
components.Push(ahk2ExeComponent)
https://github.com/VolantisDev/Launchpad/blob/120fbd30af2187fe5c0a4550c1a1693e9b7cdf15/Lib/Launchpad/Installer/DependencyInstaller.ahk#L5
d05e7f5e259e4413e6f69a381d4613a8c9554b53