From 63d38fce3c9e0b52fbf8bf6d9b00be94f0ef06b3 Mon Sep 17 00:00:00 2001 From: Benjamin Davies Date: Tue, 13 Apr 2021 11:53:52 +1200 Subject: [PATCH] Use .dmg files to distribute for macOS (#549) This is the standard way to distribute applications for macOS. It also avoids relying on GitHub to preserve file permissions (particularly +x) when zipping files. Fixes #466 --- .github/workflows/build.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index dda5822..19cc04c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -79,10 +79,15 @@ jobs: mv MoltenVK_icd.json ./Resources/vulkan/icd.d/ install_name_tool -add_rpath "@executable_path/../Frameworks" ./MacOS/neovide + - name: Create .dmg file + run: | + hdiutil create Neovide-uncompressed.dmg -volname "Neovide" -srcfolder target/release/bundle/osx + hdiutil convert Neovide-uncompressed.dmg -format UDZO -o Neovide.dmg + - uses: actions/upload-artifact@v1 with: - name: Neovide.app - path: ./target/release/bundle/osx + name: Neovide.dmg + path: ./Neovide.dmg build-linux: