Commit Graph

1283 Commits

Author SHA1 Message Date
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
b6b4128885
chore(deps): wry 0.9.1 (#1761) 2021-05-09 22:50:16 -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
34b6032df7
feat(core): add on_window_event (global) API to app::Builder (#1759) 2021-05-09 22:22:06 -03:00
Lucas Fernandes Nogueira
455c550f34
refactor(core): Settings serialization using bincode (#1758) 2021-05-09 22:09:32 -03:00
Lucas Fernandes Nogueira
8d2e4c63c7
fix(core): do not reattach window on rpc/file_drop (#1757) 2021-05-09 21:33:40 -03:00
Lucas Fernandes Nogueira
45a7a111e0
feat(core): add tauri-wry crate (#1756) 2021-05-09 18:43:50 -03:00
chip
f190f11f13
fix(core): allow !Sync futures to be used with #[command] (#1755) 2021-05-09 18:03:27 -03:00
chip
2f4fca7567
refactor(core): clearer case conversion + docs (#1754) 2021-05-09 18:02:26 -03:00
Lucas Fernandes Nogueira
665ec1d4a1
refactor: move runtime to tauri-runtime crate (#1751) 2021-05-09 15:19:37 -03:00
chip
e84949524c
fix(core): convert command arguments to camel case (#1753) 2021-05-09 15:14:48 -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
Lucas Fernandes Nogueira
b2a7bfd7ec
fix(cli.rs): tray icon must be a png file on linux (#1750) 2021-05-09 10:04:43 -03: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 Nogueira
10715e63b1 fix: rust audit warning 2021-05-08 12:01:29 -03:00
dependabot[bot]
9f9eb503e5
chore(deps): bump hosted-git-info from 2.8.8 to 2.8.9 in /tooling/api (#1744)
Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](https://github.com/npm/hosted-git-info/compare/v2.8.8...v2.8.9)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-08 09:37:45 -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
Ali Furkan
d208039f58
fix(CTA): fix adding options (#1728) 2021-05-07 22:35:37 -05:00
Aurelien 'Sol' Pieropan
35935a55df
refactor(maskfile): enforce command name consistency (#1747) 2021-05-07 22:27:03 -03:00
nothingismagick
45aff87e65
chore(deps): js updates (#1739) 2021-05-07 19:52:20 -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
Kasper
f369a9c076
fix: restart when tauri dev starts, fixes #1544 (#1736)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2021-05-07 11:40:09 -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
renovate[bot]
b675469bca
chore(deps) Update dependency ts-loader to v9.1.2 (#1724)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-05-05 19:39:24 -03:00
renovate[bot]
879f2965ec
chore(deps) Update Rust crate notify-rust to 4.5.0 (#1722)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-05-05 16:55:27 -03:00
Lucas Fernandes Nogueira
f7892cf4ff
feat(api): documentation (#1694)
* feat(api): documentation

* more docs [skip ci]
2021-05-05 14:36:40 -03:00
renovate[bot]
1bd18c0976
chore(deps) Update dependency ts-jest to v26.5.6 (#1720)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-05-05 14:34:20 -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
c78db1b399
chore(api): remove unused dependencies (#1719)
* chore(api): remove unused dependencies

* chore: remove eslint-plugin-node

* Revert "chore: remove eslint-plugin-node"

This reverts commit 1b88da8f7b.
2021-05-05 14:29:53 -03:00
Lucas Fernandes Nogueira
68e9a3fd10
chore(cli.js): remove useless dotenv dependency (#1718) 2021-05-05 10:29:31 -03:00
Lucas Fernandes Nogueira
862e33a0f6
refactor(cli.js): download rustup binary (#1711) 2021-05-05 10:28:43 -03:00
renovate[bot]
762dd15e9b
chore(deps) Update create-tauri-app (#1712)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-05-05 10:18:44 -03:00
renovate[bot]
c273b76799
chore(deps) Update Tauri API Definitions (major) (#1715)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-05-05 09:53:36 -03:00
renovate[bot]
7ef9503e66
chore(deps) Update dependency @rollup/plugin-node-resolve to v13 (#1716)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-05-05 09:40:35 -03:00
renovate[bot]
a23068bb89
chore(deps) Update dependency fs-extra to v10 (#1717)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-05-05 09:38:48 -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
renovate[bot]
e393059a57
chore(deps) Update Tauri JS CLI (#1710)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-05-05 02:45:19 -03:00
renovate[bot]
f21ce9888d
chore(deps) Update Tauri API Definitions (#1709)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-05-05 02:40:45 -03:00
renovate[bot]
9eebd03857
chore(deps) Update Rust crate zstd to 0.8 (#1707)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-05-05 02:04:45 -03:00
renovate[bot]
fe7fc7a2ca
chore(deps) Update Rust crate zstd to 0.8 (#1708)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-05-05 02:04:38 -03:00