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:
Karol Sójko
2023-12-07 06:47:38 +01:00
committed by GitHub
parent ed5767f886
commit 6f5e1d5818
39 changed files with 210 additions and 219 deletions

View File

@@ -64,7 +64,7 @@
"ava": "^5.1.0",
"babel-loader": "^9.1.0",
"copy-webpack-plugin": "^11.0.0",
"electron-builder": "23.6.0",
"electron-builder": "^24.9.1",
"electron-rebuild": "^3.2.9",
"eslint": "*",
"eslint-config-prettier": "^8.9.0",
@@ -142,9 +142,20 @@
]
},
"snap": {
"base": "core22",
"buildPackages": [
"python3",
"libpython3.10"
],
"stagePackages": [
"default",
"python3",
"libpython3.10"
],
"plugs": [
"default",
"password-manager-service"
"password-manager-service",
"network-bind"
]
}
},