diff --git a/.github/workflows/desktop.publish.yml b/.github/workflows/desktop.publish.yml index 36158489e..b15507081 100644 --- a/.github/workflows/desktop.publish.yml +++ b/.github/workflows/desktop.publish.yml @@ -77,6 +77,12 @@ jobs: name: build path: ./apps/web/desktop/build + - name: Install Snapcraft + uses: samuelmeuli/action-snapcraft@v1 + if: startsWith(matrix.os, 'linux') + with: + snapcraft_token: ${{ secrets.snapcraft_token }} + - name: Prepare for app notarization (macOS) if: startsWith(matrix.os, 'macos') # Import Apple API key for app notarization on macOS diff --git a/apps/web/desktop/package.json b/apps/web/desktop/package.json index 6bf10f962..eb488eeb8 100644 --- a/apps/web/desktop/package.json +++ b/apps/web/desktop/package.json @@ -127,13 +127,19 @@ "target": [ "AppImage", "deb", - "rpm" + "rpm", + "snap" ], "category": "Office", "icon": "assets/icons/app.icns", "description": "Your private note taking space", "executableName": "Notesnook" }, + "snap": { + "autoStart": false, + "confinement": "strict", + "allowNativeWayland": true + }, "extraResources": [ "./assets/**" ], @@ -141,10 +147,18 @@ "buildResources": "assets", "output": "./dist/" }, - "publish": { - "provider": "github", - "repo": "notesnook", - "owner": "streetwriters" - } + "publish": [ + { + "provider": "github", + "repo": "notesnook", + "owner": "streetwriters" + }, + { + "provider": "snapStore", + "repo": "notesnook", + "channels": "stable", + "publishAutoUpdate": false + } + ] } }