1
1
mirror of https://github.com/tauri-apps/tauri.git synced 2024-12-21 09:41:34 +03:00
Commit Graph

293 Commits

Author SHA1 Message Date
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
Jacob Bolda
056d2205fa
chore(workflow): update tangle release for more logging () 2020-02-21 15:25:38 +01:00
Jacob Bolda
c1638e92a6
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
2020-02-19 09:02:19 -06:00
Ty Tracey
43f32edc01
Migrating examples to the example repo ()
* Migrating examples to the example repo

* update smoke test github action to example repo

* unclear what the path should be

* lock file moved

* remove ls

* x64?

darn conflicts

* missed cache path

* cargo build step isn't needed

Co-authored-by: Jacob Bolda <me@jacobbolda.com>
2020-02-16 15:28:37 -06:00
tensor-programming
2fe764913a
use x86 and x64 for wix. 2020-02-12 16:55:10 -05:00
Tensor-Programming
76c8376e74
Bug(Bundler): fix target arch in wix ()
* fix target arch in wix

* update github action to .amd64.msi
2020-02-12 16:51:17 -05:00
Jacob Bolda
3e7af3df4e
fix(publish): touch up npm/cargo publish workflow () [version updates]
* skip yarn audit if current package is latest

* escape backticks

* escape backticks
2020-02-10 08:05:36 -06:00
Jacob Bolda
c4810ff195
add envs and publishPath, don't verify () [version updates]
We were missing the envs so tauri-core didn't publish. It is fine if every package has these envs. We shouldn't need to verify as we have already built many times prior, and the verification gets very odd with packages all being bumped and being interdependent (inception verification).
2020-02-10 07:28:15 -06:00
Jacob Bolda
18009870fc
add missing $ () [version updates] 2020-02-09 17:13:03 -06:00
Rajiv Shah
deeb28306b fix(publish): Use yarn audit instead of npm audit () 2020-02-10 00:09:27 +01:00
Jacob Bolda
03eb578c3f
fix(publish): attempt two () [version updates]
* need working dir on yarn install

* reorder cargo to login before publish
2020-02-09 16:54:10 -06:00
Jacob Bolda
4d1f61698d
fix(publish): login and build () [version updates]
* yarn before pack

* login to cargo to publish

* skip install on same version

* workflow edits trigger too

* and this one too
2020-02-09 16:16:02 -06:00
Jacob Bolda
9eb9375959
testing clippy check on push ()
* Create check-on-push.yml

* push:

* try clippy with stable

* Create pid.rs

* remove pull request clippy check

* invalid mod?

* remove mod

* Delete pid.rs
2020-02-09 16:06:13 -03:00
Ty Tracey
b114fb8c38 Adding Clippy/Rust Fmt to the pr workflow ()
* Added clippy configuration file, added github action to run clippy, and changed line endings for rust fmt

* fix(cippliy-check-action) install webkit2gtk

* fix(clippy_check) add env variables

* refactor(tauri) fix clippy checks

* chore(tauri) use tauri_includedir_codegen v0.5.2

* fix(tests) dir tests

Co-authored-by: Lucas Fernandes Nogueira <lucasfernandesnog@gmail.com>
2020-02-08 14:18:09 -03:00
Jacob Bolda
2e8c65b4f2
feat(workflow): publishing pipeline ()
* Update and rename cargo-publish.yml to release-cargo.yml

* Update and rename npm-publish.yml to release-npm.yml

* Delete push-to-dev.yml

* Create pr-to-master.yml

* add newer packages to matrix

* check cargo published version

* skip cargo audit if versions match

* chore(release-cargo) tauri-cli renamed to tauri-bundler

Co-authored-by: Lucas Fernandes Nogueira <lucasfernandesnog@gmail.com>
2020-02-08 13:09:12 -03:00
Lucas Fernandes Nogueira
7522d8ff8a
chore(bundler) rename tauri-cli crate to tauri-bundler () 2020-02-08 12:51:48 -03:00
Tensor-Programming
e24a56f069
Chore: update Rust to 1.41.0 ()
* Update rust-toolchain

* update github actions for 1.41
2020-02-05 20:18:47 -05:00
Jacob Bolda
a1755cde9c
fix greeting message extra characters () 2020-01-20 20:41:03 -06:00
nothingismagick
bed75c1099
feat(workflows): first-timer message ()
* feat(workflows): first-timer message

