1
1
mirror of https://github.com/tauri-apps/tauri.git synced 2024-12-20 09:11:55 +03:00
Commit Graph

441 Commits

Author SHA1 Message Date
renovate[bot]
592fb9e90f
chore(deps) Update dependency babel-jest to v25 ()
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-03-12 11:50:55 -03:00
Lucas Fernandes Nogueira
37afc5b0dc
fix(tauri.js) determine app path correctly ()
* fix(tauri.js) determine app path correctly

* fix(lint): replace backtick with single-quote

* fix(tests) mock app-paths

* fix(tauri.js) linting

* fix(test) use local tauri on empty fixture

* fix(tauri.js) linting

* fix(workflows) use local tauri-bundler test-tauri-js-cli

* fix(workflows) wrong cargo install command

* fix(tauri) comment webview-spawning test

Co-authored-by: nothingismagick <denjell@sfosc.org>
2020-03-09 21:27:54 -03:00
Lucas Fernandes Nogueira
b95319bd74
feat(tauri.js) improve api module with type defs for each API fu… ()
* feat(tauri.js) improve api module with type defs for each API function

* chore(tauri) move endpoint specific modules

* refactor(tauri) move tcp mod to tauri_api

* feat(tauri) improve readDir signature, API features as kebab-case names

* fix(tauri) make event's payload optional

* feat(tauri) if invoke_handler fails, console.error the error message

* chore(api) improve JSDoc

* chore(tauri.js) update template

* chore(tauri) delete empty mod

* fix(tauri) tests and example with latest API signature
2020-03-09 18:44:19 -03:00
renovate[bot]
f71a349907
chore(deps) Update Rust crate image to 0.23.1 ()
* chore(deps) Update Rust crate image to 0.23.1

* chore(bundler) updates for image v0.23.1

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2020-03-09 17:59:33 -03:00
Lucas Fernandes Nogueira
7278061e44
feat(bundler) bail if can't parse tauri config () 2020-03-09 17:57:57 -03:00
Lucas Fernandes Nogueira
d37efa5605
test(tauri.js) add template test, close ()
* test(tauri.js) add template test

* fix(lint) ignore prefer-optional-chain because babel-jest wont accept it

* feat(webpack) raw-loader test for windows

* fix(workflow) install tauri-bundler

* fix(EOF)

* chore(test) try with done cb

* fix(test) cwd scope

* fix(test) transform regex for windows

* fix(test) windows regex on jest transform

Co-authored-by: nothingismagick <denjell@sfosc.org>
2020-03-09 17:57:27 -03:00
renovate[bot]
377b500020
chore(deps) Update Tauri Core ()
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-03-09 07:57:24 -03:00
Tensor-Programming
4e76f42d8a
feat(core) add cargo examples ()
* add cargo example

* change name to communication

* update scripts to set environment vars for example

* remove build key
2020-03-09 02:26:07 -04:00
Lucas Fernandes Nogueira
20b70ce38f
feat(tauri.js) add beforeDevCommand and beforeBuildCommand configs () 2020-03-08 23:34:50 -03:00
Lucas Fernandes Nogueira
a084ccf756
feat(tauri.js) keep running on failures & watch tauri lib on con… () 2020-03-08 13:39:29 -03:00
Lucas Fernandes Nogueira
abd5c698bd
feat(tests) add e2e test ()
* feat(tauri.js) add API endpoint proxy

* feat(tauri.js) always resolve/reject proxy promise

* chore(proxy) wait for onTauriInit to start direct proxy to window.tauri

* feat(tests) add project for initial e2e test

* chore(tauri) remove whitespaces on runner.rs

* chore(test): remove updater.rs

* feat(tests) move e2e test to tauri.js/test/jest

thanks to @laegel for the awesome work moving the test code to jest

* feat(tests) prepare build for modes tests

* fix(tests) properly run build tests

* feat(tests) add dev e2e test

* fix(tests) cleanup

* chore(tests) move e2e test from express to http.createServer

* chore(tauri.js) husky back to 4.0.10

* chore(tests) custom transformer to export with default

* chore(tests) use jest mapping instead of relative paths

* chore(tests) move dev e2e test to http.createServer

* chore(tests) move dev/build e2e test to tes.each instead of for loop

* chore(tauri.js) add comment to non-webpack-require.ts

* chore(tests) change test.each to it.each

* chore(tests) adjust it.each message signature

* fix(tests) adjust to properly run on initial build

* fix(tests) properly cleanup

* fix(tests) wait server.close to reject test

* fix(tests) wait server.close to resolve test

* fix(actions) install webkit2gtk-4.0 on test-tauri-js-cli

* fix(ci) install tauri-cli on test-tauri-js-cli

* fix(tauri.js) lint errors

