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

@@ -93,11 +93,11 @@ describe('EvernoteConverter', () => {
expect(result?.length).toBe(3)
expect(result?.[0].content_type).toBe(ContentType.TYPES.Note)
expect((result?.[0] as DecryptedTransferPayload<NoteContent>).content.text).toBe(
'<div>This is a test.</div><font><span>h </span><span>e </span></font>',
'<p>This is a test.</p><ul></ul><ol></ol><font><span>h </span><span>e </span></font>',
)
expect(result?.[1].content_type).toBe(ContentType.TYPES.Note)
expect((result?.[1] as DecryptedTransferPayload<NoteContent>).content.text).toBe(
'<div>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</div>',
'<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>',
)
expect(result?.[2].content_type).toBe(ContentType.TYPES.Tag)
expect((result?.[2] as DecryptedTransferPayload<TagContent>).content.title).toBe('distant reading')