Just a little "hey there". For PRs remind them to sign commits.

* add explanation about why signed commits

* enhance pr-message

using the advice from @nklayman
2020-01-15 17:58:01 +01:00
Tensor-Programming
667d5905f6
Refact(api) Add error chain to Tauri_api. ()
* add error chain

* remove verson error

* update file error

* update dir

* fix file_system

* add command error type.

* fix minor inconsistency

* add command tests

* add other tests for cmd.

* add more testing for cmd

* add documentation.

* add walk_dir tests and documentation.

* add list_dir_contents test

* test for with_temp_dir

* add read_string tests and file error type.

* add test_binary and update tests.

* add check_read_binary_fail test

* add os codes for unix based systems.

* add core-tauri-test gh action

* update test-on-pr

* fix test to test all libs.

* fix unix/windows errors
2020-01-14 22:03:59 -05:00
BSKY
561677864c Bump actions/checkout from v1 to v2 ()
* Bump actions/checkout from v1 to v2

* Update smoke-test-prod.yml

* Update smoke-tests-source.yml

* Update test-on-pr.yml
2020-01-14 07:55:39 -06:00
Jacob Bolda
2ab604afd2
add global release changelog ()
This will create a draft release with all of the changes since the last tag. We can use it for the "marketing" changes / changelog, where each package can then still get its own changelog file. The bulk of the configuration sits in the tauri-pps/.github repo.
2020-01-05 08:41:42 -06:00
Jacob Bolda
7ecaee38f0
chore(actions): change cache to hash on .toml ()
* source smoke tests to use .toml hash in cache

* prod smoke tests to use .toml hash in cache
2019-12-30 17:07:26 -06:00
Jacob Bolda
232af15a2e use minimal profile for installation ()
* use minimal profile for installation

I believe we don't need the full standard install just to run the build.

* set minimal in prod as well
2019-12-30 01:41:03 +01:00
Lucas Fernandes Nogueira
a4e229ca10 feat(tauri) use config as JSON ()
* feat(tauri.js): move to typescript

* fix(tauri.js): properly export api as commonjs

* feat(tauri.js): convert tauricon to typescript

* fix(tauri.js/tauricon): type error

* chore(tauri.js/package): update yarn.lock

* chore(tauri.js/package): add build/pretest scripts

* refactor(tauri.js/template): remove duplicate types

* feat(tauri.js): use tauri.conf.json instead of .js

* feat(tauri) read config using tauri.conf.json

* fix(tauri) read devPath index.html from distDir

* chore(examples) move to conf.json

* chore(tauri.js) remove todo

* fix(ci) TAURI_DIR env variable

* fix(examples) move svelte-app config to tauri.conf.json

* fix(examples): line endings tauri.conf.json

* addition to previous commit

* fix(test): EOF in tauri.conf.json

Co-authored-by: Noah Klayman <noahklayman@gmail.com>
Co-authored-by: nothingismagick <drthompsonsmagickindustries@gmail.com>
2019-12-26 15:24:36 +01:00
Rajiv Shah
612d616112 feat(examples): Add Svelte app example ()
* feat(examples): Add Svelte app example

Created with `npx degit sveltejs/template svelte-app`

* feat(examples): Copy scripts to Svelte example

* chore(examples): Remove unnecessary dependency

* feature(examples): Run tauri init and copy tauri config

* feature(examples): Copy Readme from examples

* fix(examples): Move svelte to dependencies

* Revert "chore(examples): Remove unnecessary dependency"

This reverts commit 2465e753b2.

* chore(examples): Update Svelte example's Tauri config

* chore(examples): Enable Svelte app smoke tests
2019-12-25 00:13:21 +01:00
Jacob Bolda
4f9d2e2ba7 enable new examples in smoke tests ()
* rename smoke tests

* split into prod and source runs

* rename test job names for clarity

* snake case gatsby site

* remove airtable api key

* add new examples

* add new examples to renovate

* add scripts to package.json

* finish off vanillajs example
2019-12-21 10:47:33 +01:00
Jacob Bolda
8df78e29b6
slim down gatsby example, update deps ()
* shift example and slim config

removed gatsby-source-airtable and gatsby-theme-recipes to make things more simple, less fragile and speed up the build

