Install cargo-bundle if needed in script/bundle

Nathan Sobo created

Change summary

.github/workflows/ci.yml | 2 +-
script/bundle            | 3 +++
2 files changed, 4 insertions(+), 1 deletion(-)

Detailed changes

.github/workflows/ci.yml 🔗

@@ -47,7 +47,7 @@ jobs:
         uses: actions/checkout@v2
 
       - name: Create app bundle
-        run: bash ./script/bundle
+        run: script/bundle
 
       - name: Upload app bundle to workflow run
         uses: actions/upload-artifact@v2

script/bundle 🔗

@@ -2,6 +2,9 @@
 
 set -e
 
+# Install cargo-bundle 0.5.0 if it's not already installed
+cargo install cargo-bundle --version 0.5.0
+
 # Build the app bundle for x86_64
 pushd zed > /dev/null
 cargo bundle --release --target x86_64-apple-darwin