Co-authored-by: Lucas Nogueira <lucas@quasar.dev>
Co-authored-by: nothingismagick <denjell@sfosc.org>
2020-03-07 13:40:24 -03:00
Lucas Fernandes Nogueira
493f1ea0c8
fix(bundler) do not require [package.metadata.bundle] for tauri… () 2020-03-07 09:43:57 -03:00
renovate[bot]
6ef2b16796
chore(deps) Update Tauri JS CLI ()
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-03-07 09:54:37 +01:00
Lucas Fernandes Nogueira
ba2f4b55fd
feat(tauri.js) expose target arg to tauri build () 2020-03-06 12:22:38 -03:00
Tensor-Programming
57c89ebcdc
fix docs.rs () 2020-03-05 16:06:21 -05:00
Jacob Bolda
0d47bff39b
chore(release): remaining windows fixes [version updates] ()
* bump tauri.js

* bump tauri-core

* bump tauri-bundler
2020-03-01 09:47:11 -06:00
Tensor-Programming
22e77ac295
feat(Bundler) Add Update, UI and Custom Install Dir ()
* add ui to wix

* fix shortcut removal

* fix  uninstaller
2020-03-01 09:29:08 -05:00
Lucas Fernandes Nogueira
c8d9726a09
fix(tauri) do not use template literals and fix entry for IE ()
* fix(tauri) do not use template literals

* fix(entry) make it work on IE
2020-03-01 08:11:35 -06:00
Lucas Fernandes Nogueira
4741394b18
fix(template) incorrect package > authors field on Cargo.toml () 2020-03-01 08:08:32 -06:00
Jacob Bolda
83d6e052e6
chore(workflow): tauri-bundler path considering workspace ()
`tauri-bundler` is not in the main cargo workspace so the target directory is not in the top level. Update the publishPath to compensate.

Also removing a couple extraneous things that aren't needed either. We had an extra '/' and we don't need to bother showing the directory within the `cargo package` command.
2020-03-01 08:07:49 -06:00
renovate[bot]
0303756a81
chore(deps) Update Tauri JS CLI ()
Co-authored-by: WhiteSource Renovate <renovatebot@gmail.com>
2020-03-01 12:22:45 +01:00
Tensor-Programming
7dbf623483
[version updates] CLI to 0.4.3 () 2020-02-29 21:01:29 -05:00
Tensor-Programming
6f12a34e6f
Refact(All): (WIP) Cleanup workflow and add Windows Features. ()
* use var_os instead of var

* combine both var calls

* Add logic to remove cmd windows.

* fix build.rs

* modify for clippy.

* expose handle and refactor commands.

* add author name

* revert command changes

* little refactor

* add loopback to wix template

* fix custom command
2020-02-29 19:07:26 -05:00
Lucas Fernandes Nogueira
21e710e1b0
feature(bundle) merge BundleSettings with config from tauri.conf… ()
* feat(bundler) read tauri config WIP

* feat(bundler) merge BundleSettings with tauri.conf.json"

* chore(lint) strings must use single quotes

* chore(bundler) platform-specific config on separated object on tauri cfg

* fix(eslint) unexpected trailing comma
2020-02-29 16:49:45 -03:00
Jacob Bolda
2a6e5b50ce
feature(tauri-bundler): add start menu shortcut on windows () 2020-02-29 16:49:20 -03:00
Lucas Fernandes Nogueira
6ba7fe4096
fix(bundler) throw error when resource, external bin or icon not… () 2020-02-29 16:35:54 -03:00
Tensor-Programming
9620eebab6
[version updates] Core create release ()
* update tauri module versions

* update bundler

* update node cli

* add minor fix.
2020-02-26 19:17:46 -05:00
Tensor-Programming
1606039554
Revert "[update versions] minor fix ()" ()
This reverts commit 966390d772.
2020-02-26 19:15:30 -05:00
Tensor-Programming
966390d772
[update versions] minor fix ()
* update tauri module versions

* update bundler

* update node cli

* add minor fix.
2020-02-26 19:12:16 -05:00
Tensor-Programming
90497751a4
[version updates] Merge Windows Related Changes ()
* update tauri module versions

* update bundler

* update node cli
2020-02-26 18:42:44 -05:00
Tensor-Programming
e194289db1
feat/refact - update bundler ()
* update bundler and add scripts folder

* cleanup ios code

* cleanup platform and remove util dep from bundler
2020-02-25 20:37:05 -05:00
Fahmi Akbar Wildana
a85ec6d726
chore: fix missing links in some badges () 2020-02-25 19:57:42 +01:00
Rajiv Shah
018b1d877d
feature(workflows): Add ESLint check to workflow ()
* feature(workflows): Add ESLint check to workflow

* Use setup-node v1.x.x instead of v1.0.0

Co-Authored-By: Jacob Bolda <me@jacobbolda.com>

