Commit Graph

106 Commits

Author SHA1 Message Date
Bruno Bernardino b7906e26eb
Prepare CI and docs for branch rename
And also remove `v4` reference.
2022-07-19 11:11:37 +01:00
Bruno Bernardino b1c6ea39ad
Add snap and flatpak options to electron publishing and release
Also adds `deb` and tweaks the v3 compatibility test a bit more since it has failed a couple of times in the last week.

Fixes #201
2022-07-04 12:22:12 +01:00
Bruno Bernardino 90156024da
Fix occasional non-focus extension popup in Firefox
Fixes #482

While the solution isn't ideal, there isn't much more to do, other than not using a JS framework to render HTML, as per https://bugzilla.mozilla.org/show_bug.cgi?id=1324255

This also fixes some text on the web extension build, to make it clearer Edge is also supported.
2022-06-30 12:09:14 +01:00
Bruno Bernardino 841d23cf58
Tweak CI step names 2022-06-30 09:37:48 +01:00
Bruno Bernardino 7424e75742
Fix tauri build path 2022-06-20 11:18:09 +01:00
Bruno Bernardino 9e023327ea
Fix Tauri building and publishing
Based off of https://github.com/tauri-apps/tauri/issues/4377
2022-06-20 09:45:23 +01:00
Bruno Bernardino 8e2036f297
Checksums - Allow anyone to confirm source and delivered code (#467)
* Checksums - Allow anyone to confirm source and delivered code

For now this only has the initial step on making CSP stricter so we can use it to parse through used files.

Very much WIP for now, but now it should just be a matter of writing up concise docs on how to go through the process, after generating and publishing the checksums via CI as well.

Related to #331

* Lint!

* Add more instructions and CI to build checksums.

* Fix typo and lint

* Remove CSP package dependency, build it manually.

Update commands in docs, fix web extension release.

* Tweak docs and webpack. CI still isn't producing a matching checksum, though.

* Tweak docs for web checksums, add debugging in the checksum action, make it faster, temporarily.

* Fix web checksum, add checksums and instructions for everything else

Closes #467

* Fix tauri release + macos sha256sum

* Remove .app checksum, since it's a directory and checksum'ing the .tar.gz seems strange.

* Properly indent + fix sha256sum results (and windows line endings problem)

* Include PWA for release, add instructions to change filenames when checksum fails.

* Include _everything_ in the CSP now, and tweak the verification script and checksum build to also include everything, now.

Still requires changes in the way to verify a published web app, where I'll have to write a script to parse through the whole CSP now.

* Add TypeScript (Deno) script to parse through CSP and download matched files.

Also update docs.

* Tweak web checksum examples.

* Remove content hashes from font files.

* Try sorting files before adding to CSP, to enforce consistency.
2022-06-20 07:34:45 +01:00
Bruno Bernardino ff0f61d57f
Auto deploy Test AND Beta automatically on merge
Now both instances will be deployed automatically, while still allowing us to deploy a single one with a specific branch via UI (from the private `devops` repo).
2022-06-01 13:00:50 +01:00
Bruno Bernardino f2a7902b9c
Fix automatic deployment update (#452)
* Fix automatic deployment update

Couldn't fix it before because I couldn't run it yet.

* Add required ref
2022-05-20 15:58:13 +01:00
Bruno Bernardino 570a886bab
Fix scrolling in Security Report (#451)
* Fix scrolling in Security Report

Also add an automatic action to update the test deployment on push/merge.

* Fix deployment default
2022-05-20 15:07:24 +01:00
Martin Kleinschrodt 2f8c900a3e
Implement Stripe Integration for v4 (#417)
Add a proper implementation of StripeProvisioner, which builds on BasicProvisioner and derives provisioning profiles from Stripe subscriptions. There's been some refactoring of the core provisioning logic as well.
2022-04-01 14:08:25 +02:00
Martin Kleinschrodt a934ccd59b Fix build output paths (guessing for windows and linux for now) 2022-03-22 08:37:05 +01:00
Martin Kleinschrodt 0061056398 Use "production" build as default. Debug builds are now done via `npm run tauri:build:debug` 2022-02-25 16:25:33 +01:00
Bruno Bernardino 64c8c9bdae
Fix CI caching 2022-02-24 19:36:43 +00:00
Bruno Bernardino ec5e5b9d78
Nothing works. Give up, use some of the cleaning. 2022-02-24 19:34:19 +00:00
Bruno Bernardino ccf8d09dd7
Take it one level more. 2022-02-24 18:59:35 +00:00
Bruno Bernardino 2a8fa47eb2
Pass linux argument further down. 2022-02-24 18:50:00 +00:00
Bruno Bernardino 64e89077ee
Try to build linux from macos 2022-02-24 16:41:03 +00:00
Bruno Bernardino 1819f36c66
End-to-end login test
This finishes the e2e login test, and adds lock/unlock testing.

It also fixes an error the locking test caught (for accounts with no items), and caching of node_modules when testing, for faster results.
2022-02-01 16:22:16 +00:00
Bruno Bernardino f905ab77c6
First e2e test (via cypress)
This adds the first e2e test via [cypress](https://cypress.io). It's still incomplete, but it was a bit of a pain to figure out the shadow dom stuff.

The next step is to force a specific verification code when running via tests so the test can progress.
2022-01-21 18:51:27 +00:00
Bruno Bernardino e5672a62af
Allow setting a build for web extension beta builds
This prevents the error seen in https://github.com/padloc/padloc/runs/4899240160?check_suite_focus=true (`Version already exists. Latest version is: 4.0.0.x. (status: 409)`)
2022-01-21 16:45:02 +00:00
Bruno Bernardino 19cabc1841
Fix tests
This fixes the existing tests and enables them for the "basic" CI run on every push.

Some tests/files had to be completely commented out because they're very outdated, and I'd rather fix those in separate PRs.
2022-01-19 16:13:30 +00:00
Bruno Bernardino 1589b05baa
CI: Full Release (#376)
* CI: Full Release

This implements a full release action that takes care of creating a tag, release, then building and uploading builds for all targets.
2022-01-17 17:32:21 +00:00
Bruno Bernardino 1a9adcdb0f
Simplify build env var logic. 2022-01-04 19:24:46 +00:00
Bruno Bernardino a1bb8c8a29
Tweak CI process for tests to build web extension, and for web extension building to add the dev build version when not building for production 2022-01-04 19:16:04 +00:00
Bruno Bernardino b44093c0ab
Change zip file name for crx 2022-01-04 11:17:38 +00:00
Bruno Bernardino 634861a948
Tweak version build number, so it's within Mozilla's limits 2022-01-04 10:20:33 +00:00
Bruno Bernardino 8cc877fa50
Update build number 2022-01-04 10:05:52 +00:00
Bruno Bernardino ee77c5b221
Don't use the commit sha for the builds, because it's too long for Firefox signing 2022-01-04 09:45:28 +00:00
Bruno Bernardino 95d29c6e01
Automatically update build manifest before releasing new web extension versions 2022-01-04 09:35:37 +00:00
Bruno Bernardino 4fae5e3c2a
Try different id format 2022-01-04 09:09:08 +00:00
Bruno Bernardino c38b89ba1a
Disable Firefox signing for non-beta/prod builds, and include id 2022-01-04 09:00:41 +00:00
Bruno Bernardino 8f6dda9e62
Build Signed CRX Web Extension
This is a complement to the already closed #330, to make it easier to test the dev builds of the extension in Chrome.
2022-01-04 08:28:58 +00:00
Bruno Bernardino 5b9de792f7
Tweak release id 2021-12-31 23:04:01 +00:00
Bruno Bernardino 659505c4b5
Fix release id dependency 2021-12-31 22:34:29 +00:00
Bruno Bernardino 21d4d6f8c2
Tweak releaseId 2021-12-31 22:30:56 +00:00
Bruno Bernardino 9e39d84e01
Try to keep it to a single release for the same tag 2021-12-31 21:49:51 +00:00
Bruno Bernardino f6b53e76da
Moves creation of update.json to single step 2021-12-31 21:13:39 +00:00
Bruno Bernardino 8e80b688fe
Tweak build and release making. 2021-12-31 20:42:52 +00:00
Bruno Bernardino 3806b5e6be
Add name to release step 2021-12-31 19:05:39 +00:00
Bruno Bernardino 6aad136505
Fix creating tag 2021-12-31 18:53:08 +00:00
Bruno Bernardino 7d3401e86b
Add key variables to building 2021-12-31 18:52:25 +00:00
Bruno Bernardino eef07cc2d4
Tweak release 2021-12-31 18:50:51 +00:00
Bruno Bernardino f57be7b855
Fixes signature URLs and missing tag 2021-12-31 13:19:05 +00:00
Bruno Bernardino 07d499c0e5
Add temporary forceful check, otherwise can't yet be triggered from the API 2021-12-31 12:52:02 +00:00
Bruno Bernardino 680ed9b79d
Add Tauri auto-updates
Closes #365

Still unfinished, I need to learn where are the build signatures stored.
2021-12-31 12:45:52 +00:00
Bruno Bernardino e7b048f73f
Merge pull request #368 from padloc/feature/tauri-application-menu
Add application menu to Tauri app
2021-12-30 12:54:50 +00:00
Bruno Bernardino c9bef62f82
Fix electron build typo 2021-12-30 12:25:42 +00:00
Bruno Bernardino 5449d51a07
Sign, but don't notarize the electron macos app
Show the proper app name in the menu for macOS
2021-12-30 12:24:16 +00:00
Bruno Bernardino 8abe90484d
Hide menus in Linux (they don't work).
Added proper Help menu, and disabled electron macos signing for non-prod builds.
2021-12-30 11:55:09 +00:00