Create and upload a DMG

This commit is contained in:
Nathan Sobo 2021-04-28 15:22:14 -06:00
parent 8297f2a941
commit 2dc1176486
2 changed files with 5 additions and 4 deletions

View file

@ -50,4 +50,4 @@ jobs:
- uses: actions/upload-artifact@v2
with:
name: Zed.app
path: target/release/bundle/osx/Zed.app
path: target/release/bundle/Zed.dmg

View file

@ -2,13 +2,14 @@
set -e
pushd zed
pushd zed > /dev/null
cargo bundle --release
popd
popd > /dev/null
hdiutil create -volname Zed -srcfolder target/release/bundle/osx -ov -format UDZO target/release/bundle/Zed.dmg
while getopts o flag
do
case "${flag}" in
o) open target/release/bundle/osx;;
o) open target/release/bundle;;
esac
done