From 2dc1176486fab6b228f323cf40c2e7945f8de77f Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Wed, 28 Apr 2021 15:22:14 -0600 Subject: [PATCH] Create and upload a DMG --- .github/workflows/ci.yml | 2 +- script/bundle | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f3ca7fe12a..baf0b01417 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/script/bundle b/script/bundle index 0efad931c0..6732d24743 100755 --- a/script/bundle +++ b/script/bundle @@ -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