chore: fix building snap packages (#2683)
* chore: fix building snap packages * add electron native modules rebuild before snap build * update snap core env * remove rebuilds * update electron builder * remove base argument from snap * add review tools * Revert "remove rebuilds" This reverts commit 9004d2095d31d0fde4b129550b0046896c12346b. * fix snap review command * review tools on test * change base for snap * add stage pacakges * reduce test build to snap only * fix plugs * change base to core20 * instal lxd * install snapcraft with lxd * fix lxd install * fix lxd init * fix lxd configuration * fix username * fix permissions * setup lxd from cannonical * fix snap packaging * fix canonical ref * fix stage-packages * add build packages to snap * tmp disable native modules * fix final step * fix evernote specs
This commit is contained in:
17
.github/workflows/desktop.release.reuse.yml
vendored
17
.github/workflows/desktop.release.reuse.yml
vendored
@@ -79,9 +79,6 @@ jobs:
|
||||
|
||||
- run: yarn install --immutable
|
||||
|
||||
- name: Rebuild Electron Native Modules
|
||||
run: yarn workspace @standardnotes/desktop rebuild:home-server
|
||||
|
||||
- run: yarn build:desktop
|
||||
|
||||
- run: echo APP_VERSION=$(node -p "require('./../web/package.json').version") >> $GITHUB_ENV
|
||||
@@ -118,12 +115,24 @@ jobs:
|
||||
env:
|
||||
npm_config_target_arch: 'arm64'
|
||||
|
||||
- name: Snap
|
||||
- name: Install Snapcraft
|
||||
run: |
|
||||
sudo snap install snapcraft --classic
|
||||
|
||||
- name: Setup LXD
|
||||
uses: canonical/setup-lxd@v0.1.1
|
||||
|
||||
- name: Install Review Tools
|
||||
run: sudo snap install review-tools
|
||||
|
||||
- name: Package Snap
|
||||
run: |
|
||||
yarn run webpack --config desktop.webpack.prod.js --env snap
|
||||
yarn run electron-builder --linux --x64 -c.linux.target=snap --publish=never --c.extraMetadata.version=${{ env.APP_VERSION }}
|
||||
|
||||
- name: Review Snap
|
||||
run: review-tools.snap-review dist/standard-notes-${{ env.APP_VERSION }}-linux-amd64.snap
|
||||
|
||||
- name: Upload
|
||||
uses: actions/upload-artifact@v3.0.0
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user