Commit Graph

40 Commits

Author SHA1 Message Date
Bruno Bernardino bd8b6fe9af
Update Tauri 2022-07-19 10:27:52 +01:00
Bruno Bernardino 195558db44
Linting 2022-06-20 11:03:24 +01:00
Bruno Bernardino 0ccb1b45f3
Update rust dependencies and fix build script 2022-06-20 11:01:57 +01:00
Bruno Bernardino afa013e3b6
Try to fix macos build now 2022-05-16 17:20:48 +01:00
Bruno Bernardino 3e401913fa
Fix macos build 2022-05-16 16:48:48 +01:00
Bruno Bernardino 04e7867413
Fix macos build, tweak variable names, remove unnecessary variable. 2022-05-16 16:25:46 +01:00
Bruno Bernardino 3ae8aa2c38
Update Tauri
This updates Tauri, its dependencies, and confirms that uploading attachments works (drag and drop didn't, at least on Linux, but I didn't dig too deep into it to find out why).

Fixes #386
2022-05-16 16:03:18 +01:00
Martin Kleinschrodt fb9273d61d Include csp tag via webpack instead of usings tauris csp injection since their use of nonces conflicts with the way lit builds style sheets 2022-03-22 08:03:30 +01:00
Martin Kleinschrodt e0bb56cd9a Update tauri and other dependencies 2022-03-22 08:01:48 +01:00
Martin Kleinschrodt f547e5bcba Lock down all tauri apis, since we're currently not using any of them (except shell, which we're only using to open the help site, and I decided to just remove that functionality since we already have that in the "inner" app itself) 2022-03-21 14:25:14 +01: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 dfbc964070
Fix rust run 2022-01-03 21:58:27 +00:00
Bruno Bernardino e3c634374c
Implement review recommendations 2022-01-03 21:46:16 +00:00
Bruno Bernardino 8e80b688fe
Tweak build and release making. 2021-12-31 20:42:52 +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 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 58ee1362a7
Fix cargo app name 2021-12-30 12:31:59 +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
Martin Kleinschrodt d1420a7667 Add help menu 2021-12-30 09:13:17 +01:00
Martin Kleinschrodt 6dad693828 Add application menu to Tauri app 2021-12-29 18:10:52 +01:00
Bruno Bernardino c3e4b1c298
Fix CORS issues in Tauri
Also, build with --debug (console) for non-prod environments
2021-12-28 19:41:17 +00:00
Bruno Bernardino b64f211487
Fix icon path, add new command to update tauri dependencies manually 2021-12-28 11:48:29 +00:00
Martin Kleinschrodt 87906cf159 Bring back "icon" setting since it seems to be required after all... 2021-12-28 12:41:28 +01:00
Martin Kleinschrodt 1ce0afdf68 Automatically generate tauri icons from single source file 2021-12-28 11:24:19 +01:00
Martin Kleinschrodt 431f789f42 Delete tauri-src/icons directory (it will be generated as part of the build process) 2021-12-28 11:21:35 +01:00
Martin Kleinschrodt 2abcef3908 Upgrade some rust dependencies 2021-12-28 11:20:57 +01:00
Bruno Bernardino 73304830b1
Tauri now builds and works!
Also moved the icons back, because the build doesn't respect the paths sent
2021-12-27 12:26:54 +00:00
Bruno Bernardino f72e848e65
Fix Tauri build
This isn't working, but has some attempts. It's currently blocked, because the built app just has many `ReferenceError: Can't find variable: process`. Something with Webpack isn't building properly, as even trying to just run `webpack serve` from inside yields the same result (I updated webpack, but the problem is in the setup/config, really). I also tried setting `resolve.fallback.process: require.resolve('process/browser')` ([among other things](https://pretagteam.com/question/webpack-5-uncaught-referenceerror-process-is-not-defined)), but the executed code comes from `@padloc/app`, so I'd have to add that package there, and it feels wrong. I'm positive I'm just doing something wrong with the setup, but already spent quite some time on it.

To test, pull this down, run `npm install`, and `npm run tauri:dev` (runs with `webpack` instead of `tauri`, just because the console errors are more useful).

In the process of trying to get this to work, I migrated the icons to the assets directory and updated them. I also tweaked the initial HTML to match the new v4 theme.

Related to #281
2021-12-27 10:43:39 +00:00
Bruno Bernardino 50ae105b45
A few improvements, requested from the review:
- File reading is now happening later in the process;
- File reading now reuses methods from `core/attachment`;
- Errors thrown in the import now include an error message;
- Adds prettier command to "prettify" all files;
- Adds prettier command to check for files not conforming to prettier's config;
- Makes CI run the prettier:check command;
- Changes `export const method = () => {};` to `export function method() {}` in the `1pux-parser` file;
- Other minor consistency changes/fixes/improvements;
- Actually ran prettier on every file, and it had a lot of things to tweak.
2021-12-20 15:01:25 +00:00
Martin Kleinschrodt 54a161e502 Some dependency upgrades 2021-09-15 10:20:21 +02:00
Martin Kleinschrodt 238b53ad97 Add tauri:dev command 2021-06-28 18:08:34 +02:00
Martin Kleinschrodt 4e748dec1f First pass at implementing biometric unlock using webauthn 2021-06-16 17:20:49 +02:00
Martin Kleinschrodt cf888a4276 some dependency updates 2020-10-25 14:05:58 +01:00
Martin Kleinschrodt 3bda4e95b9 Bump version in Cargo.toml 2020-07-30 17:42:46 +02:00
Martin Kleinschrodt e78b887ed2 Update tauri build workflow 2020-07-30 17:38:56 +02:00
Martin Kleinschrodt a5f52e07ad Upgrade tauri
use fixed port for embedded server
Go back to using LocalStorage backend for tauri platform
2020-07-28 18:23:10 +02:00
Martin Kleinschrodt 19a1527314 Upgrade Tauri to latest 2020-07-21 16:55:56 +02:00
Martin Kleinschrodt d4b03558dc Add experimental tauri package 2020-07-19 17:50:05 +02:00