mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-04-07 11:26:41 +00:00
Add preinstall and postinstall scripts
This commit is contained in:
parent
152f628040
commit
239a921580
1
Makefile
1
Makefile
@ -31,6 +31,7 @@ release/build/distrib/resin-cli-setup.exe: release/installers/win32/resin-cli.ns
|
||||
release/build/cli.pkg: release/build/resin-cli-darwin
|
||||
pkgbuild --root $< \
|
||||
--identifier io.resin.cli \
|
||||
--scripts release/installers/osx/scripts \
|
||||
--version $(VERSION) \
|
||||
--ownership recommended \
|
||||
$@
|
||||
|
2
release/installers/osx/scripts/postinstall
Executable file
2
release/installers/osx/scripts/postinstall
Executable file
@ -0,0 +1,2 @@
|
||||
# Add binary symbolic link to /usr/local/bin
|
||||
ln -s /opt/resin.io/cli/bin/resin /usr/local/bin/resin
|
5
release/installers/osx/scripts/preinstall
Executable file
5
release/installers/osx/scripts/preinstall
Executable file
@ -0,0 +1,5 @@
|
||||
# Remove previous installations of the CLI
|
||||
rm -rf /opt/resin.io/cli
|
||||
|
||||
# Remove previous symbolic link
|
||||
rm /usr/local/bin/resin
|
Loading…
x
Reference in New Issue
Block a user