Skip to content

Commit

Permalink
link cli
Browse files Browse the repository at this point in the history
  • Loading branch information
arvid220u committed Apr 11, 2022
1 parent 6909c1f commit c191518
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions gui/src/main/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ const startDaemonIfNeeded = async (pkgPath: string) => {
return;
}

// first copy the CLI
const cliPath = path.join(pkgPath, "Resources", "anysphere");
// ln -sf link it!
const clilink = await exec(`ln -sf ${cliPath} /usr/local/bin/anysphere`);
if (clilink.stderr) {
process.stderr.write(clilink.stderr);
}

// TODO(arvid): handle windows and linux too
// possible problem, so let's start the daemon!
// unload the plist if it exists.
Expand Down

0 comments on commit c191518

Please sign in to comment.