Commit Graph

563 Commits

Author SHA1 Message Date
Lucas Nogueira
696dca58a9
refactor(core): remove BaseDirectory::Current variant 2022-01-26 16:48:31 -03:00
Lucas Nogueira
c80e8b6886
fix: fs-read-file allowlist usage 2022-01-26 16:47:42 -03:00
chip
10314cd5cf
feat(core): add argument parsing on shell scope (#44)
* feat: initial implementation

* feat: arg parser

* refactor: move codegen to context struct

* feat: regex validation

* fix tests

* fix: support magic argument value `-`

* feat: support value regex starting with `-`

* refactor: shell_scope mod, add happy path tests

* wip: scope command arguments

* wip: commands

* add better scoped errors and pattern matching

* add documentation to scoped command items

* support using the new shell scope for open

* use the proper items in tauri::scope during codegen

* shell-open uses ScopeError::Validation also

* use shell scoping for sidecar commands

* fix: cli.rs build

* fix: validation when arg list is empty

* require args in a non-fixed, non-empty config list

Co-authored-by: Chip Reed <chip@chip.sh>
2022-01-26 16:43:24 -03:00
chip
d5d6d2abc1
Isolation Pattern (#43)
Co-authored-by: Ngo Iok Ui (Wu Yu Wei) <wusyong9104@gmail.com>
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.studio>
2022-01-17 10:46:14 -03:00
Lucas Nogueira
c077f44927
feat: force endpoint URL to use https on release [TRI-015] (#41) 2022-01-09 16:40:22 -03:00
Lucas Nogueira
d95cc83105
feat: enforce updater public key [TRI-015] (#42) 2022-01-09 16:37:03 -03:00
Lucas Fernandes Nogueira
d4db95e716
feat(core): shell execute API scope [TRI-002] (#36)
* feat(core): shell execute API scope [TRI-002]

* fix tests

* also check with empty extension

* lockfile
2022-01-09 16:28:22 -03:00
Lucas Nogueira
eae311e6e2
fix(core): ipc and tests 2022-01-09 16:27:57 -03:00
Lucas Nogueira
766c4f2c57
refactor: unify fs read and write cmds for binary/text data [TRI-009] (#34) 2022-01-09 16:24:44 -03:00
Lucas Fernandes Nogueira
85df94f2b0
feat(core): config for fixed webview2 runtime version path (#27) 2022-01-09 16:16:45 -03:00
Lucas Fernandes Nogueira
0ad1c6515f
feat(core): add http allowlist scope [TRI-008] (#24) 2022-01-09 16:16:12 -03:00
Lucas Nogueira
a48b8b18d4
feat(core): validate callbacks and event names [TRI-038] [TRI-020] (#21) 2022-01-09 16:12:29 -03:00
Lucas Nogueira
2f3a582c69
feat(cli.rs): strip release binaries [TRI-031] (#22) 2022-01-09 15:46:43 -03:00
Lucas Nogueira
153a6a44b3
fix(cli.rs): build on windows 2022-01-09 15:41:51 -03:00
Lucas Nogueira
5687b7fdcd
refactor: use macros to match core commands with allowlist conditionals [TRI-028] (#20) 2022-01-09 15:41:28 -03:00
Lucas Nogueira
4fa5ec9606
chore: cleanup repo lockfiles and gitignores 2022-01-09 15:18:14 -03:00
Lucas Nogueira
63921fada4
refactor: change tauri::api::open with argument to an enum [TRI-022] (#19) 2022-01-09 14:58:38 -03:00
Lucas Fernandes Nogueira
eed017287f
feat(core): add shell > sidecar allowlist and process feature flag [TRI-037] (#18) 2022-01-09 14:57:43 -03:00
Lucas Nogueira
d660cab38d
feat: enhance allowlist configuration [TRI-027] (#11) 2022-01-09 14:48:55 -03:00
Lucas Fernandes Nogueira
680554de3e
feat: validate window label [TRI-021] (#13) 2022-01-09 14:30:43 -03:00
Lucas Nogueira
7920ff14e6
feat: scope the fs API and the asset protocol [TRI-026] [TRI-010] [TRI-011] (#10) 2022-01-09 14:30:04 -03:00
Lucas Nogueira
3420aa5031
refactor: IPC handler [TRI-019] (#9)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2022-01-09 14:17:29 -03:00
Lucas Nogueira
6ac21b3cef
feat: add private api feature flag (#7) 2022-01-09 11:29:29 -03:00
Lucas Nogueira
cf54dcf9c8
feat: improve CSP security with nonces and hashes, add devCsp [TRI-004] (#8) 2022-01-09 11:11:59 -03:00
Lucas Nogueira
4de285c396
feat(core): validate Cargo features matching allowlist [TRI-023] 2022-01-09 10:55:09 -03:00
Lucas Fernandes Nogueira
46f2eae8aa
feat: allow config's version to be a path to package.json, closes #2967 (#2971) 2022-01-07 16:55:30 -03:00
Lucas Fernandes Nogueira
0600099696
feat(api): support unknown types for event emit payload, closes #2929 (#2964) 2022-01-07 16:50:07 -03:00
Lucas Fernandes Nogueira
b7a2345b06
feat(core): add raw headers to HTTP API, closes #2695 (#3053) 2022-01-07 13:53:04 -03:00
renovate[bot]
0a857f8fdc
chore(deps) Update Tauri CLI (#3163)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-07 13:52:38 -03:00
renovate[bot]
294bb857c9
chore(deps) Update Tauri API Definitions (#3160)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-07 13:48:03 -03:00
renovate[bot]
2d6d358298
chore(deps) Update Tauri JS CLI (#3164)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-07 13:46:35 -03:00
renovate[bot]
03f60eb54a
chore(deps) Update create-tauri-app (#3166)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-07 13:46:25 -03:00
renovate[bot]
2a94165901
chore(deps) Update Rust crate handlebars to 4.2 (#3171)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-07 13:45:48 -03:00
FabianLars
ac1dfd8c30
feat(bundler): initialize msi install path with previous location (#3158) 2022-01-07 13:45:34 -03:00
Kasper
4f9c9e6307
Restructure docs (#3180)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2022-01-07 09:30:23 -03:00
Amr Bashir
4143ffd427
fix(cli.js): detect CARGO_TARGET_DIR for local run (#3147)
* fix(cli.js): detect `CARGO_TARGET_DIR` for local run

* [skip ci] revert schema changes
2022-01-04 13:57:50 +02:00
Lucas Nogueira
45eba33dc1
fix(cli.rs): plugin init --api usage 2022-01-03 20:00:58 -03:00
FabianLars
5b2db3f481
fix lint warnings in appimage bash file (#3155) 2022-01-03 17:48:36 -03:00
Lucas Fernandes Nogueira
d0970e3499
feat(driver): add args to tauri:options (#3154) 2022-01-03 17:37:16 -03:00
Lucas Fernandes Nogueira
4c1be45106
fix(bundler): deadlock on ResourcePaths iterator, closes #3146 (#3152) 2022-01-02 14:28:07 -03:00
Kasper
62182383de
List categories in tooltips (#3150) 2022-01-01 21:55:29 -03:00
Amr Bashir
f5e77ff48f
refactor(cta): use commander instead of minimst (#2551)
* refactor(cta): use `commander` instead of `minimst`

* fix default

* pin deps

* update lock file

* rearrange options

* style changes

* colorful help message

* add missing `dev` option

* style

* use local api for tests

* concise checks for vite and solid

* update lock file

* fix api formatting

* improvements to updating json files

* hopefully the last commit in this PR

* fix eslint

Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2022-01-01 14:38:43 +02:00
renovate[bot]
6e4a9f154f
chore(deps) Update Tauri API Definitions (#3128)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-29 07:15:51 -03:00
renovate[bot]
8b3fbb88b0
chore(deps) Update Tauri CLI (#3129)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-29 07:14:40 -03:00
renovate[bot]
a9ef0459d7
chore(deps) Update Tauri JS CLI (#3130)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-29 07:14:25 -03:00
renovate[bot]
fa84c186e5
chore(deps) Update create-tauri-app (#3131)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-12-29 07:14:12 -03:00
FabianLars
3206a7088c
fix(bundler): detect per-user webview2 installations (#3076)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2021-12-28 19:28:21 -03:00
Lucas Fernandes Nogueira
2212bd5d75
fix: dialog default path on Linux, closes #3091 (#3123) 2021-12-27 13:03:51 -03:00
Oliver Ford
722d9ede6e
doc(api) XDG user dirs are not env vars, fix: #3090 (#3092) 2021-12-27 10:57:45 -03:00
Lucas Fernandes Nogueira
35588b2e04
fix(cli.rs): check default arch at runtime, closes #3067 (#3078) 2021-12-27 10:49:59 -03:00