Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
ci: Add dmg support for MacOS and add the .dmg to the release (#1401)
Xavier Chrétiena50f2a6eb9dc
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 7e5a38cb98..4c47929900 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -87,6 +87,7 @@ jobs:env:MACOS_APP_RELEASE_PATH: frontend/app_flowy/product/${{ github.ref_name }}/macos/ReleaseMACOS_X86_ZIP_NAME: Appflowy-macos-x86_64.zip+ MACOS_DMG_NAME: Appflowy-macos-x86_64-installersteps:- name: Checkoutuses: actions/checkout@v2@@ -116,6 +117,21 @@ jobs:flutter config --enable-macos-desktopcargo make --env APP_VERSION=${{ github.ref_name }} --profile production-mac-x86_64 appflowy+ - name: Create MacOS dmg+ working-directory: frontend+ run: |+ brew install create-dmg+ create-dmg \+ --volname ${{ env.MACOS_DMG_NAME }} \+ --hide-extension "AppFlowy.app" \+ --background scripts/dmg_assets/AppFlowyInstallerBackground.jpg \+ --window-size 600 450 \+ --icon-size 94 \+ --icon "AppFlowy.app" 141 249 \+ --app-drop-link 458 249 \+ "${{ env.MACOS_APP_RELEASE_PATH }}/${{ env.MACOS_DMG_NAME }}.dmg" \+ "${{ env.MACOS_APP_RELEASE_PATH }}/AppFlowy.app"+- name: Archive macOS appworking-directory: ${{ env.MACOS_APP_RELEASE_PATH }}run: zip --symlinks -qr ${{ env.MACOS_X86_ZIP_NAME }} AppFlowy.app@@ -129,6 +145,15 @@ jobs:asset_path: ${{ env.MACOS_APP_RELEASE_PATH }}/${{ env.MACOS_X86_ZIP_NAME }}asset_name: ${{ env.MACOS_X86_ZIP_NAME }}asset_content_type: application/octet-stream+ - name: Upload DMG Release Asset+ uses: actions/upload-release-asset@v1+ env:+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}+ with:+ upload_url: ${{ needs.create-release.outputs.upload_url }}+ asset_path: ${{ env.MACOS_APP_RELEASE_PATH }}/${{ env.MACOS_DMG_NAME }}.dmg+ asset_name: ${{ env.MACOS_DMG_NAME }}.dmg+ asset_content_type: application/octet-streambuild-windows-x86_64:runs-on: windows-latestdiff --git a/frontend/scripts/dmg_assets/AppFlowyInstallerBackground.jpg b/frontend/scripts/dmg_assets/AppFlowyInstallerBackground.jpgnew file mode 100644index 0000000000..57e29d8b6aBinary files /dev/null and b/frontend/scripts/dmg_assets/AppFlowyInstallerBackground.jpg differ