Skip to content

Commit

Permalink
macos support
Browse files Browse the repository at this point in the history
  • Loading branch information
yofukashino committed Oct 18, 2024
1 parent d586b36 commit d65b9c9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/inject/injector.mts
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,10 @@ export const smartInject = async (
): Promise<boolean> => {
let result;

const processName = PlatformNames[platform].replace(" ", "");
const processName =
process.platform === "darwin"
? PlatformNames[platform]
: PlatformNames[platform].replace(" ", "");
if (!noRelaunch) {
try {
if ((replug && cmd === "uninject") || !replug) {
Expand Down Expand Up @@ -269,7 +272,7 @@ export const smartInject = async (
});
break;
case "darwin":
openProcess(`open -a ${PlatformNames[platform]}`);
openProcess(`open -a "${join(appDir, "..", "..", "..")}"`);
break;
}
}
Expand Down

0 comments on commit d65b9c9

Please sign in to comment.