Skip to content
This repository has been archived by the owner on Apr 21, 2022. It is now read-only.

fix(macos): Change preinstall/postinstall scripts path #68

Merged
merged 1 commit into from
Oct 20, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/commands/pack/macos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ export default class PackMacos extends Command {

const scripts = {
preinstall: (config: Config.IConfig) => `#!/usr/bin/env bash
sudo rm -rf /usr/local/lib/${config.bin}
sudo rm -rf /usr/local/lib/${config.dirname}
sudo rm -rf /usr/local/${config.bin}
sudo rm -rf /usr/local/bin/${config.bin}
`,
postinstall: (config: Config.IConfig) => `#!/usr/bin/env bash
set -x
sudo mkdir -p /usr/local/bin
sudo ln -sf /usr/local/lib/${config.dirname}/bin/${config.dirname} /usr/local/bin/${config.dirname}
sudo ln -sf /usr/local/lib/${config.dirname}/bin/${config.bin} /usr/local/bin/${config.bin}
`,
}