Skip to content

Commit

Permalink
mkdir
Browse files Browse the repository at this point in the history
  • Loading branch information
arvid220u committed Apr 11, 2022
1 parent c191518 commit ccb5d6e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gui/src/main/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ const startDaemonIfNeeded = async (pkgPath: string) => {
// first copy the CLI
const cliPath = path.join(pkgPath, "Resources", "anysphere");
// ln -sf link it!
const mkdir = await exec(`mkdir -p /usr/local/bin`);
if (mkdir.stderr) {
process.stderr.write(mkdir.stderr);
}
const clilink = await exec(`ln -sf ${cliPath} /usr/local/bin/anysphere`);
if (clilink.stderr) {
process.stderr.write(clilink.stderr);
Expand Down

0 comments on commit ccb5d6e

Please sign in to comment.