Commit Graph

493 Commits

Author SHA1 Message Date
Lucas Fernandes Nogueira
9f099912c1
chore(deps): update wry (#1278)
* chore(deps): update wry

* fix: clippy
2021-02-24 00:43:21 -03:00
Lucas Fernandes Nogueira
35c75b4197
refactor(api): reorganize and rename methods (#1277) 2021-02-23 23:30:14 -03:00
Lucas Fernandes Nogueira
b1e6b74a4f
refactor(cli): decouple bundler from cargo (#1269) 2021-02-21 16:11:40 -03:00
Noah Klayman
b29c0685bc
refactor(tauri.js): remove create command (#1265)
also fixes window title not setting properly because window config is an array
2021-02-21 11:26:56 -03:00
Lucas Fernandes Nogueira
f656799705
chore(cli): remove unused code (#1267) 2021-02-21 00:19:21 -03:00
Lucas Fernandes Nogueira
4963d00e5d
fix(cli): do not serialize None config values (#1266) 2021-02-20 23:35:01 -03:00
Lucas Fernandes Nogueira
e0be59ea26
refactor(core): split allowlist configuration per module (#1263)
* refactor(core): split allowlist configuration per module

* fix: build with all features

* fix(cli): run fmt

* fix(core): run fmt
2021-02-20 14:09:18 -03:00
Lucas Fernandes Nogueira
75eaaf0132
refactor: move schema validation to the Rust CLI (#1262) 2021-02-20 11:36:17 -03:00
Lucas Fernandes Nogueira
33eb49c4c0
refactor: use own invoke return struct instead of serde_json::Value (#1259) 2021-02-18 16:57:29 -03:00
Lucas Fernandes Nogueira
e7bd8c5920
fix(cli): beforeDev/beforeBuild cmds on windows - find cmd with which (#1256) 2021-02-17 23:27:48 -03:00
Lucas Fernandes Nogueira
f51801f790
fix(bundler): wix installer icon path, closes #1003 (#1254)
* fix(bundler): wix installer icon path, closes #1003

* fix: build
2021-02-17 23:27:26 -03:00
renovate[bot]
cb250d4cec
chore(deps) Update Tauri JS CLI (#1248)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-17 19:51:59 -03:00
Lucas Fernandes Nogueira
641374b153
feat(core): window creation at runtime (#1249) 2021-02-17 11:15:04 -03:00
Lucas Fernandes Nogueira
1c9d426d61
fix(cli): kill before_dev_command process when the webview is closed (#1240) 2021-02-16 02:17:35 -03:00
Lucas Fernandes Nogueira
ea7332539d
refactor(core): all API are now promise based (#1239) 2021-02-16 01:23:15 -03:00
Lucas Fernandes Nogueira
e34ee4c29c
fix(bundler): workspace detection, closes #1007 (#1235) 2021-02-14 17:57:59 -03:00
Lucas Fernandes Nogueira
772d83e8fd
fix(core): cli argument parser API not exiting on failure, update to latest (#1234) 2021-02-14 11:14:06 -03:00
Noah Klayman
4db2196c06
fix(cli/core/dev): ensure distDir exists (#1228)
__tauri.js could be written to a nonextistent dir otherwise
2021-02-13 16:28:09 -03:00
Lucas Fernandes Nogueira
ae76c60a61
fix(bundler): appimage paths and filename (#1227) 2021-02-13 15:06:39 -03:00
Noah Klayman
99635c3b6a
fix(bundler): remove unused code (#1221)
* fix(bundler): remove unused code

* Revert "fix(bundler): remove unused code"

This reverts commit 8f5188c8a2.

* chore: use is_some instead

* fix: tauri config is a Result

Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2021-02-13 12:11:29 -03:00
Lucas Fernandes Nogueira
77fc730671
refactor(core): split endpoint API matching into modules (#1219) 2021-02-12 02:42:40 -03:00
Lucas Fernandes Nogueira
07208dff6c
feat(core): add mult-window support (#1217) 2021-02-11 21:50:39 -03:00
Lucas Fernandes Nogueira
35468f68e5
chore(fmt): merge imports (#1216) 2021-02-11 03:22:42 -03:00
Lucas Fernandes Nogueira
84d7cdae63
refactor(core): remove no-server and its APIs (#1215) 2021-02-11 02:33:18 -03:00
renovate[bot]
cf94cd4770
chore(deps) Update Tauri JS CLI (#1202)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-11 00:13:33 -03:00
Noah Klayman
4d507f9adf
feat(cli/core): add support for building without targets (#1203) 2021-02-11 00:13:06 -03:00
Lucas Fernandes Nogueira
df32e18be3
feat(repo): add setup scripts (#1189) 2021-02-10 02:24:38 -03:00
renovate[bot]
7aa88ddbac
chore(deps) Update Rust crate image to 0.23.13 (#1196)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-10 01:08:42 -03:00
renovate[bot]
f30ec7efb8
chore(deps) Update Rust crate serde_json to 1.0.62 (#1198)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-10 01:08:17 -03:00
chip
e02c9419cb
refactor(tauri): support for building without environmental variables (#850)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2021-02-09 15:22:04 -03:00
Lucas Fernandes Nogueira
bffbf7d242
fix(ci): covector failing because of missing package version (#1193) 2021-02-09 15:20:24 -03:00
Lucas Fernandes Nogueira
99ecf7bb3e
feat(tauri): use WRY as webview engine (#1190) 2021-02-08 11:19:22 -03:00
Lucas Fernandes Nogueira
4412b7c438
refactor(tauri): inject script with webview init API (#1186) 2021-02-05 12:45:43 -03:00
Lucas Fernandes Nogueira
b9ce7b94c4
refactor(tauri): Webview traits (#1183) 2021-02-05 00:44:58 -03:00
Lucas Fernandes Nogueira
555d667f45
feat(examples) add example using the TS API module (rollup) (#738) 2021-02-04 21:12:03 -03:00
Lucas Fernandes Nogueira
a169b67ef0
feat(tauri): add async support (#1169) 2021-02-03 20:47:57 -03:00
renovate[bot]
b29ed5f518
chore(deps) Update Tauri JS CLI (#1180)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-03 18:31:27 -03:00
renovate[bot]
fcc0479bbe
chore(deps) Update Tauri CLI (#1179)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-02-03 18:29:06 -03:00
Lucas Fernandes Nogueira
82eba22d38
fix(cli): exit dev when the app is closed (#1176) 2021-02-01 23:03:14 -03:00
Lucas Fernandes Nogueira
eeb46ad585
fix(cli): dev config reload (#1172)
* fix(cli): `dev` config reload

* refactor: remove unnecessary mutex on config

* fix: clippy

* fix(cli/core): don't rebuild twice

* fix(core/cli/dev): don't kill app twice

Co-authored-by: Noah Klayman <noahklayman@gmail.com>
2021-02-01 21:32:15 -03:00
Lucas Fernandes Nogueira
5f3d31b367
chore(deps): update tiny_http to 0.8 (#1171) 2021-01-31 01:02:07 -03:00
renovate[bot]
cf8b1ead25
chore(deps) Update dependency eslint-config-standard-with-typescript to v20 (#1159)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-31 00:40:27 -03:00
renovate[bot]
530ed6b8ff
chore(deps) Update Tauri JS CLI (#1158)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2021-01-31 00:26:12 -03:00
Noah Klayman
56757b5e83
fix(tauri/asset): better no-server image loading (#1170) 2021-01-30 23:31:41 -03:00
Lucas Fernandes Nogueira
ba8fb00880
feat(ci): add unused dependencies check (#1168) 2021-01-30 13:50:26 -03:00
Lucas Fernandes Nogueira
3e8abe3764
feat(cli) rewrite the core CLI in Rust (#851) 2021-01-30 12:15:47 -03:00
Noah Klayman
f1afb5c366
feat(bundler): always bundle deb before appimage, fixes #1026 (#1156)
The appimage script depends on output from the deb bundle
2021-01-26 23:03:22 -03:00
renovate[bot]
6bf4156984
chore(deps) Update Tauri Bundler (#1146)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-24 14:28:21 -03:00
renovate[bot]
cb226982a3
chore(deps) Update Tauri JS CLI (#1137)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-24 14:27:53 -03:00
github-actions[bot]
164e3a4fe7
Apply Version Updates From Current Changes (#1143)
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
2021-01-24 09:33:16 -03:00
ravenclaw900
2fd1067a4c
Fix: add recursive option to directory APIs (#1141)
* Add recursive option

* Fix ESLint

* Fix all other possible code style issues

* Add .changes file
2021-01-12 08:16:45 +01:00
github-actions[bot]
0753877ab9
apply version updates (#1105)
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
2021-01-06 13:20:20 +01:00
dependabot[bot]
dddb977036
chore(deps): bump node-notifier from 8.0.0 to 8.0.1 in /cli/tauri.js (#1120)
Bumps [node-notifier](https://github.com/mikaelbr/node-notifier) from 8.0.0 to 8.0.1.
- [Release notes](https://github.com/mikaelbr/node-notifier/releases)
- [Changelog](https://github.com/mikaelbr/node-notifier/blob/v8.0.1/CHANGELOG.md)
- [Commits](https://github.com/mikaelbr/node-notifier/compare/v8.0.0...v8.0.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-06 08:21:06 -03:00
renovate[bot]
d3215886bf
chore(deps) Update Rust crate toml to 0.5.8 (#1122)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-06 07:47:47 -03:00
renovate[bot]
f7b9bfe9a7
chore(deps) Update Rust crate serde_json to 1.0.61 (#1127)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-01-06 07:47:21 -03:00
renovate[bot]
6cd978a149
chore(deps) Update Tauri JS CLI (#1117)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2021-01-06 07:44:22 -03:00
Zak Patterson
486bd920f8
Fix: writeBinaryFile to call the correct command (fix #1133) (#1136)
* Fix writeBinaryFile to call the correct command

Fixes #1133

writeBinaryFile was reusing writeFile, which was happily saving
base64 encoded strings to the fs. This instead uses the correct
WriteBinaryFile command, which base64 decodes.

However why are we encoding and then decoding, why can we not just
send a raw byte array to be saved as a file? This is left for a later
PR.

* Shorten changelog line per review
2021-01-06 09:30:33 +01:00
renovate[bot]
5810bae022
chore(deps) Update Tauri JS CLI to v7 (major) (#1112)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2020-12-12 22:36:21 -03:00
dependabot[bot]
b5f5986824
chore(deps): bump ini from 1.3.5 to 1.3.8 in /cli/tauri.js (#1113)
Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.8.
- [Release notes](https://github.com/isaacs/ini/releases)
- [Commits](https://github.com/isaacs/ini/compare/v1.3.5...v1.3.8)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-12 15:39:57 -03:00
renovate[bot]
f02d700dcb
chore(deps) Update Tauri JS CLI (#1111)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-12-12 15:39:41 -03:00
Lucas Fernandes Nogueira
f887320df3
fix(template) default windows icon id should be 32512, fixes #1099 (#1107) 2020-12-05 22:42:27 -03:00
Lucas Fernandes Nogueira
8da495f78c
fix(tauri.js) deps cmd usage when npm is not installed, closes #1037 (#1053) 2020-12-05 00:17:57 -03:00
renovate[bot]
fc368169d1
chore(deps) Update Rust crate dirs-next to v2 (#1066)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2020-12-05 00:09:18 -03:00
renovate[bot]
f949ea71aa
chore(deps) Update Tauri JS CLI (major) (#1068)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2020-12-04 23:24:29 -03:00
renovate[bot]
b2ebd4ef65
chore(deps) Update Tauri Bundler (#1065)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-12-04 23:01:41 -03:00
renovate[bot]
006514e4c6
chore(deps) Update Rust crate serde_json to 1.0.60 (#1102)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-12-04 23:00:50 -03:00
Christian W. Zuckschwerdt
4a74bca390
fix: getNpmLatestVersion, getNpmPackageVersion without npm (#1088)
Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.studio>
2020-12-04 23:00:15 -03:00
renovate[bot]
8388553670
chore(deps) Update Tauri JS CLI (#1063)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2020-12-04 22:59:56 -03:00
Jacob Bolda
26c497979f
fix: webpack progress display options not valid (#1086)
* fix: webpack progress display options not valid

It seems something changed that the progress and display options we were using the hide the output are no longer valid. Remove them.

* add build-release as part of tests
2020-11-13 02:27:42 -06:00
github-actions[bot]
665ed9a1cc
Apply Version Updates From Current Changes (#1075)
* apply version updates

* scrub revert from changelog

Co-authored-by: jbolda <jbolda@users.noreply.github.com>
Co-authored-by: Jacob Bolda <me@jacobbolda.com>
2020-11-10 08:04:39 -06:00
Jacob Bolda
4913f9b74b
Revert "apply version updates (#1024)" (#1076)
This reverts commit 72996be1bd.
2020-11-10 00:34:26 -06:00
renovate[bot]
b4544b63f2
chore(deps) Update Tauri API (#1072)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2020-11-07 10:45:27 -03:00
github-actions[bot]
72996be1bd
apply version updates (#1024)
Co-authored-by: lucasfernog <lucas@tauri.studio>
2020-10-21 23:05:11 +02:00
renovate[bot]
94f073467d
chore(deps) Update Tauri JS CLI (#1046)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2020-10-17 21:10:00 -03:00
Lucas Fernandes Nogueira
c8b167adb3
fix(tauri.js) promisified API fails on Reflect.deleteProperty, fix #1038 (#1056) 2020-10-17 21:02:32 -03:00
Lucas Fernandes Nogueira
82cda98532
chore(tauri) dirs crate is unmaintained, use dirst-next instead (#1057) 2020-10-17 21:01:10 -03:00
Lucas Fernandes Nogueira
a3b724738e
test(tauri.js) update fixture app and fix build/dev e2e tests (#1058) 2020-10-17 20:53:24 -03:00
renovate[bot]
6d9528d0c6
chore(deps) Update Tauri JS CLI (major) (#1047)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2020-10-17 20:00:21 -03:00
renovate[bot]
b5ade8c6b8
chore(deps) Update Rust crate serde_json to 1.0.59 (#1042)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-17 19:01:35 -03:00
renovate[bot]
d13dcd9fd8
chore(deps) Update Tauri Bundler (#1045)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2020-10-17 19:00:22 -03:00
Sanket Chaudhari
6f5667bf72
fix: #1018 Force IPv4 on wget requests (#1019)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2020-10-10 16:52:11 -03:00
renovate[bot]
057408d0d9
chore(deps) Update Rust crate serde_json to 1.0.58 (#1031)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-10 16:51:28 -03:00
renovate[bot]
6859b7b579
chore(deps) Update Rust crate image to 0.23.10 (#1027)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-10 16:32:38 -03:00
renovate[bot]
d7b343e8c8
chore(deps) Update Tauri JS CLI (#1029)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-10-10 16:19:10 -03:00
Lucas Nogueira
b7077bf4ba
chore(tauri.js) path as empty string instead of . 2020-09-23 23:49:24 -03:00
Amr Bashir
5cf3402735
fix: add working directory to wix's shortcut (#1021)
* fix: add working directory to wix's shortcut

* chore: add change file

Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2020-09-23 22:43:12 -03:00
renovate[bot]
1d9dc18567
chore(deps) Update Tauri JS CLI (major) (#979)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2020-09-23 22:43:01 -03:00
renovate[bot]
81282675f4
chore(deps) Update Tauri Bundler (#1008)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-23 22:00:20 -03:00
renovate[bot]
e7980ba94e
chore(deps) Update Tauri JS CLI (#978)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-09-23 21:59:28 -03:00
Amr Bashir
771e4019b8
feat: Port path api to js (#1006)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2020-09-23 21:53:03 -03:00
github-actions[bot]
b4c6142b39
apply version updates (#999)
Co-authored-by: jbolda <me@jacobbolda.com>
2020-09-02 12:26:08 -05:00
Cass
7a788fdcee
fix: improve checking for Rez (fix #994) (#995)
* fix: improve checking for Rez (fix #994)

Check for Rez in Xcode.app and in command line tools, and error if neither is installed.

* Remove hardcoded paths in favor of xcode-select --print-path

This reverts commit 54784a027c.

I'm not sure that this string substition will work how I want it to.

* Finally...fix issue finding xcode-select tools

* Add tip asking to run xcode-select --install

* Trim tailing whitespace

* add changefile
2020-08-28 01:29:11 -05:00
ho-ho-ho
37bcf5fea1
fix(bundler) missing newline in deb desktop file generation (fix: #899, #925) (#998)
* fix missing newline in desktop file generation

* add change file for PR #998
2020-08-27 15:48:42 -05:00
github-actions[bot]
5de4c8655d
Apply Version Updates From Current Changes (#931)
* apply version updates

* fix changelog format dealing with bullet points

Co-authored-by: jbolda <me@jacobbolda.com>
2020-08-21 07:48:20 -05:00
Jacob Bolda
06dd75b68a
chore: bump all js/rust deps (#983)
* bump tauri.js deps

* bump tauri core deps

* bump tauri-api deps

* bump tauri-bundler deps

* change file
2020-08-20 16:03:46 -05:00
Zak Patterson
59e0de7650
Fix cli no prompt for app-name cli arg (#980)
* Fix cli no prompt for app-name cli arg

* Add change file
2020-08-19 14:37:46 -05:00
Jacob Bolda
6a21965ff3
chore: add prettier for js formatting (#937)
* chore: add prettier for js/ts formatting

* fix lint-staged to object

* test commit

* format all

* lock file bump

* eslint extends prettier

This will let us skip rules in eslint that prettier can control. Prettier for styles, eslint for code errors.

* add prettier config

* roll back to what we had with eslint settings

* skip mutation observer

* add prettier typescript eslint

* run prettier in lint workflow

* format:check script

* turn off space before function in eslint

it is fighting with prettier

* fix dir in workflow

* remove semis

* add api to eslint

* shift eslint ignore comment after prettier format

* ignore errors that currently exist

* build:typevalidators

* replace was broken on typevalidator build

* try pushing up error

* format

* try removing working dir from eslint workflow

* try node 12

* fix indent in action

* bump eslint

* fix supposeded error and try another

* try breaking eslint

* try building in action

* adjust action paths again

* need dot

* remove build

* fix(tauri.js/eslint): escape glob *

* fix(tauri.js): ignore lint error

* Create prettier-taurijs.md

Co-authored-by: Noah Klayman <noahklayman@gmail.com>
2020-08-18 21:36:46 -05:00
renovate[bot]
a949e711e4
chore(deps) Update Rust crate serde_json to 1.0.57 (#905)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-18 16:57:54 -05:00
Zak Patterson
43a8c4d2bc
fix #920: Create recipes (#930)
* Create recipes

A recipe consists of:
	* Name
	* List of NPM dependencies required (dev and production)
	* Sub-commands needed
		For example, the react recipes run create-react-app to set
		up the UI. Future recipes can do anything, they could pull
		down a sample UI, clone a repository, download a static HTML
		file, initialize another environment that compiles to JS/wasm etc.

The devPath and dist folders nomally configured by the init command
are overridden by the recipe definition.

* Fix no recipe prompts

* Fix linter unsafe assignment error

* Add `beforeXCommand` settings to recipes

This is so good, it makes it possible to just run:

> yarn init
> yarn add tauri
> yarn tauri init # with recipe selected, adds app ui
> yarn tauri dev # starts app ui dev server and rust component

* Rename init to create

Also improve so it exports a function that can be passed
arguments, instead of just reading directly from command line

* Add new tauri init command aliased to create

* Update changes file

* Remove unneeded import

* Add customized splash page for react recipes

* Remove unneeded recipe buildconfig property

* Add no-browser setting to start react dev server

* Revert "Add no-browser setting to start react dev server"

This reverts commit 22bcf3ac5a.
2020-08-17 12:07:44 -05:00
Oleg Shilov
f98d4b9076
fix(tauri.js): fix return type for readBinaryFile api method (#927)
* fix(tauri.js): fix return type for `readBinaryFile` api method

* chore(tauri.js): add changelog
2020-08-07 19:56:29 -05:00