Co-authored-by: Jacob Bolda <me@jacobbolda.com>
2020-02-24 12:31:14 -06:00
Rajiv Shah
f05f6993bd
fix(tauri.js): Remove redundant "git add" from lint-staged script () 2020-02-24 07:12:05 -06:00
Rajiv Shah
5dbf0638a9
refactor(tauri.js): Fix ESLint errors in src/api/tauricon.ts () 2020-02-24 07:09:11 -06:00
Jacob Bolda
92bdedce46
chore(workflow): build tauri.js after install () 2020-02-23 21:58:46 -06:00
Tensor-Programming
64367212a9
Revert "fix(tauri) window.tauri is undefined upon reloading () ()" ()
This reverts commit d79eb4fc21.
2020-02-23 18:17:20 -05:00
Tensor-Programming
7b8edd29ea
Fix(All) - Add Edge support to GUIJS ()
* fix edge api to use window.external.invoke

* remove tauri-examples

* remove if statement

* add more cases.

* add batch_to_exe script
2020-02-23 18:15:57 -05:00
Shihpin Tseng
d79eb4fc21
fix(tauri) window.tauri is undefined upon reloading () () 2020-02-23 18:14:49 -05:00
Jacob Bolda
7c0482f9a8
fix(tauri.js/template): don't ignore lock file, add WixTools ()
As noted in the comment that was deleted, we should commit the Cargo.lock when creating an executable. This is the template that is copied into the consumer so I think we can safely assume that they will be creating an executable.

Also adding `WixTools` which is created on Windows builds, similar to the `/target/` dir
2020-02-22 13:51:13 -03:00
Noah Klayman
a306a503c3
[version updates]: tauri.js bad postinstall ()
* fix(tauri.js): remove postinstall script

* chore(tauri.js/package): bump version
2020-02-21 19:50:47 +01:00
Jacob Bolda
7167db8fad
fix(workflow): runner has to be in steps () [version updates]
just put it in everything for now
2020-02-21 08:48:28 -06:00
nothingismagick
43c2f710e4
chore(updates) version updates () 2020-02-21 15:40:42 +01:00
Shihpin Tseng
c15a6d5649
fix error file name 'tauri.conf.js' to 'tauri.conf.json' ()
* fix error file name 'tauri.conf.js' to 'tauri.conf.json'

* fix(tauri.js) if the DOM is already loaded, listen for <a> clicks ()

code is fine, the CI is borked

* fix(open) open <a> on browser only if target=_blank ()

merging because CI is borked

* fix(tauri): make github action envs absolute for extra path level in runner.rs ()

* fix(tauri): extra path level in runner.rs

This file is one folder deeper than the other files which reference this env. This env is a relative folder reference so we need to concat an extra folder traversal into it.

* Revert "fix(tauri): extra path level in runner.rs"

This reverts commit eb1034b4f3.

* make envs in GH Actions absolute for now

* runner is only available within steps

* feat(bundler) add exception_domain option by nothingismagick ()

* chore(deps) Update Tauri JS CLI ()

Co-authored-by: WhiteSource Renovate <renovatebot@gmail.com>

Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.studio>
Co-authored-by: Jacob Bolda <me@jacobbolda.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: WhiteSource Renovate <renovatebot@gmail.com>
Co-authored-by: nothingismagick <denjell@sfosc.org>
2020-02-21 15:31:05 +01:00
Jacob Bolda
a2da82e8f2
chore(workflows): split up prepare into postinstall and prepublishOnly ()
This will let CI runs of the publish command reduce verbosity. We use the output from the command in our release notes.
2020-02-21 15:26:07 +01:00
Jacob Bolda
056d2205fa
chore(workflow): update tangle release for more logging () 2020-02-21 15:25:38 +01:00
Lucas Fernandes Nogueira
9fd15a8bd4
fix(bundler) expose environment variables to GUI apps on linux and mac ()
* feat(bunder) bootstrapps zshrc and bashrc too

* feat(bundle) add bootstrapper to deb

* fix(linux): find linux path in bootstrapper

Co-authored-by: nothingismagick <drthompsonsmagickindustries@gmail.com>
2020-02-21 15:22:13 +01:00
renovate[bot]
0b5b33bfaf
chore(deps) Update Tauri JS CLI ()
Co-authored-by: WhiteSource Renovate <renovatebot@gmail.com>
2020-02-21 15:09:13 +01:00
renovate[bot]
1281e27a46
chore(deps) Update Tauri JS CLI ()
Co-authored-by: WhiteSource Renovate <renovatebot@gmail.com>
2020-02-21 15:05:41 +01:00
Lucas Fernandes Nogueira
12ed096bea
feat(bundler) add exception_domain option by nothingismagick () 2020-02-19 20:07:50 +01:00