* update action to point at new location

* update links

* add test articles

* add theme

* slim config, move to homepage folder

* update renovate path, enable automerge on examples

* turn off rebases, but keep on for examples
2019-12-21 00:34:36 -06:00
Rajiv Shah
1151181b36 fix(ci): Install webkit2gtk on ubuntu when building smoke tests via prod () 2019-12-20 12:36:23 +01:00
Lucas Fernandes Nogueira
1951fc88c9 feat(tauri) lazy loading for the no-server mode ()
* feat(tauri) WIP on iframe wrapper

* fix(tauri) iframe communication working

* refactor(tauri) iframe injection on all modes

* feat(event): update tauri.js injection

* fix(tauri) rework on iframe/devServer

* feat(tauri.js) use load event to notify tauri ready

* fix(cargo.lock): remove erroneous lockfile

* WIP

* remove iframe

* feat(tauri) inline assets, inject tauri.js

* fix(example) tauri init

* fix(api) load bundled asset

* chore(api) remove println

* chore(template) remove deprecated event listener

* chore(example) gitignore tauri.js

* chore(package.json) update email

* fix(tauri) embedded-server's server_url definition

* chore(api) use salt on event listener again

* chore(webpack) add eslint

* remove forward slash

* perf(tauri) do not bundle inlined assets

* chore(tauri) macros and platform only when using the updater feature

* fix(tauri) proper feature check for the loadAsset API

* chore(tauri) add "forked from" reference

* chore(example) use @tauri-apps/tauri-webpack

* fix(tauri) dev-server mode fixes

* chore(example) use tauri-webpack 0.1.3

* feat(webpack) rewrite lazy loading only on the no-server mode

* fix(no-server) lazy load images

* chore(tauri) use forked includedir_codegen

* fix deps

* fix(tauri) use the right version for includedir deps

* chore(tauri) println rerun-if-changed on dev
2019-12-17 22:39:34 +01:00
Jacob Bolda
f7d1c5dc5e check cache hits before install ()
* check cache hits before install

* force install in case cache check doesn't work correctly
2019-12-11 08:33:32 +01:00
Jacob Bolda
ca614e87ea [WIP] github actions rust cache ()
* add cache ext

* shorten artifact name

* cache rust cargo home

see https://doc.rust-lang.org/cargo/guide/cargo-home.html#caching-the-cargo-home-in-ci

* star artifact, relative rust cache

* forgot to relative prod rust cache

* seriously need one step per cache dir?

* forgot to fix artifact name

* likely need different key for each cache

* globs don't yet work, hardcode for now

* add releaseFolder option

MacOS has deeper folder structure than the others

* missed closing quote

* fix ubuntu artifact path

* use cargo home for cache dir

* set cargo home env

* try relative path?

* scrap env, use matrix

* wish it wasn't so verbose

* tilde

* cache rust based on hashed cargo.lock
2019-12-04 20:24:27 +01:00
Jacob Bolda
218a9f29c8 build all smoke tests and artifact fixes ()
* build quasar and try artifact fix

* fix(examples:quasar): add build command

* cache example deps

* try concat strings?

* global join function

* try format

* don't need relative file ref

* fix cache path

* fix(examples:quasar): add missing yarn command

* via-source uses object, add property ref

* fix(examples:quasar): canonical yarns

* fix(examples:gatsby): typos package.json scripts

* fix(examples:quasar): typo

* fix(examples:quasar): put the build command back.

doh

* fix(examples:quasar): add local tauri as devDep
2019-12-02 23:48:43 +01:00
Jacob Bolda
6eb1837181 [WIP] example / gatsby / themed-site ()
* add themed gatsby site as example and test target

* add specific example ignores to gitignore

* update api key reference

* theme needs the alpha version currently

* update and pin deps

* remove lock file, we want a fresh build to test every time

* add recipe theme for cheap way to add to ton of site pages

* add tauri as dev dep

* build gatsby as a smoke test

* cd on each step

* pass api key

* chore(package.json): update

* schedule renovate to tone down noisiness ()

Also, there is a running theory that Tuesday is a good day for upgrades.

* combine jobs and add step with conditional ()

* combine jobs and add step with conditional

* too many equals

* Update dependency fast-glob to v3.1.1 ()

