Compare commits

..

2 Commits

Author SHA1 Message Date
Kamesuta
28a30d2767
Merge 020eeefcae into b019f40802 2023-10-14 04:54:35 +00:00
Kamesuta
020eeefcae Fix ForgeInstallerCLI path for cross-platform. 2023-10-14 13:29:15 +09:00

View File

@ -556,10 +556,11 @@ async function dlAsync(login = true) {
if(isDev) {
wrapperPath = join(process.cwd(), 'libraries', 'java', 'ForgeInstallerCLI.jar')
} else {
const exePath = remote.app.getPath('exe')
if(process.platform === 'darwin'){
wrapperPath = join(process.cwd(), 'Contents', 'Resources', 'libraries', 'java', 'ForgeInstallerCLI.jar')
wrapperPath = join(exePath, '..', '..', 'Contents', 'Resources', 'libraries', 'java', 'ForgeInstallerCLI.jar')
} else {
wrapperPath = join(process.cwd(), 'resources', 'libraries', 'java', 'ForgeInstallerCLI.jar')
wrapperPath = join(exePath, '..', 'resources', 'libraries', 'java', 'ForgeInstallerCLI.jar')
}
}