Commit Graph

532 Commits

Author SHA1 Message Date
Lucas Fernandes Nogueira
285bf64bf9
feat(core): add clipboard writeText and readText APIs (#2035) 2021-06-21 13:32:22 -03:00
Lucas Fernandes Nogueira
3280c4aa91
refactor(core): global shortcut is now provided by tao (#2031) 2021-06-21 12:29:26 -03:00
Lucas Fernandes Nogueira
9cd10df4d5
feat(core): allow disabling file drop handler, closes #2014 (#2030) 2021-06-21 10:55:14 -03:00
Lucas Fernandes Nogueira
b769c7f7da
feat(bundler): windows installer license, closes #2009 (#2027) 2021-06-21 10:36:13 -03:00
Lucas Fernandes Nogueira
7dcca6e928
feat(core): add request_user_attention API, closes #2023 (#2026)
* feat(core): add `request_user_attention` API

* fix: api lint

* fix build without window allowlist
2021-06-20 23:42:38 -03:00
Lucas Fernandes Nogueira
08c161c5e8
fix(core): remove window from HashMap on close (#2024) 2021-06-20 14:12:28 -03:00
Lucas Fernandes Nogueira
8a7921e5cb
fix(core): fallback to index.html on asset loading, closes #2020 #2021 (#2022) 2021-06-20 11:47:15 -03:00
Lucas Fernandes Nogueira
70fc87a7ff
feat(core): add config and package_info getters on App and AppHandle (#2016) 2021-06-20 09:42:11 -03:00
Lucas Fernandes Nogueira
5ca462f6cc
feat(core): add path resolver API to the App and AppHandle structs (#2015) 2021-06-19 14:47:30 -03:00
Lucas Fernandes Nogueira
86d0aaa021
fix(core): notification panic on Windows, closes #917 (#2011) 2021-06-19 13:57:45 -03:00
Lucas Fernandes Nogueira
2a5ba7fe77
feat(core): add error message to HTTP API rejection, closes #2003 (#2004) 2021-06-17 11:33:53 -03:00
Lucas Fernandes Nogueira
ab3eb44bac
fix(core): deadlock on window getters, fixes #1893 (#1998)
* fix(core): deadlock on window getters, fixes #1893

* fix compilation without menu feature
2021-06-16 11:07:41 -03:00
Lucas Fernandes Nogueira
954460c520
feat(core): MenuHandle show, hide, is_visible and toggle APIs (#1958) 2021-06-15 22:04:44 -03:00
Edgar Geier
cca8115d9c
refactor: update wry, simplify script eval (#1965)
* refactor: simplify `handle_event_loop`

* update wry to git rev

Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2021-06-15 22:04:06 -03:00
Lucas Fernandes Nogueira
4791961981
feat(bundler): allow setting wix language, closes #1976 (#1988) 2021-06-15 21:12:34 -03:00
nothingismagick
463fd00d06
fix(csp): add wss and tauri to conf template (#1974)
* fix(csp): add wss and tauri to conf template

* add change file, update examples/docs

Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2021-06-15 13:37:24 -03:00
Lucas Fernandes Nogueira
49fb3b7225
fix(core): build without dialog Cargo features (#1973) 2021-06-09 22:22:26 -03:00
Lucas Fernandes Nogueira
cd1a299a7d
chore(core): hide phf, closes #1961 (#1964) 2021-06-09 19:04:31 -03:00
Lucas Fernandes Nogueira
5cba6eb4d2
feat(core): add window center API, closes #1822 (#1954) 2021-06-05 18:20:16 -03:00
Lucas Fernandes Nogueira
6a95d7acc3
fix(cli.rs): info version checks not striping \r on Windows (#1952) 2021-06-05 09:23:09 -03:00
Lucas Fernandes Nogueira
dc6b0d8522
feat(core): set .rc values from tauri.conf.json, closes #1849 (#1951) 2021-06-05 01:16:54 -03:00
Lucas Fernandes Nogueira
9bf82f0d92
fix(core): run_on_main_thread now wakes the event loop (#1949)
* fix(core): `run_on_main_thread` now wakes the event loop

* chore: simplify code
2021-06-04 22:23:03 -03:00
Oleg Shilov
07fd9a92de
fix(core): add hash symbol in uri parse, closes #1943 (#1947)
* fix(core): add hash symbol in uri parse

* chore: add changelog

Co-authored-by: Evgeniy Abramov <i@kio.ninja>
2021-06-04 18:37:23 -03:00
Lucas Fernandes Nogueira
f7e9fe8f3f
refactor(core): new system tray and window menu APIs, closes #1898 (#1944) 2021-06-04 13:51:15 -03:00
Lucas Fernandes Nogueira
8f29a260e6
fix(cli.rs): copy resources and binaries on dev, closes #1298 (#1946) 2021-06-04 01:58:15 -03:00
Lucas Fernandes Nogueira
8be35ced78
fix(cli.rs): tauri.conf.json > tauri > bundle > targets being ignored (#1945)
* fix(cli.rs): `tauri.conf.json > tauri > bundle > targets` being ignored

* fix: cli.ts run
2021-06-04 00:57:00 -03:00
Lucas Fernandes Nogueira
c021968eb8
fix(core): asset loading not decoding percent-encoded path, closes #1879 (#1938) 2021-06-01 15:49:24 -03:00
Lucas Fernandes Nogueira
40b717edc5
feat(core): set window icon on Linux, closes #1922 (#1937) 2021-06-01 13:07:48 -03:00
Lucas Fernandes Nogueira
df21ffc61f
fix(core): command mpsc usage, closes #1935 (#1936) 2021-06-01 11:11:22 -03:00
Lucas Fernandes Nogueira
4bdc406679
feat(core): kill sidecar child processes on App drop, closes #1896 (#1932) 2021-06-01 00:09:44 -03:00
Lucas Fernandes Nogueira
21a971c3b7
feat(cli.rs): infer devPath/distDir/appName from package.json (#1930) 2021-05-31 19:37:53 -03:00
Amr Bashir
3c21ddc73c
fix(cta): use correct beforeDevCommand for vite recipe (#1931)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2021-05-31 19:37:16 -03:00
Lucas Fernandes Nogueira
6ec54c53b5
feat(core): allow dev_path, dist_dir as array of paths, fixes #1897 (#1926)
* feat(core): allow `dev_path`, `dist_dir` as array of paths, fixes #1897

* fix: clippy
2021-05-31 11:42:10 -03:00
Lucas Nogueira
e06aa27738
feat(core): add set_skip_taskbar API 2021-05-30 22:09:12 -03:00
Lucas Nogueira
5525b03a78
feat(core): add skip_taskbar API to the WindowBuilder/WindowOptions 2021-05-30 18:43:28 -03:00
Lucas Nogueira
36506c967d
feat(core): add is_visible API 2021-05-30 18:06:24 -03:00
Lucas Nogueira
5f351622c7
feat(core): add focus API to the WindowBuilder and WindowOptions, #1737 2021-05-30 17:41:28 -03:00
Lucas Nogueira
bb6992f888
feat(core): add set_focus window API, fixes #1737 2021-05-30 17:30:26 -03:00
Lucas Nogueira
1e8af280c2
feat(core): add is_resizable Window getter 2021-05-30 17:23:52 -03:00
Lucas Nogueira
f58a2114fb
feat(core): add is_decorated Window getter 2021-05-30 17:21:05 -03:00
Laegel
23707764dc
Drag region attribute check (#1907) 2021-05-30 17:04:17 -03:00
Amr Bashir
277f5ca5a8
feat(api): export BaseDirectory in path module (#1885) 2021-05-30 16:59:46 -03:00
imspace
3bf853d782
feat(cli.rs): support tauri build on M1 chip (#1915) 2021-05-29 01:21:24 -03:00
Lucas Fernandes Nogueira
abf78c5860
fix(core): set parent window handle on dialogs, closes #1876 (#1889) 2021-05-21 16:53:46 -03:00
Lucas Fernandes Nogueira
8c0d0739ee
feat(core): add run_iteration, parent_window and owner_window APIs, closes #1872 (#1874) 2021-05-21 16:16:05 -03:00
Lucas Fernandes Nogueira
35a2052771
fix(bundler): windows resources bundling with nested folders (#1878)
* fix(bundler): windows resources bundling with nested folders

* fix: change file
2021-05-21 13:35:55 -03:00
Lucas Fernandes Nogueira
4aeb936e9b
fix(api): WebviewWindow constructor is public (#1888) 2021-05-21 13:25:10 -03:00
Lucas Fernandes Nogueira
aab3e1f18b
refactor(core): move api modules behind allowlist feature flags (#1864)
* refactor(core): move api modules behind allowlist feature flags

* run fmt
2021-05-19 09:21:57 -03:00
Lucas Fernandes Nogueira
17c7c4396f
refactor(core): use attohttpc by default (#1861) 2021-05-19 01:06:08 -03:00
Lucas Fernandes Nogueira
1be37a3f30
refactor(core): remove image dependency (#1859) 2021-05-18 21:46:21 -03:00
Lucas Fernandes Nogueira
95d518afa1
feat(core): expose AppHandle, add create_window API (#1855) 2021-05-18 16:49:01 -03:00
chip
3d8dcbbf81
fix(core): allow wry to be an optional dep again (fix #1841) (#1854) 2021-05-18 00:42:02 -03:00
Lucas Fernandes Nogueira
e97846aae9
feat(core): validate devPath and distDir values (#1848)
* feat(core): validate `devPath` and `distDir` values

* fix tests
2021-05-17 14:47:05 -03:00
aida.t
e08065d7fe
fix: deb installation error (#1844) 2021-05-17 14:18:33 -03:00
Lucas Fernandes Nogueira
612cd8ecb8
feat(api): finalize export type usage (#1847) 2021-05-17 12:54:56 -03:00
Lucas Fernandes Nogueira
7616e6cc7b
feat(api): validate window API size and location arguments (#1846)
* feat(api): validate window API `size` and `location` arguments

* fmt
2021-05-17 11:47:11 -03:00
Ngo Iok Ui (Wu Yu Wei)
c1f8e11342
chore: remove unnecessary anonymous lifetimes (#1829) 2021-05-14 10:29:54 -03:00
Ngo Iok Ui
9a60c1053f Add change file 2021-05-14 15:13:02 +08:00
Lucas Fernandes Nogueira
6ec8e84d91
feat(cli.rs): add features arg to dev/build (#1828) 2021-05-13 18:10:48 -03:00
crapStone
2b814e9c93
added cargo features to tauri config (#1824)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2021-05-13 17:01:15 -03:00
Sporesirius
9a662d2601
fix: Monitor if --isolatedModules is enabled (#1825)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2021-05-13 16:53:10 -03:00
crapStone
86a23ff30b
added support for cargo workspaces for dev command (#1827)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2021-05-13 16:45:46 -03:00
chip
754c2e766a
feat(core): finish mutable getters for Context (#1814) 2021-05-13 12:50:45 -03:00
chip
39f8f26916
refactor(macros): explicitly pass idents (#1812) 2021-05-13 10:18:15 -03:00
github-actions[bot]
64dd434b03
Apply Version Updates From Current Changes (#1811)
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
2021-05-13 10:17:03 -03:00
Lucas Nogueira
22f83c4706
fix(covector): cli.rs has no dependency on cli.js, api or core 2021-05-13 10:10:36 -03:00
Dominik Schenk
66b6136e06
Disable version check with semver for now (#1810) 2021-05-12 19:33:17 -03:00
github-actions[bot]
a68b4ee827
Apply Version Updates From Current Changes (#1799)
Co-authored-by: jbolda <jbolda@users.noreply.github.com>
2021-05-12 16:31:52 -03:00
Jacob Bolda
8a164d0a1f
fix: CTA cache and vite build (#1806)
* use file as version for local links

this also makes it closer to the production version and less likely to accidentally introudce an issue

* always install latest without asking

* work around issues with esbuild installing properly

* test shouldn't run build-release on the cli

* build cli.js and api outside of the test

* try test on windows

* change file

* switch back to linux test

* -y prompt not available on npm@6, remove

* pipe
2021-05-12 14:25:44 -05:00
Lucas Fernandes Nogueira
ab1ea96478
chore(api): add package.json to the exports field (#1807)
* chore(api): add `package.json` to the `exports` field

* move exports to package.json
2021-05-12 14:56:14 -03:00
chip
0b87532706
fix(macros): fix rest of command collisons (#1805)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2021-05-12 12:56:16 -03:00
chip
7862ec562f
fix(macros): change invoke binding in generate handler (#1804) 2021-05-12 12:22:05 -03:00
Lucas Fernandes Nogueira
144d6b9d4d
feat(core): add mutable config getter on the Context struct (#1803) 2021-05-12 11:17:52 -03:00
Lucas Fernandes Nogueira
d36b726926
fix(macros): collision when command is named cmd (#1802) 2021-05-12 11:17:33 -03:00
Lucas Fernandes Nogueira
1ab8dd93e6
fix(core): system-tray cargo feature usage, fixes #1798 (#1801) 2021-05-12 10:55:21 -03:00
Lucas Fernandes Nogueira
f5a480fea3
fix(core): window transparency (#1800) 2021-05-12 10:55:12 -03:00
nothingismagick
12268e6e69
fix(csp): add 'self' (#1794)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2021-05-12 09:45:39 -03:00
Noah Klayman
71f6a5ed44
fix(cli.rs/build): fix typo getting bundle arg (#1783) 2021-05-12 09:32:31 -03:00
Lucas Nogueira
d03c98b0e6
fix(ci): covector errorOnVersionRange config 2021-05-11 16:57:04 -03:00
github-actions[bot]
7c7a0777ca
Apply Version Updates From Current Changes (#1629)
* apply version updates

* fix metadata.json [skip ci]

Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2021-05-11 16:20:35 -03:00
chip
27a7810767
feat(core): add default Args to all types exposing Params (#1777) 2021-05-11 14:32:11 -03:00
Jacob Bolda
b5f8912122
going beta release (#1779) 2021-05-11 14:16:40 -03:00
chip
55423590dd
refactor(core): Context fields now private, Icon used on all platforms (#1774) 2021-05-11 08:38:08 -03:00
Lucas Fernandes Nogueira
72b8048b5a
feat(cli.rs): fill debian depends with tauri dependencies (#1767) 2021-05-10 14:10:09 -03:00
Lucas Fernandes Nogueira
08c1c5ca5c
fix(api): missing transparent flag on WindowOptions (#1764) 2021-05-10 00:30:01 -03:00
Lucas Fernandes Nogueira
7bb7dda752
refactor(core): resolve resource_dir using the package info (#1762) 2021-05-10 00:01:12 -03:00
Lucas Fernandes Nogueira
4687538987
refactor(core): drop Option payload type on event::emit (#1760) 2021-05-09 22:50:08 -03:00
Lucas Fernandes Nogueira
455c550f34
refactor(core): Settings serialization using bincode (#1758) 2021-05-09 22:09:32 -03:00
Lucas Fernandes Nogueira
45a7a111e0
feat(core): add tauri-wry crate (#1756) 2021-05-09 18:43:50 -03:00
Lucas Fernandes Nogueira
665ec1d4a1
refactor: move runtime to tauri-runtime crate (#1751) 2021-05-09 15:19:37 -03:00
Jacob Bolda
ea28d01691
create-tauri-app welcome prompt and recipes links (#1748)
* CTA welcome prompt and recipes links

* fix tests for new recipe names

* check that package file exists before build

* change file

* turn off vuecli tests until we can get them to pass
2021-05-09 09:31:01 -05:00
Dominik Schenk
908b703246
feat(cli.js): package managers interface, add pnpm support (#1743)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2021-05-09 09:03:44 -03:00
chip
bb8dafbe1e
feat(core): #[command] return with autoref specialization workaround fix #1672 (#1734)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2021-05-09 08:52:20 -03:00
Lucas Fernandes Nogueira
c090927021
feat(core): system tray, closes #157 (#1749) 2021-05-09 08:15:37 -03:00
Lucas Fernandes Nogueira
41d5d6aff2
feat(core): window menus (#1745) 2021-05-08 12:11:40 -03:00
Lucas Fernandes Nogueira
dbd9b078aa
refactor(core): create_window API signature on the Window struct (#1746) 2021-05-08 09:37:06 -03:00
Lucas Fernandes Nogueira
79feb6a918
fix(cli.rs): cargo build failed due to cache issue, closes #1543 (#1741) 2021-05-07 16:31:52 -03:00
Lucas Fernandes Nogueira
56e74ccf74
feat(core): ensure window.print()works on macOS (#1738) 2021-05-07 10:58:44 -03:00
Amr Bashir
cea3ba9f97
feat(cta): add support for all vite templates (#1670)
* feat(cta): add support for all vite templates

* vite template dir removed, ignore template step for now

Co-authored-by: Jacob Bolda <me@jacobbolda.com>
2021-05-07 00:29:55 -05:00
Lucas Fernandes Nogueira
8e0d4f666c
fix(bundler): debian package Installed-Size value (#1735) 2021-05-07 00:46:50 -03:00
Lucas Fernandes Nogueira
e37e187d4a
fix(bundler): dmg volume icon (#1730) 2021-05-06 13:54:15 -03:00
Lucas Fernandes Nogueira
f1aa12075f
fix(bundler): update create-dmg, fixes #1571 (#1729) 2021-05-06 12:57:08 -03:00
Lucas Fernandes Nogueira
9c10ccf8d3
feat(core) window events, closes #1523 (#1726) 2021-05-06 00:43:02 -03:00
Lucas Fernandes Nogueira
e087f0f937
feat: add #[non_exhaustive] attribute (#1725) 2021-05-05 22:22:45 -03:00
Lucas Fernandes Nogueira
6bfac866a7
refactor(core): add window getters, physical & logical sizes/positions (#1723) 2021-05-05 20:15:08 -03:00
chip
1453d4bf84
feat(core): support generics (especially Param) in #[command] (#1622)
* wip: param argument proof of concept for #[command]

* use macros for automatic type inference in commands

* refactor command for better error handling

* remove redundant ToTokens impl for Wrapper and Handler

* create `StateP` to allow state to use type inference during commands

* wrap State instead of T

* remove accidental edit of attribute

* remove StateP

because we recommend `_: Window<P>` for type inference, the following
function types are now supported:
* Pat::Wild (arg: "_")
* Pat::Struct (arg: final path segment)
* Pat::TupleStruct (arg: final path segment)

* add wildcard, struct, and tuple struct commands to examples

* better unsupported command argument message

* feat(examples): move some commands to a separate module

* add change file

Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2021-05-05 14:32:13 -03:00
Lucas Fernandes Nogueira
862e33a0f6
refactor(cli.js): download rustup binary (#1711) 2021-05-05 10:28:43 -03:00
Jacob Bolda
397b7af395
chore: CTA defaults in CI mode (#1671)
* better defaults in CI mode

* chalk should be a dep since it needs to be installed by user

* always install webkit2gtk

* avoid installing `cli.js` from npm in `--dev` mode

* use correct path for `api` linking in tests

* update `tauri.conf.json` after init

* remove `beforeBuild/DevCommand` from vanilla recipe

* explicitly install `vite` deps

* change file

Co-authored-by: amrbashir <48618675+amrbashir@users.noreply.github.com>
2021-05-05 07:25:17 -05:00
Lucas Fernandes Nogueira
6132f3f4fe
feat(core): reintroduce CSP injection (#1704) 2021-05-04 23:31:05 -03:00
Lucas Fernandes Nogueira
428d50add4
refactor(core): use bundle identifier on app dir, closes #1693 (#1703)
* refactor(core): use bundle identifier on app dir, closes #1693

* fix: tests

* clippy
2021-05-04 20:26:13 -03:00
Lucas Fernandes Nogueira
92a01a7cab
chore(deps): bump tauri-hotkey to 0.1.2 (#1701) 2021-05-04 12:05:26 -03:00
Lucas Fernandes Nogueira
ac2cbcb131
fix(cli.rs): before dev process kill, closes #1626 (#1700) 2021-05-04 11:27:10 -03:00
Amr Bashir
2b4e2b7560
feat(cli.rs/info): get webview2 version on windows (#1669)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2021-05-04 01:26:56 -03:00
Lucas Fernandes Nogueira
314936efbe
feat(bundler): add icon path config instead of enforcing icons/icon.ico (#1698)
* feat(bundler): add icon path config instead of enforcing icons/icon.ico

* fix: build on unix
2021-05-03 23:09:12 -03:00
Lucas Fernandes Nogueira
5110c704be
feat(core): allow users to access the Assets instance (#1691)
* feat(core): allow users to access the Assets instance

* chore(changes): mark as breaking change [skip ci]
2021-05-03 15:07:38 -03:00
Lucas Fernandes Nogueira
8845487f9d
fix(cli.js): handle cli.rs promise rejection (#1689) 2021-05-03 14:42:31 -03:00
Lucas Fernandes Nogueira
c91105ff96
refactor(build): allow setting window icon path on try_build (#1686) 2021-05-03 10:42:29 -03:00
chip
1d6f418129
refactor(core): merge invoke items into single struct, allow ? (#1683) 2021-05-03 01:17:47 -03:00
Lucas Fernandes Nogueira
152c755c47
feat(cli.rs): framework and bundler on info cmd, closes #1681 (#1682) 2021-05-02 21:51:35 -03:00
nothingismagick
82a580ec45
feat(tauricon): fix transparency (#1678)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2021-05-02 19:02:58 -03:00
Lucas Fernandes Nogueira
8941790f98
fix(core): notification permission check when !allowlisted, closes #1666 (#1677) 2021-05-02 18:33:57 -03:00
Lucas Fernandes Nogueira
8b6f3de0ad
feat(core): add state management, closes #1655 (#1665)
* feat(core): add state management, closes #1655

* fix(tests): ignore doc example

* use a trait to manage #[command] parameters

* add docs [skip ci]

* finish command before moving into respond_async

* Revert "finish command before moving into respond_async"

This reverts commit 4651bed5bf.

* refactor: split InvokeMessage into InvokeResolver, add InvokeResponse

* feat: add managed state to the plugin interface

* feat: add commands example

* add change file [skip ci]

* cleanup clones

Co-authored-by: chip reed <chip@chip.sh>
2021-05-02 15:34:15 -03:00
Lucas Fernandes Nogueira
d92fde7505
feat(core): add output and status APIs to the Command struct (#1668) 2021-05-02 09:00:39 -03:00
Lucas Fernandes Nogueira
5cc4b11f5d
feat(cli.rs): add context to errors (#1674) 2021-05-01 22:02:45 -03:00
Lucas Fernandes Nogueira
b0bb796a42
refactor: rename command mod to process, move restart_application (#1667)
* refactor: rename `command` mod to `process`, move restart_application

* refactor(api): move `exit`, `relaunch` APIs to `process` module
2021-04-30 22:43:47 -03:00
Lucas Fernandes Nogueira
5c1fe52c2b
feat(cli.rs): allow using cross instead of cargo, add target triple arg (#1664) 2021-04-30 15:16:14 -03:00
Lucas Fernandes Nogueira
894643cdcd
feat(bundler): use armhf as Debian package architecture on arm CPUs (#1663) 2021-04-30 12:32:07 -03:00
Lucas Fernandes Nogueira
fcee4c25fc
refactor(bundler): finish initial documentation, reorganize modules (#1662) 2021-04-30 11:39:50 -03:00
Lucas Fernandes Nogueira
4f1e87f87b
refactor(core): change drag element detection to data attr, fixes #1656 (#1659) 2021-04-29 20:38:19 -03:00
Lucas Fernandes Nogueira
df8bdcf063
feat(cli.rs): add support to string and table dependency, closes #1653 (#1654) 2021-04-29 12:17:46 -03:00
Jacob Bolda
c3acbd68ec
chore: shift CTA from bin to .ts (#1651)
* chore: shift CTA from bin to .ts

* add change file

* fix rollup build
2021-04-29 08:55:09 -05:00
Lucas Fernandes Nogueira
c31f0978c5
refactor: update to wry 0.9 (#1630) 2021-04-28 19:56:05 -03:00
Lucas Fernandes Nogueira
721e98f175
feat(core): add env, cwd to the command API, closes #1634 (#1635)
Co-authored-by: Amr Bashir <48618675+amrbashir@users.noreply.github.com>
2021-04-28 18:25:44 -03:00
chip
a755d23e1b
refactor(core): more bounds for better errors from #1623 (#1632) 2021-04-27 20:14:51 -03:00
Lucas Fernandes Nogueira
181e132aee
refactor(core): simplify usage of app event and window label types (#1623)
Co-authored-by: chip reed <chip@chip.sh>
2021-04-27 11:52:12 -03:00
Jacob Bolda
af6411d5f8
feat: setup testing for CTA (#1615)
* feat: setup testing for CTA

* install with yarn

* build before test

* add yarn to npm runs for install / test start

* add dev mode to link cli.js and api locally

* remove fixtures

* run tests serially

* cli.js build-release avoids webpack error

* assert on package.json contents as first check

* run tauri build and split out custom asserts

* add changefile

* shorten workflow name

* too short

* exclude npm@6 on node@16

* increase timeout, tauri build takes a bit of time

* only assert that the tauri script exists
2021-04-27 09:14:24 -05:00
Amr Bashir
ddcd9233bd
fix(api): export commonjs chunks with .cjs extension, fix #1625 (#1627) 2021-04-26 14:12:00 -03:00
github-actions[bot]
0f86bc4071
Apply Version Updates From Current Changes (#1620)
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2021-04-25 17:54:41 -03:00
Lucas Fernandes Nogueira
f575aaad71
fix: change files not referencing core packages (#1619) 2021-04-25 17:42:38 -03:00
github-actions[bot]
cad5192e31
Apply Version Updates From Current Changes (#1561)
Co-authored-by: nothingismagick <nothingismagick@users.noreply.github.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2021-04-25 16:07:22 -03:00
Lucas Fernandes Nogueira
a868cb7176
refactor(core): clear uri_scheme_protocol registration function names (#1617)
* refactor(core): clear `custom_protocol` registration function names

* fix

* fix clippy

* improve docs

* clippy

* renames
2021-04-25 13:00:03 -03:00
Lucas Fernandes Nogueira
d623d95fcb
fix(cli.rs): inliner dialoguer & console until they publish, fixes #1492 (#1610)
* fix(cli.rs): inliner dialoguer & console until they publish, fixes #1492

* fix tests

* change file

* fix: tests & fmt

* chore: add fork note

* fix: windows deps

* chore(licensing): add note for console & dialoguer

Signed-off-by: Daniel Thompson-Yvetot <denjell@mailscript.com>

Co-authored-by: Daniel Thompson-Yvetot <denjell@mailscript.com>
2021-04-25 11:34:33 -03:00
Lucas Fernandes Nogueira
9e87fe6a69
feat(bundler): allow including custom files on debian package, fix #1428 (#1613) 2021-04-25 01:46:04 -03:00
Lucas Fernandes Nogueira
d13afec204
feat(bundler): add option to skip webview2 runtime installation, closes #1606 (#1612) 2021-04-24 19:01:50 -03:00
Downtime
ebe755ac5c
feat: #1528 wix supports custom templates (#1529)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2021-04-24 18:32:28 -03:00
Lucas Fernandes Nogueira
941585c0c5
fix(cli.js): skip installing deps when --ci is passed on tauri init (#1603) 2021-04-23 15:31:45 -03:00
Lucas Fernandes Nogueira
69ea51ec93
feat(bundler): implement wix fragments, closes #1528 (#1601) 2021-04-23 15:30:44 -03:00
Lucas Fernandes Nogueira
7471e347d3
feat(core): add error message on error::CreateWebview (#1602) 2021-04-23 15:30:02 -03:00
Lucas Fernandes Nogueira
1e0b41e155
refactor(cli.js): tauri icon with positional arg for icon path (#1600) 2021-04-23 11:10:49 -03:00
Lucas Fernandes Nogueira
cfa74ebf68
feat(core): validate dialog default_path (it must exist) (#1599) 2021-04-23 03:17:29 -03:00
Lucas Fernandes Nogueira
aa7e2738cc
feat: use rfd::FileDialog#set_file_name if default_path is a file (#1598) 2021-04-23 03:04:47 -03:00
Lucas Fernandes Nogueira
9490b257d2
fix(cli.rs): enable the updater feature on cli (#1597) 2021-04-23 01:41:51 -03:00
Lucas Fernandes Nogueira
fbf73f3ab5
fix(bundler): find icon for AppImage, define .DirIcon, closes #749 (#1594) 2021-04-23 00:25:50 -03:00
Lucas Fernandes Nogueira
8a32d0ec39
fix(cli.js): remove cli file if the download fails or process is killed (#1592) 2021-04-22 23:10:45 -03:00
Lucas Fernandes Nogueira
5e65b768e5
fix(core): expose PageLoadPayload struct (#1590) 2021-04-22 20:35:50 -03:00
Lucas Fernandes Nogueira
0012782e43
fix(cli.rs): info command npm_package_version parsing beta-rc (#1587) 2021-04-22 19:14:15 -03:00
Lucas Fernandes Nogueira
a670d3a457
fix(cli.rs): check if distDir exists after running beforeDevCommand (#1586) 2021-04-22 16:28:41 -03:00
Lucas Fernandes Nogueira
99307d02c3
fix(core): sidecar command path (#1584) 2021-04-22 16:01:56 -03:00
Lucas Fernandes Nogueira
7f998d08e3
fix(api): distribution (#1582)
Co-authored-by: Amr Bashir <48618675+amrbashir@users.noreply.github.com>
2021-04-22 15:39:59 -03:00
Lucas Fernandes Nogueira
8fd1baf69b
fix(core): pull package info from tauri.conf.json if set (#1581)
* fix(core): pull package info from tauri.conf.json if set

* fix: codegen
2021-04-22 12:28:18 -03:00
Lucas Fernandes Nogueira
5f033db41c
feat(core): use bundle identifier on user data path (#1580) 2021-04-22 11:05:03 -03:00
david
5909c1e014
Make sure custom protocol is handled as secure context on macOS (#1551) 2021-04-22 10:09:42 -03:00
Lucas Fernandes Nogueira
422dd5e2a0
fix(core): command name on plugin invoke handler (#1577) 2021-04-21 23:31:27 -03:00
Lucas Fernandes Nogueira
d3fdeb4518
feat(core): expose async_runtime module (#1576) 2021-04-21 22:09:24 -03:00
Lucas Fernandes Nogueira
508eddc784
refactor(core): plugin initialization return value (#1575) 2021-04-21 21:44:18 -03:00
Amr Bashir
f708ff824e
fix(CTA): #1569, manually set tauri script for compatability with older npm (#1572) 2021-04-21 21:26:49 -03:00
Lucas Fernandes Nogueira
938fb624f5
feat(core): expose custom protocol handler APIs (#1553) 2021-04-21 15:43:11 -03:00
Lucas Fernandes Nogueira
be65f04db7
fix(core): make window.__TAURI__.invoke context free, fixes #1547 (#1565) 2021-04-21 15:42:52 -03:00
Lucas Fernandes Nogueira
07eb6cec8b
fix(cli.js): use cargo search on crate latest version detection (#1563) 2021-04-21 12:43:46 -03:00
Lucas Fernandes Nogueira
1f089fb4f9
chore: update minimum nodejs version to 12.13.0 (#1562) 2021-04-21 11:50:24 -03:00
Lucas Fernandes Nogueira
ceadf2f556
fix(core): macos shortcut modifiers, closes #1542 (#1560) 2021-04-21 09:12:18 -03:00
github-actions[bot]
8fa06ddb6a
Apply Version Updates From Current Changes (#1540)
* apply version updates

* remove cli.rs and cli.js bump

Co-authored-by: jbolda <jbolda@users.noreply.github.com>
Co-authored-by: Jacob Bolda <me@jacobbolda.com>
2021-04-19 14:19:36 -05:00
Jacob Bolda
2e39880582
chore: covector config tweaks, remove tauri -> api dep (#1541) 2021-04-19 14:04:44 -05:00
Jacob Bolda
9d6df1881a
fix: cargo check cli.rs not cli.js (#1539) 2021-04-19 12:49:11 -05:00
Jacob Bolda
ae14a3ff51
fix: #1517 had the wrong package reference in the changefile (#1538) 2021-04-19 12:31:13 -05:00
Jacob Bolda
7ca77780a5
fix: update lockfile for cli.rs
Add cargo check run so it stays up to date when the version is bumped.
2021-04-19 11:37:05 -05:00
github-actions[bot]
a202b68447
apply version updates (#1503)
Co-authored-by: jbolda <jbolda@users.noreply.github.com>
2021-04-19 17:19:30 +02:00
Jacob Bolda
635140b27a
fix: run metadata sync script explicitly with node (#1536) 2021-04-19 09:48:02 -05:00
Jacob Bolda
1f64927362
chore: sync cli.rs metadata.json file versions (#1534) 2021-04-19 09:15:21 -05:00
Laegel
fcb3b4857e
fix: #1512 (#1517)
* fix: Export

* chore(changefile)

* fix: Updated publish step

* fix: Also outputting CommonJS

* fix:`preparePublish` now copies the necessary files

* fix: typo

Co-authored-by: Laegel <valentin.chouaf@laposte.net>

* chore: update `build` script

* chore: add `prepublishOnly script`

* chore: update `api` covector config

* round two, fight!!

Co-authored-by: amrbashir <48618675+amrbashir@users.noreply.github.com>
2021-04-18 22:31:12 -05:00
SneakyFish5
edab7a6686
chore(deps): remove lodash from create-tauri-app (#1532) 2021-04-18 21:30:06 +02:00
Jacob Bolda
098b729e67
chore: CTA version was decremented, fix and adjust changelog to compensate (#1530) 2021-04-18 10:44:15 -05:00
Jacob Bolda
d9f54969ef
chore: cross compat the version check for cargo in covector config (#1531) 2021-04-18 10:02:17 -05:00
Jacob Bolda
03a1c95d7e
chore: enable covector prerelease beta (#1518) 2021-04-16 19:55:00 -03:00
Amr Bashir
71666e9f9c
fix(cli.rs): fix panic & use cmd to run yarn&npm on windows (#1511) 2021-04-16 19:52:20 -03:00
chip
e447b8e0e6
allow event listeners to be nested (#1513)
* allow event listeners to be nested

* finish event comment

* remove extraneous into_iter()

* use tag instead of params on event for easier testing
2021-04-15 21:22:47 -03:00
chip
ece243d17c
don't remove once listener on new thread (#1506)
Spawning an async task to remove the once listener caused it to be able to be
called multiple times before being removed. This design choice was previously
made due to deadlock happening when removing the event from inside `fn once`.
That was because the listeners were already locked inside the trigger when
asked to be removed. `fn trigger` now handles removing once handlers
2021-04-15 08:11:42 +02:00
Noah Klayman
bdf707285e
fix(cli.rs/info): add missing camelCase rename (#1505)
* fix(cli.rs/info): add missing camelCase rename

* add changefile
2021-04-15 07:48:38 +02:00
Amr Bashir
3998046489
fix(cta): remove tauri dep from vanilla recipe (#1502) 2021-04-14 22:05:16 -03:00
github-actions[bot]
345f2dbfc5
Apply Version Updates From Current Changes (#1499)
Co-authored-by: nothingismagick <nothingismagick@users.noreply.github.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2021-04-14 20:33:44 -03:00
Amr Bashir
6c00e88e0f
fix(cta): fix adding tauri script to package.json (#1501)
* fix(cta): fix adding `tauri` script to package.json

* add change file

* Update .changes/cta-tauri-script.md

Co-authored-by: nothingismagick <denjell@mailscript.com>
2021-04-15 01:26:07 +02:00
nothingismagick
b2569a729a
fix(js-api): dist (#1498)
Signed-off-by: Daniel Thompson-Yvetot <denjell@mailscript.com>
2021-04-15 01:04:20 +02:00
github-actions[bot]
c2e48e07ec
Apply Version Updates From Current Changes (#1497)
* apply version updates

* fix versions

Co-authored-by: jbolda <jbolda@users.noreply.github.com>
Co-authored-by: Jacob Bolda <me@jacobbolda.com>
2021-04-14 17:26:01 -05:00
Jacob Bolda
7b6108e37b
fix: cta templates dir missing (#1496) 2021-04-14 17:21:34 -05:00
github-actions[bot]
0068bfda66
Apply Version Updates From Current Changes (#1494)
* apply version updates

* fix version

Co-authored-by: jbolda <jbolda@users.noreply.github.com>
Co-authored-by: Jacob Bolda <me@jacobbolda.com>
2021-04-14 17:03:00 -05:00
Jacob Bolda
414f9a78c9
fix: cta dist publish (#1493) 2021-04-14 16:57:47 -05:00
Jacob Bolda
6ec027339c
chore: publish codegen before macros and build (#1488) 2021-04-14 15:00:44 -05:00
Jacob Bolda
67eab36b2f
chore: covector should use pkg name, not nickname (#1487)
This fixes the check for tauri-cli which is nicknamed cli.rs.
2021-04-14 14:21:54 -05:00
github-actions[bot]
e267ebf1f1
Apply Version Updates From Current Changes (#1486)
* apply version updates

* adjust versions to beta-rc

Co-authored-by: jbolda <jbolda@users.noreply.github.com>
Co-authored-by: Jacob Bolda <me@jacobbolda.com>
2021-04-14 13:51:25 -05:00
chip
ec27ca81fe
refactor(tauri): remove private params trait methods (#1484)
* refactor(tauri): remove private params trait methods

* add changes file

* remove newly unused trait in WindowManager unit test
2021-04-14 13:03:20 -05:00