desktop: publish app to snapcraft

This commit is contained in:
Abdullah Atta
2022-09-23 11:13:35 +05:00
parent 042028f1eb
commit 7b48499527
2 changed files with 26 additions and 6 deletions

View File

@@ -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

View File

@@ -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
}
]
}
}