Skip to content

Commit

Permalink
Add script to create Mac release
Browse files Browse the repository at this point in the history
  • Loading branch information
starburst997 committed Jan 3, 2019
1 parent 2367958 commit 085caee
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
6 changes: 6 additions & 0 deletions samples/cli-exporter/make-pkg.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

mkdir bin
mkdir bin/mac-installer

pkgbuild --root bin/macos/bin/SWFTY.app --identifier jd.boivin.swfty --scripts scripts/mac --install-location /Applications/SWFTY.app bin/mac-installer/SWFTY.pkg --sign "Developer ID Installer: Jean-Denis Boivin (P7K4SUSDX6)"
8 changes: 8 additions & 0 deletions samples/cli-exporter/scripts/mac/postinstall
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

echo "#!/bin/bash" > /usr/local/bin/swfty
echo "/Applications/SWFTY.app/Contents/MacOS/SWFTY \$@ -r \$PWD" >> /usr/local/bin/swfty
chmod 755 /usr/local/bin/swfty
chmod +x /usr/local/bin/swfty

exit 0
2 changes: 0 additions & 2 deletions samples/cli-exporter/scripts/mac/swfty.sh

This file was deleted.

0 comments on commit 085caee

Please sign in to comment.