mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-10-21 05:01:26 -07:00
Fix SUBMINER_APPIMAGE_PATH resolution on non-macOS
This commit is contained in:
1 parent
a499554848
commit
48f93f4344
1 file changed
+4
-2
@@ -706,11 +706,13 @@ function isExecutable(filePath: string): boolean {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function resolveMacAppBinaryCandidate(candidate: string): string {
|
function resolveMacAppBinaryCandidate(candidate: string): string {
|
||||||
if (process.platform !== "darwin") return "";
|
|
||||||
|
|
||||||
const direct = resolveBinaryPathCandidate(candidate);
|
const direct = resolveBinaryPathCandidate(candidate);
|
||||||
if (!direct) return "";
|
if (!direct) return "";
|
||||||
|
|
||||||
|
if (process.platform !== "darwin") {
|
||||||
|
return isExecutable(direct) ? direct : "";
|
||||||
|
}
|
||||||
|
|
||||||
if (isExecutable(direct)) {
|
if (isExecutable(direct)) {
|
||||||
return direct;
|
return direct;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user