* chore(yarn.lock): update

* chore(versions): bump tauri.js & tauri

* feat(gatsby): include tauri resources

* feat(build): tauri build works

* tauri prod and source scripts

* add build from source and artifact upload to action

* don't need to init, examples are already

* point to direct executable with matrix

* ignore WixTools from build

* config app name

* build and install source deps before build project on source

* odd things when tauri is defined in a script, remove

* set gatsby config to what is believed will be ~es5

* babel plugin is actually neeeded

* run subscripts with yarn

* lower timeout limit to 30 minutes, easy to swamp CI with this

* shorten job names

* install tauri-cli (rust)

* make API key optional (sort of hacky)

* install rust for prod for cargo command following

* artifact name cannot have / within it

* windows is running a tad slow
2019-12-02 15:20:20 +01:00
Jacob Bolda
ebc736070f combine jobs and add step with conditional ()
* combine jobs and add step with conditional

* too many equals
2019-12-01 13:26:28 +01:00
nothingismagick
e58110afd6 chore/upgrades node ()
* chore(checkin): cargo.lock

* feat(upgrades): update and try to fix node tests

* fix(@iarna): replace with @tauri-apps

* chore(deps): upgrade sharp

* feat(env): add env var that works on mac

* feat(deps): upgrade, cleanup and update code

* fix(workflow): env vars

* chore(deps): upgrades

* fix(.gitignore)
2019-11-30 15:39:13 -03:00
nothingismagick
6dcccf5a8e feature/env ()
* fix(js-cli) resolve correct paths on `tauri init`

* feat(js-cli) inject src-tauri/ as lodash template

* fix(js-cli) entry paths

* feat(js-cli) rename APP_URL to devPath and allow .html values

* feat(js-cli) reload config when `tauri.conf.js` change detected

* feat(node): update to testing

* feat(template): fix phf, remove updater

* feat(samples): add vanillajs

* fix(templates): objectify tauri
Closes .

* fix(examples): update cargo.toml
 - to match signature

* chore(tauri): version update

* feat(workflows): fix dirs, add tokens

* fix(config): more robust env checking

* feat(fixture): start a testing fixture for tauri

* fix(workflow): use fixture for ENV

* fix(examples:vanilla): remove updater

* addition to previous commit re. fixture

* fix(config.rs): fix the unfix

* feat(js-cli) use the new cargo-tauri-cli

* chore(template) cleanup src-tauri/Cargo.toml

* chore(js-cli) toml features cleanup

* chore(js-cli) move edge to config > tauri

* fix(js-cli) appPaths resolve() instead of join()
2019-11-30 08:48:39 -03:00
Rajiv Shah
2ce326e817 fix(ci): install webkit2gtk on ubuntu before building () 2019-11-30 10:58:40 +01:00
Jacob Bolda
6f9008a32e set timeout on yarn test ()
It has been hanging on MacOS builds. Although we would want to fix this hang long term. This is a temporary way to deal with it and prevent future occurrences of swamping the CI. It would be surprising if jest tests ran longer than 15 minutes.
2019-11-29 16:09:33 +01:00
nothingismagick
39ce652329 chore(monorepo): cleanup ()
* chore(monorepo): cleanup

* fix(tauri-cli): build errors

* fix(tauri:build.rs): dont' panic if env missing

* fix(finalize): setup for crates

* npm publish on release

actual publish currently disabled

* cargo publish on release

actual publish currently disabled

* update PR tests for new folder structure

* doesn't like the period on job name?

* fail on cargo warnings

otherwise we would assume green arrow is all good

* green on warnings for now
2019-11-27 19:26:24 -03:00
nothingismagick
c7a4553442
turn off workflows 2019-11-26 21:46:06 +01:00
Jacob Bolda
94ead187dc install Rust stable before build ()
This will fix MacOS build image not having Rust installed by default.
2019-11-16 21:24:23 +01:00
Jacob Bolda
1ee1933da5 test lib on PR () ()
* test lib on PR

* add build command

* ls to see where we are at

* ls after

* cd in one step

* less matrixes

* Rename test-lib-on-pr.yml to test-on-pr.yml

* pull out strategy

* Update test-on-pr.yml

* more spaces

* jobs don't like spaces

* test bindings

* build templates

* build tools
2019-11-02 09:36:15 +01:00