mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-02-27 18:22:41 -08:00
Fix SUBMINER_APPIMAGE_PATH resolution on non-macOS
This commit is contained in:
6
subminer
6
subminer
@@ -706,11 +706,13 @@ function isExecutable(filePath: string): boolean {
|
||||
}
|
||||
|
||||
function resolveMacAppBinaryCandidate(candidate: string): string {
|
||||
if (process.platform !== "darwin") return "";
|
||||
|
||||
const direct = resolveBinaryPathCandidate(candidate);
|
||||
if (!direct) return "";
|
||||
|
||||
if (process.platform !== "darwin") {
|
||||
return isExecutable(direct) ? direct : "";
|
||||
}
|
||||
|
||||
if (isExecutable(direct)) {
|
||||
return direct;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user