tauri/tooling/create-tauri-app/bin/create-tauri-app.js

237 lines
6.3 KiB
JavaScript
Raw Normal View History

feat: create-tauri-app wiring (#1442) * chore(deps) Update Tauri JS CLI (#1319) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri Core (#1318) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri API (#1316) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate serde_json to 1.0.64 (#1315) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate once_cell to 1.7.2 (#1314) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate image to 0.23.14 (#1313) Co-authored-by: Renovate Bot <bot@renovateapp.com> * feat(cli/build): improve no distDir error message (#1306) * feat(cli/build): improve no distDir error message * chore: use Path's Display impl Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri API Definitions (#1317) Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(bundler/wix): install webview2 runtime (#1329) * feat(bundler/wix): install webview2 runtime * add changefile * chore(deps) Update Tauri API Definitions (major) (#1290) * chore(deps) Update Tauri API Definitions * chore: update to husky v5 * chore: remove husky script * chore: recreate lock file Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri JS CLI (#1291) Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * refactor(core): app hooks (#1332) * fix(api/window): rename manager export to appWindow (#1342) * feat(api/shell): allow open command to open files (#1341) * chore(deps) Update Tauri API Definitions (#1344) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate tokio to 1.3 (#1343) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate open to 1.6.0 (#1348) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(core): wrong usage of wry RPC on event API (#1351) * copy cli config definition window visibility defaults (#1353) * feat(core): add file drop handler (#1352) * fix: get correct resource dir in AppImge (fix #1308) (#1333) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat: build without proc macros (#1226) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri JS CLI (#1346) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(core): use Mutex in std to reduce async usage (#1350) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * fix(examples): build error (#1354) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * API example new ui (#1310) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps): remove `winres` from template (#1357) * refactor(core): add `unlisten`, `once` APIs to the event system (#1359) * fix(cli): use correct arg in `_blanks` links polyfill (#1362) * fix(api/http): correct types (#1360) * fix(api/http): correct types * Add changes * Update correct-http-api-types.md * chore(deps) Update Tauri JS CLI (#1364) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri API Definitions (#1363) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(tauri/webview): Use different user_data_path for Windows (#1365) (#1366) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * fix(config): serde_json::Value::Object takes a Map instead of HashMap (#1371) * fix(config): serde_json::Value::Object takes a Map instead of HashMap * fix: fmt * fix(tauri.js): init command properly building with manifests (#1374) * fix(tauri.js): init command properly building with manifests * fix: tests * feat(bundler): add visual c++ redistributable files with MSM (#1368) * refactor(core): reduce usage on arc and mutex (#1361) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(config): allow setting product name and version on tauri.conf.json (#1358) * feat: add current working directory to path api module (#1375) * refactor(core): move bundle script to /tauri crate (#1377) * refactor(core): move bundle script to /tauri crate * fix(cli): clippy * fix(core): tests * refactor(core): custom protocol URL uses the app identifier (#1376) * refactor(core): custom protocol URL uses the app identifier * fix: clippy * fix(tauri-api): remove .exe from app_name on windows (#1379) * chore(deps) Update Tauri API Definitions (#1384) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate tokio to 1.4 (#1383) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(cli): prmpt user before install deps in init (#1381) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update dependency rollup to v2.42.4 (#1386) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(cli): rewrite init command in Rust (#1382) Co-authored-by: nothingismagick <denjell@mailscript.com> * refactor(bundler): specific settings on dedicated structs, update README (#1380) * replace lazy_static uses with once_cell (#1391) * chore(deps) Update Tauri JS CLI (#1385) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(cli): rewrite info in Rust (#1389) * refactor(core): remove async from app hooks, add InvokeMessage type (#1392) * fix(cli): disable custom-protocol feature on dev command (#1393) * Fix extremely slow dev builds caused by embedding + compressing assets at compile time (#1395) * feat(bundler) code signing (#473) Co-authored-by: Rajiv Shah <rajivshah1@icloud.com> Co-authored-by: David Lemarier <david@lemarier.ca> * feat(cli): run beforeDev and beforeBuild in a shell, closes #1295 (#1399) * update to sharp 0.28.0 for cpu arm (m1) (#1404) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(cli): propagate args passed after `dev --`, closes #1406 (#1407) * refactor(api): use secure RNG, closes #1356 (#1398) * chore(deps) Update Tauri API Definitions (#1411) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate rfd to 0.2.2 (#1410) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri CLI (#1413) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri Bundler (#1412) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(core): rewrite shell execute API, closes #1229 (#1408) * chore(deps) Update dependency @rollup/plugin-commonjs to v18 (#1415) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri JS CLI (#1414) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix: asset resolution on debug mode * fix(core): ignore query string on custom protocol asset resolver (#1420) * wire up existing and adjust recipe configuration * merge dev * fix default app name * clean up vanillajs and proper pass args * use scaffe to copy the react templates * fix(api): remove cjs, rename .mjs to .js * chore: tauri.js dead code elim (#1422) * remove templates, only used it CTA * help command is empty, remove * delete files that aren't imported / required * set files array to ignore src and config files * remove unused deps * add arch notes for future ref * change file * allow specifying a binary * resolve last bits to reach scaffe * adjust vanilla js template dir path Co-authored-by: Sanket Chaudhari <chaudharisanket2000@gmail.com> * fix up cra scaffolding * remove none and rely on vanillajs * log shell commands * remove no recipe question branch * shift react template for better overwrite copying * update deps * simple readme * implement dep manager * pretty Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Noah Klayman <noahklayman@gmail.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> Co-authored-by: Lucas Fernandes Nogueira <lucasfernandesnog@gmail.com> Co-authored-by: chip <chip@chip.sh> Co-authored-by: Gabe Cohen <gcc3.14@gmail.com> Co-authored-by: Ngo Iok Ui (Wu Yu Wei) <wusyong9104@gmail.com> Co-authored-by: Alve Larsson <larsalvelarsson@gmail.com> Co-authored-by: Amr Bashir <48618675+amrbashir@users.noreply.github.com> Co-authored-by: Kid <44045911+kidonng@users.noreply.github.com> Co-authored-by: david <david@lemarier.ca> Co-authored-by: nothingismagick <denjell@mailscript.com> Co-authored-by: William <william@venner.io> Co-authored-by: Rajiv Shah <rajivshah1@icloud.com> Co-authored-by: Mehdi Rezaei <mehdiraized@gmail.com> Co-authored-by: Sanket Chaudhari <chaudharisanket2000@gmail.com>
2021-04-11 12:22:07 +03:00
#!/usr/bin/env node
2021-04-12 15:55:00 +03:00
// Copyright 2019-2021 Tauri Programme within The Commons Conservancy
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT
feat: create-tauri-app wiring (#1442) * chore(deps) Update Tauri JS CLI (#1319) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri Core (#1318) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri API (#1316) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate serde_json to 1.0.64 (#1315) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate once_cell to 1.7.2 (#1314) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate image to 0.23.14 (#1313) Co-authored-by: Renovate Bot <bot@renovateapp.com> * feat(cli/build): improve no distDir error message (#1306) * feat(cli/build): improve no distDir error message * chore: use Path's Display impl Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri API Definitions (#1317) Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(bundler/wix): install webview2 runtime (#1329) * feat(bundler/wix): install webview2 runtime * add changefile * chore(deps) Update Tauri API Definitions (major) (#1290) * chore(deps) Update Tauri API Definitions * chore: update to husky v5 * chore: remove husky script * chore: recreate lock file Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri JS CLI (#1291) Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * refactor(core): app hooks (#1332) * fix(api/window): rename manager export to appWindow (#1342) * feat(api/shell): allow open command to open files (#1341) * chore(deps) Update Tauri API Definitions (#1344) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate tokio to 1.3 (#1343) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate open to 1.6.0 (#1348) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(core): wrong usage of wry RPC on event API (#1351) * copy cli config definition window visibility defaults (#1353) * feat(core): add file drop handler (#1352) * fix: get correct resource dir in AppImge (fix #1308) (#1333) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat: build without proc macros (#1226) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri JS CLI (#1346) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(core): use Mutex in std to reduce async usage (#1350) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * fix(examples): build error (#1354) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * API example new ui (#1310) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps): remove `winres` from template (#1357) * refactor(core): add `unlisten`, `once` APIs to the event system (#1359) * fix(cli): use correct arg in `_blanks` links polyfill (#1362) * fix(api/http): correct types (#1360) * fix(api/http): correct types * Add changes * Update correct-http-api-types.md * chore(deps) Update Tauri JS CLI (#1364) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri API Definitions (#1363) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(tauri/webview): Use different user_data_path for Windows (#1365) (#1366) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * fix(config): serde_json::Value::Object takes a Map instead of HashMap (#1371) * fix(config): serde_json::Value::Object takes a Map instead of HashMap * fix: fmt * fix(tauri.js): init command properly building with manifests (#1374) * fix(tauri.js): init command properly building with manifests * fix: tests * feat(bundler): add visual c++ redistributable files with MSM (#1368) * refactor(core): reduce usage on arc and mutex (#1361) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(config): allow setting product name and version on tauri.conf.json (#1358) * feat: add current working directory to path api module (#1375) * refactor(core): move bundle script to /tauri crate (#1377) * refactor(core): move bundle script to /tauri crate * fix(cli): clippy * fix(core): tests * refactor(core): custom protocol URL uses the app identifier (#1376) * refactor(core): custom protocol URL uses the app identifier * fix: clippy * fix(tauri-api): remove .exe from app_name on windows (#1379) * chore(deps) Update Tauri API Definitions (#1384) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate tokio to 1.4 (#1383) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(cli): prmpt user before install deps in init (#1381) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update dependency rollup to v2.42.4 (#1386) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(cli): rewrite init command in Rust (#1382) Co-authored-by: nothingismagick <denjell@mailscript.com> * refactor(bundler): specific settings on dedicated structs, update README (#1380) * replace lazy_static uses with once_cell (#1391) * chore(deps) Update Tauri JS CLI (#1385) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(cli): rewrite info in Rust (#1389) * refactor(core): remove async from app hooks, add InvokeMessage type (#1392) * fix(cli): disable custom-protocol feature on dev command (#1393) * Fix extremely slow dev builds caused by embedding + compressing assets at compile time (#1395) * feat(bundler) code signing (#473) Co-authored-by: Rajiv Shah <rajivshah1@icloud.com> Co-authored-by: David Lemarier <david@lemarier.ca> * feat(cli): run beforeDev and beforeBuild in a shell, closes #1295 (#1399) * update to sharp 0.28.0 for cpu arm (m1) (#1404) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(cli): propagate args passed after `dev --`, closes #1406 (#1407) * refactor(api): use secure RNG, closes #1356 (#1398) * chore(deps) Update Tauri API Definitions (#1411) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate rfd to 0.2.2 (#1410) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri CLI (#1413) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri Bundler (#1412) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(core): rewrite shell execute API, closes #1229 (#1408) * chore(deps) Update dependency @rollup/plugin-commonjs to v18 (#1415) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri JS CLI (#1414) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix: asset resolution on debug mode * fix(core): ignore query string on custom protocol asset resolver (#1420) * wire up existing and adjust recipe configuration * merge dev * fix default app name * clean up vanillajs and proper pass args * use scaffe to copy the react templates * fix(api): remove cjs, rename .mjs to .js * chore: tauri.js dead code elim (#1422) * remove templates, only used it CTA * help command is empty, remove * delete files that aren't imported / required * set files array to ignore src and config files * remove unused deps * add arch notes for future ref * change file * allow specifying a binary * resolve last bits to reach scaffe * adjust vanilla js template dir path Co-authored-by: Sanket Chaudhari <chaudharisanket2000@gmail.com> * fix up cra scaffolding * remove none and rely on vanillajs * log shell commands * remove no recipe question branch * shift react template for better overwrite copying * update deps * simple readme * implement dep manager * pretty Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Noah Klayman <noahklayman@gmail.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> Co-authored-by: Lucas Fernandes Nogueira <lucasfernandesnog@gmail.com> Co-authored-by: chip <chip@chip.sh> Co-authored-by: Gabe Cohen <gcc3.14@gmail.com> Co-authored-by: Ngo Iok Ui (Wu Yu Wei) <wusyong9104@gmail.com> Co-authored-by: Alve Larsson <larsalvelarsson@gmail.com> Co-authored-by: Amr Bashir <48618675+amrbashir@users.noreply.github.com> Co-authored-by: Kid <44045911+kidonng@users.noreply.github.com> Co-authored-by: david <david@lemarier.ca> Co-authored-by: nothingismagick <denjell@mailscript.com> Co-authored-by: William <william@venner.io> Co-authored-by: Rajiv Shah <rajivshah1@icloud.com> Co-authored-by: Mehdi Rezaei <mehdiraized@gmail.com> Co-authored-by: Sanket Chaudhari <chaudharisanket2000@gmail.com>
2021-04-11 12:22:07 +03:00
const parseArgs = require("minimist");
const inquirer = require("inquirer");
feat: create-tauri-app wiring (#1442) * chore(deps) Update Tauri JS CLI (#1319) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri Core (#1318) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri API (#1316) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate serde_json to 1.0.64 (#1315) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate once_cell to 1.7.2 (#1314) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate image to 0.23.14 (#1313) Co-authored-by: Renovate Bot <bot@renovateapp.com> * feat(cli/build): improve no distDir error message (#1306) * feat(cli/build): improve no distDir error message * chore: use Path's Display impl Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri API Definitions (#1317) Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(bundler/wix): install webview2 runtime (#1329) * feat(bundler/wix): install webview2 runtime * add changefile * chore(deps) Update Tauri API Definitions (major) (#1290) * chore(deps) Update Tauri API Definitions * chore: update to husky v5 * chore: remove husky script * chore: recreate lock file Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri JS CLI (#1291) Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * refactor(core): app hooks (#1332) * fix(api/window): rename manager export to appWindow (#1342) * feat(api/shell): allow open command to open files (#1341) * chore(deps) Update Tauri API Definitions (#1344) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate tokio to 1.3 (#1343) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate open to 1.6.0 (#1348) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(core): wrong usage of wry RPC on event API (#1351) * copy cli config definition window visibility defaults (#1353) * feat(core): add file drop handler (#1352) * fix: get correct resource dir in AppImge (fix #1308) (#1333) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat: build without proc macros (#1226) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri JS CLI (#1346) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(core): use Mutex in std to reduce async usage (#1350) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * fix(examples): build error (#1354) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * API example new ui (#1310) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps): remove `winres` from template (#1357) * refactor(core): add `unlisten`, `once` APIs to the event system (#1359) * fix(cli): use correct arg in `_blanks` links polyfill (#1362) * fix(api/http): correct types (#1360) * fix(api/http): correct types * Add changes * Update correct-http-api-types.md * chore(deps) Update Tauri JS CLI (#1364) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri API Definitions (#1363) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(tauri/webview): Use different user_data_path for Windows (#1365) (#1366) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * fix(config): serde_json::Value::Object takes a Map instead of HashMap (#1371) * fix(config): serde_json::Value::Object takes a Map instead of HashMap * fix: fmt * fix(tauri.js): init command properly building with manifests (#1374) * fix(tauri.js): init command properly building with manifests * fix: tests * feat(bundler): add visual c++ redistributable files with MSM (#1368) * refactor(core): reduce usage on arc and mutex (#1361) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(config): allow setting product name and version on tauri.conf.json (#1358) * feat: add current working directory to path api module (#1375) * refactor(core): move bundle script to /tauri crate (#1377) * refactor(core): move bundle script to /tauri crate * fix(cli): clippy * fix(core): tests * refactor(core): custom protocol URL uses the app identifier (#1376) * refactor(core): custom protocol URL uses the app identifier * fix: clippy * fix(tauri-api): remove .exe from app_name on windows (#1379) * chore(deps) Update Tauri API Definitions (#1384) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate tokio to 1.4 (#1383) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(cli): prmpt user before install deps in init (#1381) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update dependency rollup to v2.42.4 (#1386) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(cli): rewrite init command in Rust (#1382) Co-authored-by: nothingismagick <denjell@mailscript.com> * refactor(bundler): specific settings on dedicated structs, update README (#1380) * replace lazy_static uses with once_cell (#1391) * chore(deps) Update Tauri JS CLI (#1385) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(cli): rewrite info in Rust (#1389) * refactor(core): remove async from app hooks, add InvokeMessage type (#1392) * fix(cli): disable custom-protocol feature on dev command (#1393) * Fix extremely slow dev builds caused by embedding + compressing assets at compile time (#1395) * feat(bundler) code signing (#473) Co-authored-by: Rajiv Shah <rajivshah1@icloud.com> Co-authored-by: David Lemarier <david@lemarier.ca> * feat(cli): run beforeDev and beforeBuild in a shell, closes #1295 (#1399) * update to sharp 0.28.0 for cpu arm (m1) (#1404) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(cli): propagate args passed after `dev --`, closes #1406 (#1407) * refactor(api): use secure RNG, closes #1356 (#1398) * chore(deps) Update Tauri API Definitions (#1411) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate rfd to 0.2.2 (#1410) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri CLI (#1413) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri Bundler (#1412) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(core): rewrite shell execute API, closes #1229 (#1408) * chore(deps) Update dependency @rollup/plugin-commonjs to v18 (#1415) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri JS CLI (#1414) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix: asset resolution on debug mode * fix(core): ignore query string on custom protocol asset resolver (#1420) * wire up existing and adjust recipe configuration * merge dev * fix default app name * clean up vanillajs and proper pass args * use scaffe to copy the react templates * fix(api): remove cjs, rename .mjs to .js * chore: tauri.js dead code elim (#1422) * remove templates, only used it CTA * help command is empty, remove * delete files that aren't imported / required * set files array to ignore src and config files * remove unused deps * add arch notes for future ref * change file * allow specifying a binary * resolve last bits to reach scaffe * adjust vanilla js template dir path Co-authored-by: Sanket Chaudhari <chaudharisanket2000@gmail.com> * fix up cra scaffolding * remove none and rely on vanillajs * log shell commands * remove no recipe question branch * shift react template for better overwrite copying * update deps * simple readme * implement dep manager * pretty Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Noah Klayman <noahklayman@gmail.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> Co-authored-by: Lucas Fernandes Nogueira <lucasfernandesnog@gmail.com> Co-authored-by: chip <chip@chip.sh> Co-authored-by: Gabe Cohen <gcc3.14@gmail.com> Co-authored-by: Ngo Iok Ui (Wu Yu Wei) <wusyong9104@gmail.com> Co-authored-by: Alve Larsson <larsalvelarsson@gmail.com> Co-authored-by: Amr Bashir <48618675+amrbashir@users.noreply.github.com> Co-authored-by: Kid <44045911+kidonng@users.noreply.github.com> Co-authored-by: david <david@lemarier.ca> Co-authored-by: nothingismagick <denjell@mailscript.com> Co-authored-by: William <william@venner.io> Co-authored-by: Rajiv Shah <rajivshah1@icloud.com> Co-authored-by: Mehdi Rezaei <mehdiraized@gmail.com> Co-authored-by: Sanket Chaudhari <chaudharisanket2000@gmail.com>
2021-04-11 12:22:07 +03:00
const { resolve, join } = require("path");
const {
recipeShortNames,
recipeDescriptiveNames,
recipeByDescriptiveName,
recipeByShortName,
feat: create-tauri-app wiring (#1442) * chore(deps) Update Tauri JS CLI (#1319) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri Core (#1318) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri API (#1316) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate serde_json to 1.0.64 (#1315) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate once_cell to 1.7.2 (#1314) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate image to 0.23.14 (#1313) Co-authored-by: Renovate Bot <bot@renovateapp.com> * feat(cli/build): improve no distDir error message (#1306) * feat(cli/build): improve no distDir error message * chore: use Path's Display impl Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri API Definitions (#1317) Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(bundler/wix): install webview2 runtime (#1329) * feat(bundler/wix): install webview2 runtime * add changefile * chore(deps) Update Tauri API Definitions (major) (#1290) * chore(deps) Update Tauri API Definitions * chore: update to husky v5 * chore: remove husky script * chore: recreate lock file Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri JS CLI (#1291) Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * refactor(core): app hooks (#1332) * fix(api/window): rename manager export to appWindow (#1342) * feat(api/shell): allow open command to open files (#1341) * chore(deps) Update Tauri API Definitions (#1344) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate tokio to 1.3 (#1343) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate open to 1.6.0 (#1348) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(core): wrong usage of wry RPC on event API (#1351) * copy cli config definition window visibility defaults (#1353) * feat(core): add file drop handler (#1352) * fix: get correct resource dir in AppImge (fix #1308) (#1333) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat: build without proc macros (#1226) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri JS CLI (#1346) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(core): use Mutex in std to reduce async usage (#1350) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * fix(examples): build error (#1354) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * API example new ui (#1310) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps): remove `winres` from template (#1357) * refactor(core): add `unlisten`, `once` APIs to the event system (#1359) * fix(cli): use correct arg in `_blanks` links polyfill (#1362) * fix(api/http): correct types (#1360) * fix(api/http): correct types * Add changes * Update correct-http-api-types.md * chore(deps) Update Tauri JS CLI (#1364) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri API Definitions (#1363) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(tauri/webview): Use different user_data_path for Windows (#1365) (#1366) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * fix(config): serde_json::Value::Object takes a Map instead of HashMap (#1371) * fix(config): serde_json::Value::Object takes a Map instead of HashMap * fix: fmt * fix(tauri.js): init command properly building with manifests (#1374) * fix(tauri.js): init command properly building with manifests * fix: tests * feat(bundler): add visual c++ redistributable files with MSM (#1368) * refactor(core): reduce usage on arc and mutex (#1361) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(config): allow setting product name and version on tauri.conf.json (#1358) * feat: add current working directory to path api module (#1375) * refactor(core): move bundle script to /tauri crate (#1377) * refactor(core): move bundle script to /tauri crate * fix(cli): clippy * fix(core): tests * refactor(core): custom protocol URL uses the app identifier (#1376) * refactor(core): custom protocol URL uses the app identifier * fix: clippy * fix(tauri-api): remove .exe from app_name on windows (#1379) * chore(deps) Update Tauri API Definitions (#1384) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate tokio to 1.4 (#1383) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(cli): prmpt user before install deps in init (#1381) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update dependency rollup to v2.42.4 (#1386) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(cli): rewrite init command in Rust (#1382) Co-authored-by: nothingismagick <denjell@mailscript.com> * refactor(bundler): specific settings on dedicated structs, update README (#1380) * replace lazy_static uses with once_cell (#1391) * chore(deps) Update Tauri JS CLI (#1385) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(cli): rewrite info in Rust (#1389) * refactor(core): remove async from app hooks, add InvokeMessage type (#1392) * fix(cli): disable custom-protocol feature on dev command (#1393) * Fix extremely slow dev builds caused by embedding + compressing assets at compile time (#1395) * feat(bundler) code signing (#473) Co-authored-by: Rajiv Shah <rajivshah1@icloud.com> Co-authored-by: David Lemarier <david@lemarier.ca> * feat(cli): run beforeDev and beforeBuild in a shell, closes #1295 (#1399) * update to sharp 0.28.0 for cpu arm (m1) (#1404) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(cli): propagate args passed after `dev --`, closes #1406 (#1407) * refactor(api): use secure RNG, closes #1356 (#1398) * chore(deps) Update Tauri API Definitions (#1411) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate rfd to 0.2.2 (#1410) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri CLI (#1413) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri Bundler (#1412) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(core): rewrite shell execute API, closes #1229 (#1408) * chore(deps) Update dependency @rollup/plugin-commonjs to v18 (#1415) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri JS CLI (#1414) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix: asset resolution on debug mode * fix(core): ignore query string on custom protocol asset resolver (#1420) * wire up existing and adjust recipe configuration * merge dev * fix default app name * clean up vanillajs and proper pass args * use scaffe to copy the react templates * fix(api): remove cjs, rename .mjs to .js * chore: tauri.js dead code elim (#1422) * remove templates, only used it CTA * help command is empty, remove * delete files that aren't imported / required * set files array to ignore src and config files * remove unused deps * add arch notes for future ref * change file * allow specifying a binary * resolve last bits to reach scaffe * adjust vanilla js template dir path Co-authored-by: Sanket Chaudhari <chaudharisanket2000@gmail.com> * fix up cra scaffolding * remove none and rely on vanillajs * log shell commands * remove no recipe question branch * shift react template for better overwrite copying * update deps * simple readme * implement dep manager * pretty Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Noah Klayman <noahklayman@gmail.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> Co-authored-by: Lucas Fernandes Nogueira <lucasfernandesnog@gmail.com> Co-authored-by: chip <chip@chip.sh> Co-authored-by: Gabe Cohen <gcc3.14@gmail.com> Co-authored-by: Ngo Iok Ui (Wu Yu Wei) <wusyong9104@gmail.com> Co-authored-by: Alve Larsson <larsalvelarsson@gmail.com> Co-authored-by: Amr Bashir <48618675+amrbashir@users.noreply.github.com> Co-authored-by: Kid <44045911+kidonng@users.noreply.github.com> Co-authored-by: david <david@lemarier.ca> Co-authored-by: nothingismagick <denjell@mailscript.com> Co-authored-by: William <william@venner.io> Co-authored-by: Rajiv Shah <rajivshah1@icloud.com> Co-authored-by: Mehdi Rezaei <mehdiraized@gmail.com> Co-authored-by: Sanket Chaudhari <chaudharisanket2000@gmail.com>
2021-04-11 12:22:07 +03:00
install,
checkPackageManager,
feat: create-tauri-app wiring (#1442) * chore(deps) Update Tauri JS CLI (#1319) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri Core (#1318) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri API (#1316) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate serde_json to 1.0.64 (#1315) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate once_cell to 1.7.2 (#1314) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate image to 0.23.14 (#1313) Co-authored-by: Renovate Bot <bot@renovateapp.com> * feat(cli/build): improve no distDir error message (#1306) * feat(cli/build): improve no distDir error message * chore: use Path's Display impl Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri API Definitions (#1317) Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(bundler/wix): install webview2 runtime (#1329) * feat(bundler/wix): install webview2 runtime * add changefile * chore(deps) Update Tauri API Definitions (major) (#1290) * chore(deps) Update Tauri API Definitions * chore: update to husky v5 * chore: remove husky script * chore: recreate lock file Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri JS CLI (#1291) Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * refactor(core): app hooks (#1332) * fix(api/window): rename manager export to appWindow (#1342) * feat(api/shell): allow open command to open files (#1341) * chore(deps) Update Tauri API Definitions (#1344) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate tokio to 1.3 (#1343) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate open to 1.6.0 (#1348) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(core): wrong usage of wry RPC on event API (#1351) * copy cli config definition window visibility defaults (#1353) * feat(core): add file drop handler (#1352) * fix: get correct resource dir in AppImge (fix #1308) (#1333) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat: build without proc macros (#1226) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri JS CLI (#1346) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(core): use Mutex in std to reduce async usage (#1350) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * fix(examples): build error (#1354) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * API example new ui (#1310) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps): remove `winres` from template (#1357) * refactor(core): add `unlisten`, `once` APIs to the event system (#1359) * fix(cli): use correct arg in `_blanks` links polyfill (#1362) * fix(api/http): correct types (#1360) * fix(api/http): correct types * Add changes * Update correct-http-api-types.md * chore(deps) Update Tauri JS CLI (#1364) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri API Definitions (#1363) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(tauri/webview): Use different user_data_path for Windows (#1365) (#1366) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * fix(config): serde_json::Value::Object takes a Map instead of HashMap (#1371) * fix(config): serde_json::Value::Object takes a Map instead of HashMap * fix: fmt * fix(tauri.js): init command properly building with manifests (#1374) * fix(tauri.js): init command properly building with manifests * fix: tests * feat(bundler): add visual c++ redistributable files with MSM (#1368) * refactor(core): reduce usage on arc and mutex (#1361) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(config): allow setting product name and version on tauri.conf.json (#1358) * feat: add current working directory to path api module (#1375) * refactor(core): move bundle script to /tauri crate (#1377) * refactor(core): move bundle script to /tauri crate * fix(cli): clippy * fix(core): tests * refactor(core): custom protocol URL uses the app identifier (#1376) * refactor(core): custom protocol URL uses the app identifier * fix: clippy * fix(tauri-api): remove .exe from app_name on windows (#1379) * chore(deps) Update Tauri API Definitions (#1384) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate tokio to 1.4 (#1383) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(cli): prmpt user before install deps in init (#1381) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update dependency rollup to v2.42.4 (#1386) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(cli): rewrite init command in Rust (#1382) Co-authored-by: nothingismagick <denjell@mailscript.com> * refactor(bundler): specific settings on dedicated structs, update README (#1380) * replace lazy_static uses with once_cell (#1391) * chore(deps) Update Tauri JS CLI (#1385) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(cli): rewrite info in Rust (#1389) * refactor(core): remove async from app hooks, add InvokeMessage type (#1392) * fix(cli): disable custom-protocol feature on dev command (#1393) * Fix extremely slow dev builds caused by embedding + compressing assets at compile time (#1395) * feat(bundler) code signing (#473) Co-authored-by: Rajiv Shah <rajivshah1@icloud.com> Co-authored-by: David Lemarier <david@lemarier.ca> * feat(cli): run beforeDev and beforeBuild in a shell, closes #1295 (#1399) * update to sharp 0.28.0 for cpu arm (m1) (#1404) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(cli): propagate args passed after `dev --`, closes #1406 (#1407) * refactor(api): use secure RNG, closes #1356 (#1398) * chore(deps) Update Tauri API Definitions (#1411) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate rfd to 0.2.2 (#1410) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri CLI (#1413) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri Bundler (#1412) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(core): rewrite shell execute API, closes #1229 (#1408) * chore(deps) Update dependency @rollup/plugin-commonjs to v18 (#1415) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri JS CLI (#1414) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix: asset resolution on debug mode * fix(core): ignore query string on custom protocol asset resolver (#1420) * wire up existing and adjust recipe configuration * merge dev * fix default app name * clean up vanillajs and proper pass args * use scaffe to copy the react templates * fix(api): remove cjs, rename .mjs to .js * chore: tauri.js dead code elim (#1422) * remove templates, only used it CTA * help command is empty, remove * delete files that aren't imported / required * set files array to ignore src and config files * remove unused deps * add arch notes for future ref * change file * allow specifying a binary * resolve last bits to reach scaffe * adjust vanilla js template dir path Co-authored-by: Sanket Chaudhari <chaudharisanket2000@gmail.com> * fix up cra scaffolding * remove none and rely on vanillajs * log shell commands * remove no recipe question branch * shift react template for better overwrite copying * update deps * simple readme * implement dep manager * pretty Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Noah Klayman <noahklayman@gmail.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> Co-authored-by: Lucas Fernandes Nogueira <lucasfernandesnog@gmail.com> Co-authored-by: chip <chip@chip.sh> Co-authored-by: Gabe Cohen <gcc3.14@gmail.com> Co-authored-by: Ngo Iok Ui (Wu Yu Wei) <wusyong9104@gmail.com> Co-authored-by: Alve Larsson <larsalvelarsson@gmail.com> Co-authored-by: Amr Bashir <48618675+amrbashir@users.noreply.github.com> Co-authored-by: Kid <44045911+kidonng@users.noreply.github.com> Co-authored-by: david <david@lemarier.ca> Co-authored-by: nothingismagick <denjell@mailscript.com> Co-authored-by: William <william@venner.io> Co-authored-by: Rajiv Shah <rajivshah1@icloud.com> Co-authored-by: Mehdi Rezaei <mehdiraized@gmail.com> Co-authored-by: Sanket Chaudhari <chaudharisanket2000@gmail.com>
2021-04-11 12:22:07 +03:00
shell,
} = require("../dist/");
/**
* @type {object}
* @property {boolean} h
* @property {boolean} help
feat: create-tauri-app wiring (#1442) * chore(deps) Update Tauri JS CLI (#1319) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri Core (#1318) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri API (#1316) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate serde_json to 1.0.64 (#1315) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate once_cell to 1.7.2 (#1314) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate image to 0.23.14 (#1313) Co-authored-by: Renovate Bot <bot@renovateapp.com> * feat(cli/build): improve no distDir error message (#1306) * feat(cli/build): improve no distDir error message * chore: use Path's Display impl Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri API Definitions (#1317) Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(bundler/wix): install webview2 runtime (#1329) * feat(bundler/wix): install webview2 runtime * add changefile * chore(deps) Update Tauri API Definitions (major) (#1290) * chore(deps) Update Tauri API Definitions * chore: update to husky v5 * chore: remove husky script * chore: recreate lock file Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri JS CLI (#1291) Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * refactor(core): app hooks (#1332) * fix(api/window): rename manager export to appWindow (#1342) * feat(api/shell): allow open command to open files (#1341) * chore(deps) Update Tauri API Definitions (#1344) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate tokio to 1.3 (#1343) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate open to 1.6.0 (#1348) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(core): wrong usage of wry RPC on event API (#1351) * copy cli config definition window visibility defaults (#1353) * feat(core): add file drop handler (#1352) * fix: get correct resource dir in AppImge (fix #1308) (#1333) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat: build without proc macros (#1226) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri JS CLI (#1346) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(core): use Mutex in std to reduce async usage (#1350) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * fix(examples): build error (#1354) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * API example new ui (#1310) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps): remove `winres` from template (#1357) * refactor(core): add `unlisten`, `once` APIs to the event system (#1359) * fix(cli): use correct arg in `_blanks` links polyfill (#1362) * fix(api/http): correct types (#1360) * fix(api/http): correct types * Add changes * Update correct-http-api-types.md * chore(deps) Update Tauri JS CLI (#1364) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri API Definitions (#1363) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(tauri/webview): Use different user_data_path for Windows (#1365) (#1366) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * fix(config): serde_json::Value::Object takes a Map instead of HashMap (#1371) * fix(config): serde_json::Value::Object takes a Map instead of HashMap * fix: fmt * fix(tauri.js): init command properly building with manifests (#1374) * fix(tauri.js): init command properly building with manifests * fix: tests * feat(bundler): add visual c++ redistributable files with MSM (#1368) * refactor(core): reduce usage on arc and mutex (#1361) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(config): allow setting product name and version on tauri.conf.json (#1358) * feat: add current working directory to path api module (#1375) * refactor(core): move bundle script to /tauri crate (#1377) * refactor(core): move bundle script to /tauri crate * fix(cli): clippy * fix(core): tests * refactor(core): custom protocol URL uses the app identifier (#1376) * refactor(core): custom protocol URL uses the app identifier * fix: clippy * fix(tauri-api): remove .exe from app_name on windows (#1379) * chore(deps) Update Tauri API Definitions (#1384) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate tokio to 1.4 (#1383) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(cli): prmpt user before install deps in init (#1381) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update dependency rollup to v2.42.4 (#1386) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(cli): rewrite init command in Rust (#1382) Co-authored-by: nothingismagick <denjell@mailscript.com> * refactor(bundler): specific settings on dedicated structs, update README (#1380) * replace lazy_static uses with once_cell (#1391) * chore(deps) Update Tauri JS CLI (#1385) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(cli): rewrite info in Rust (#1389) * refactor(core): remove async from app hooks, add InvokeMessage type (#1392) * fix(cli): disable custom-protocol feature on dev command (#1393) * Fix extremely slow dev builds caused by embedding + compressing assets at compile time (#1395) * feat(bundler) code signing (#473) Co-authored-by: Rajiv Shah <rajivshah1@icloud.com> Co-authored-by: David Lemarier <david@lemarier.ca> * feat(cli): run beforeDev and beforeBuild in a shell, closes #1295 (#1399) * update to sharp 0.28.0 for cpu arm (m1) (#1404) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(cli): propagate args passed after `dev --`, closes #1406 (#1407) * refactor(api): use secure RNG, closes #1356 (#1398) * chore(deps) Update Tauri API Definitions (#1411) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate rfd to 0.2.2 (#1410) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri CLI (#1413) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri Bundler (#1412) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(core): rewrite shell execute API, closes #1229 (#1408) * chore(deps) Update dependency @rollup/plugin-commonjs to v18 (#1415) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri JS CLI (#1414) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix: asset resolution on debug mode * fix(core): ignore query string on custom protocol asset resolver (#1420) * wire up existing and adjust recipe configuration * merge dev * fix default app name * clean up vanillajs and proper pass args * use scaffe to copy the react templates * fix(api): remove cjs, rename .mjs to .js * chore: tauri.js dead code elim (#1422) * remove templates, only used it CTA * help command is empty, remove * delete files that aren't imported / required * set files array to ignore src and config files * remove unused deps * add arch notes for future ref * change file * allow specifying a binary * resolve last bits to reach scaffe * adjust vanilla js template dir path Co-authored-by: Sanket Chaudhari <chaudharisanket2000@gmail.com> * fix up cra scaffolding * remove none and rely on vanillajs * log shell commands * remove no recipe question branch * shift react template for better overwrite copying * update deps * simple readme * implement dep manager * pretty Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Noah Klayman <noahklayman@gmail.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> Co-authored-by: Lucas Fernandes Nogueira <lucasfernandesnog@gmail.com> Co-authored-by: chip <chip@chip.sh> Co-authored-by: Gabe Cohen <gcc3.14@gmail.com> Co-authored-by: Ngo Iok Ui (Wu Yu Wei) <wusyong9104@gmail.com> Co-authored-by: Alve Larsson <larsalvelarsson@gmail.com> Co-authored-by: Amr Bashir <48618675+amrbashir@users.noreply.github.com> Co-authored-by: Kid <44045911+kidonng@users.noreply.github.com> Co-authored-by: david <david@lemarier.ca> Co-authored-by: nothingismagick <denjell@mailscript.com> Co-authored-by: William <william@venner.io> Co-authored-by: Rajiv Shah <rajivshah1@icloud.com> Co-authored-by: Mehdi Rezaei <mehdiraized@gmail.com> Co-authored-by: Sanket Chaudhari <chaudharisanket2000@gmail.com>
2021-04-11 12:22:07 +03:00
* @property {boolean} v
* @property {boolean} version
* @property {string|boolean} f
* @property {string|boolean} force
* @property {boolean} l
* @property {boolean} log
* @property {boolean} d
* @property {boolean} directory
* @property {string} r
* @property {string} recipe
*/
feat: create-tauri-app wiring (#1442) * chore(deps) Update Tauri JS CLI (#1319) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri Core (#1318) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri API (#1316) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate serde_json to 1.0.64 (#1315) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate once_cell to 1.7.2 (#1314) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate image to 0.23.14 (#1313) Co-authored-by: Renovate Bot <bot@renovateapp.com> * feat(cli/build): improve no distDir error message (#1306) * feat(cli/build): improve no distDir error message * chore: use Path's Display impl Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri API Definitions (#1317) Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(bundler/wix): install webview2 runtime (#1329) * feat(bundler/wix): install webview2 runtime * add changefile * chore(deps) Update Tauri API Definitions (major) (#1290) * chore(deps) Update Tauri API Definitions * chore: update to husky v5 * chore: remove husky script * chore: recreate lock file Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri JS CLI (#1291) Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * refactor(core): app hooks (#1332) * fix(api/window): rename manager export to appWindow (#1342) * feat(api/shell): allow open command to open files (#1341) * chore(deps) Update Tauri API Definitions (#1344) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate tokio to 1.3 (#1343) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate open to 1.6.0 (#1348) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(core): wrong usage of wry RPC on event API (#1351) * copy cli config definition window visibility defaults (#1353) * feat(core): add file drop handler (#1352) * fix: get correct resource dir in AppImge (fix #1308) (#1333) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat: build without proc macros (#1226) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri JS CLI (#1346) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(core): use Mutex in std to reduce async usage (#1350) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * fix(examples): build error (#1354) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * API example new ui (#1310) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps): remove `winres` from template (#1357) * refactor(core): add `unlisten`, `once` APIs to the event system (#1359) * fix(cli): use correct arg in `_blanks` links polyfill (#1362) * fix(api/http): correct types (#1360) * fix(api/http): correct types * Add changes * Update correct-http-api-types.md * chore(deps) Update Tauri JS CLI (#1364) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri API Definitions (#1363) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(tauri/webview): Use different user_data_path for Windows (#1365) (#1366) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * fix(config): serde_json::Value::Object takes a Map instead of HashMap (#1371) * fix(config): serde_json::Value::Object takes a Map instead of HashMap * fix: fmt * fix(tauri.js): init command properly building with manifests (#1374) * fix(tauri.js): init command properly building with manifests * fix: tests * feat(bundler): add visual c++ redistributable files with MSM (#1368) * refactor(core): reduce usage on arc and mutex (#1361) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(config): allow setting product name and version on tauri.conf.json (#1358) * feat: add current working directory to path api module (#1375) * refactor(core): move bundle script to /tauri crate (#1377) * refactor(core): move bundle script to /tauri crate * fix(cli): clippy * fix(core): tests * refactor(core): custom protocol URL uses the app identifier (#1376) * refactor(core): custom protocol URL uses the app identifier * fix: clippy * fix(tauri-api): remove .exe from app_name on windows (#1379) * chore(deps) Update Tauri API Definitions (#1384) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate tokio to 1.4 (#1383) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(cli): prmpt user before install deps in init (#1381) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update dependency rollup to v2.42.4 (#1386) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(cli): rewrite init command in Rust (#1382) Co-authored-by: nothingismagick <denjell@mailscript.com> * refactor(bundler): specific settings on dedicated structs, update README (#1380) * replace lazy_static uses with once_cell (#1391) * chore(deps) Update Tauri JS CLI (#1385) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(cli): rewrite info in Rust (#1389) * refactor(core): remove async from app hooks, add InvokeMessage type (#1392) * fix(cli): disable custom-protocol feature on dev command (#1393) * Fix extremely slow dev builds caused by embedding + compressing assets at compile time (#1395) * feat(bundler) code signing (#473) Co-authored-by: Rajiv Shah <rajivshah1@icloud.com> Co-authored-by: David Lemarier <david@lemarier.ca> * feat(cli): run beforeDev and beforeBuild in a shell, closes #1295 (#1399) * update to sharp 0.28.0 for cpu arm (m1) (#1404) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(cli): propagate args passed after `dev --`, closes #1406 (#1407) * refactor(api): use secure RNG, closes #1356 (#1398) * chore(deps) Update Tauri API Definitions (#1411) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate rfd to 0.2.2 (#1410) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri CLI (#1413) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri Bundler (#1412) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(core): rewrite shell execute API, closes #1229 (#1408) * chore(deps) Update dependency @rollup/plugin-commonjs to v18 (#1415) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri JS CLI (#1414) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix: asset resolution on debug mode * fix(core): ignore query string on custom protocol asset resolver (#1420) * wire up existing and adjust recipe configuration * merge dev * fix default app name * clean up vanillajs and proper pass args * use scaffe to copy the react templates * fix(api): remove cjs, rename .mjs to .js * chore: tauri.js dead code elim (#1422) * remove templates, only used it CTA * help command is empty, remove * delete files that aren't imported / required * set files array to ignore src and config files * remove unused deps * add arch notes for future ref * change file * allow specifying a binary * resolve last bits to reach scaffe * adjust vanilla js template dir path Co-authored-by: Sanket Chaudhari <chaudharisanket2000@gmail.com> * fix up cra scaffolding * remove none and rely on vanillajs * log shell commands * remove no recipe question branch * shift react template for better overwrite copying * update deps * simple readme * implement dep manager * pretty Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Noah Klayman <noahklayman@gmail.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> Co-authored-by: Lucas Fernandes Nogueira <lucasfernandesnog@gmail.com> Co-authored-by: chip <chip@chip.sh> Co-authored-by: Gabe Cohen <gcc3.14@gmail.com> Co-authored-by: Ngo Iok Ui (Wu Yu Wei) <wusyong9104@gmail.com> Co-authored-by: Alve Larsson <larsalvelarsson@gmail.com> Co-authored-by: Amr Bashir <48618675+amrbashir@users.noreply.github.com> Co-authored-by: Kid <44045911+kidonng@users.noreply.github.com> Co-authored-by: david <david@lemarier.ca> Co-authored-by: nothingismagick <denjell@mailscript.com> Co-authored-by: William <william@venner.io> Co-authored-by: Rajiv Shah <rajivshah1@icloud.com> Co-authored-by: Mehdi Rezaei <mehdiraized@gmail.com> Co-authored-by: Sanket Chaudhari <chaudharisanket2000@gmail.com>
2021-04-11 12:22:07 +03:00
const createTauriApp = async (cliArgs) => {
const argv = parseArgs(cliArgs, {
alias: {
h: "help",
feat: create-tauri-app wiring (#1442) * chore(deps) Update Tauri JS CLI (#1319) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri Core (#1318) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri API (#1316) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate serde_json to 1.0.64 (#1315) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate once_cell to 1.7.2 (#1314) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate image to 0.23.14 (#1313) Co-authored-by: Renovate Bot <bot@renovateapp.com> * feat(cli/build): improve no distDir error message (#1306) * feat(cli/build): improve no distDir error message * chore: use Path's Display impl Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri API Definitions (#1317) Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(bundler/wix): install webview2 runtime (#1329) * feat(bundler/wix): install webview2 runtime * add changefile * chore(deps) Update Tauri API Definitions (major) (#1290) * chore(deps) Update Tauri API Definitions * chore: update to husky v5 * chore: remove husky script * chore: recreate lock file Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri JS CLI (#1291) Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * refactor(core): app hooks (#1332) * fix(api/window): rename manager export to appWindow (#1342) * feat(api/shell): allow open command to open files (#1341) * chore(deps) Update Tauri API Definitions (#1344) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate tokio to 1.3 (#1343) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate open to 1.6.0 (#1348) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(core): wrong usage of wry RPC on event API (#1351) * copy cli config definition window visibility defaults (#1353) * feat(core): add file drop handler (#1352) * fix: get correct resource dir in AppImge (fix #1308) (#1333) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat: build without proc macros (#1226) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri JS CLI (#1346) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(core): use Mutex in std to reduce async usage (#1350) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * fix(examples): build error (#1354) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * API example new ui (#1310) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps): remove `winres` from template (#1357) * refactor(core): add `unlisten`, `once` APIs to the event system (#1359) * fix(cli): use correct arg in `_blanks` links polyfill (#1362) * fix(api/http): correct types (#1360) * fix(api/http): correct types * Add changes * Update correct-http-api-types.md * chore(deps) Update Tauri JS CLI (#1364) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri API Definitions (#1363) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(tauri/webview): Use different user_data_path for Windows (#1365) (#1366) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * fix(config): serde_json::Value::Object takes a Map instead of HashMap (#1371) * fix(config): serde_json::Value::Object takes a Map instead of HashMap * fix: fmt * fix(tauri.js): init command properly building with manifests (#1374) * fix(tauri.js): init command properly building with manifests * fix: tests * feat(bundler): add visual c++ redistributable files with MSM (#1368) * refactor(core): reduce usage on arc and mutex (#1361) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(config): allow setting product name and version on tauri.conf.json (#1358) * feat: add current working directory to path api module (#1375) * refactor(core): move bundle script to /tauri crate (#1377) * refactor(core): move bundle script to /tauri crate * fix(cli): clippy * fix(core): tests * refactor(core): custom protocol URL uses the app identifier (#1376) * refactor(core): custom protocol URL uses the app identifier * fix: clippy * fix(tauri-api): remove .exe from app_name on windows (#1379) * chore(deps) Update Tauri API Definitions (#1384) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate tokio to 1.4 (#1383) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(cli): prmpt user before install deps in init (#1381) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update dependency rollup to v2.42.4 (#1386) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(cli): rewrite init command in Rust (#1382) Co-authored-by: nothingismagick <denjell@mailscript.com> * refactor(bundler): specific settings on dedicated structs, update README (#1380) * replace lazy_static uses with once_cell (#1391) * chore(deps) Update Tauri JS CLI (#1385) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(cli): rewrite info in Rust (#1389) * refactor(core): remove async from app hooks, add InvokeMessage type (#1392) * fix(cli): disable custom-protocol feature on dev command (#1393) * Fix extremely slow dev builds caused by embedding + compressing assets at compile time (#1395) * feat(bundler) code signing (#473) Co-authored-by: Rajiv Shah <rajivshah1@icloud.com> Co-authored-by: David Lemarier <david@lemarier.ca> * feat(cli): run beforeDev and beforeBuild in a shell, closes #1295 (#1399) * update to sharp 0.28.0 for cpu arm (m1) (#1404) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(cli): propagate args passed after `dev --`, closes #1406 (#1407) * refactor(api): use secure RNG, closes #1356 (#1398) * chore(deps) Update Tauri API Definitions (#1411) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate rfd to 0.2.2 (#1410) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri CLI (#1413) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri Bundler (#1412) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(core): rewrite shell execute API, closes #1229 (#1408) * chore(deps) Update dependency @rollup/plugin-commonjs to v18 (#1415) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri JS CLI (#1414) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix: asset resolution on debug mode * fix(core): ignore query string on custom protocol asset resolver (#1420) * wire up existing and adjust recipe configuration * merge dev * fix default app name * clean up vanillajs and proper pass args * use scaffe to copy the react templates * fix(api): remove cjs, rename .mjs to .js * chore: tauri.js dead code elim (#1422) * remove templates, only used it CTA * help command is empty, remove * delete files that aren't imported / required * set files array to ignore src and config files * remove unused deps * add arch notes for future ref * change file * allow specifying a binary * resolve last bits to reach scaffe * adjust vanilla js template dir path Co-authored-by: Sanket Chaudhari <chaudharisanket2000@gmail.com> * fix up cra scaffolding * remove none and rely on vanillajs * log shell commands * remove no recipe question branch * shift react template for better overwrite copying * update deps * simple readme * implement dep manager * pretty Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Noah Klayman <noahklayman@gmail.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> Co-authored-by: Lucas Fernandes Nogueira <lucasfernandesnog@gmail.com> Co-authored-by: chip <chip@chip.sh> Co-authored-by: Gabe Cohen <gcc3.14@gmail.com> Co-authored-by: Ngo Iok Ui (Wu Yu Wei) <wusyong9104@gmail.com> Co-authored-by: Alve Larsson <larsalvelarsson@gmail.com> Co-authored-by: Amr Bashir <48618675+amrbashir@users.noreply.github.com> Co-authored-by: Kid <44045911+kidonng@users.noreply.github.com> Co-authored-by: david <david@lemarier.ca> Co-authored-by: nothingismagick <denjell@mailscript.com> Co-authored-by: William <william@venner.io> Co-authored-by: Rajiv Shah <rajivshah1@icloud.com> Co-authored-by: Mehdi Rezaei <mehdiraized@gmail.com> Co-authored-by: Sanket Chaudhari <chaudharisanket2000@gmail.com>
2021-04-11 12:22:07 +03:00
v: "version",
f: "force",
l: "log",
m: "manager",
d: "directory",
feat: create-tauri-app wiring (#1442) * chore(deps) Update Tauri JS CLI (#1319) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri Core (#1318) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri API (#1316) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate serde_json to 1.0.64 (#1315) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate once_cell to 1.7.2 (#1314) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate image to 0.23.14 (#1313) Co-authored-by: Renovate Bot <bot@renovateapp.com> * feat(cli/build): improve no distDir error message (#1306) * feat(cli/build): improve no distDir error message * chore: use Path's Display impl Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri API Definitions (#1317) Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(bundler/wix): install webview2 runtime (#1329) * feat(bundler/wix): install webview2 runtime * add changefile * chore(deps) Update Tauri API Definitions (major) (#1290) * chore(deps) Update Tauri API Definitions * chore: update to husky v5 * chore: remove husky script * chore: recreate lock file Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri JS CLI (#1291) Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * refactor(core): app hooks (#1332) * fix(api/window): rename manager export to appWindow (#1342) * feat(api/shell): allow open command to open files (#1341) * chore(deps) Update Tauri API Definitions (#1344) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate tokio to 1.3 (#1343) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate open to 1.6.0 (#1348) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(core): wrong usage of wry RPC on event API (#1351) * copy cli config definition window visibility defaults (#1353) * feat(core): add file drop handler (#1352) * fix: get correct resource dir in AppImge (fix #1308) (#1333) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat: build without proc macros (#1226) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri JS CLI (#1346) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(core): use Mutex in std to reduce async usage (#1350) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * fix(examples): build error (#1354) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * API example new ui (#1310) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps): remove `winres` from template (#1357) * refactor(core): add `unlisten`, `once` APIs to the event system (#1359) * fix(cli): use correct arg in `_blanks` links polyfill (#1362) * fix(api/http): correct types (#1360) * fix(api/http): correct types * Add changes * Update correct-http-api-types.md * chore(deps) Update Tauri JS CLI (#1364) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri API Definitions (#1363) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(tauri/webview): Use different user_data_path for Windows (#1365) (#1366) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * fix(config): serde_json::Value::Object takes a Map instead of HashMap (#1371) * fix(config): serde_json::Value::Object takes a Map instead of HashMap * fix: fmt * fix(tauri.js): init command properly building with manifests (#1374) * fix(tauri.js): init command properly building with manifests * fix: tests * feat(bundler): add visual c++ redistributable files with MSM (#1368) * refactor(core): reduce usage on arc and mutex (#1361) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(config): allow setting product name and version on tauri.conf.json (#1358) * feat: add current working directory to path api module (#1375) * refactor(core): move bundle script to /tauri crate (#1377) * refactor(core): move bundle script to /tauri crate * fix(cli): clippy * fix(core): tests * refactor(core): custom protocol URL uses the app identifier (#1376) * refactor(core): custom protocol URL uses the app identifier * fix: clippy * fix(tauri-api): remove .exe from app_name on windows (#1379) * chore(deps) Update Tauri API Definitions (#1384) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate tokio to 1.4 (#1383) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(cli): prmpt user before install deps in init (#1381) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update dependency rollup to v2.42.4 (#1386) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(cli): rewrite init command in Rust (#1382) Co-authored-by: nothingismagick <denjell@mailscript.com> * refactor(bundler): specific settings on dedicated structs, update README (#1380) * replace lazy_static uses with once_cell (#1391) * chore(deps) Update Tauri JS CLI (#1385) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(cli): rewrite info in Rust (#1389) * refactor(core): remove async from app hooks, add InvokeMessage type (#1392) * fix(cli): disable custom-protocol feature on dev command (#1393) * Fix extremely slow dev builds caused by embedding + compressing assets at compile time (#1395) * feat(bundler) code signing (#473) Co-authored-by: Rajiv Shah <rajivshah1@icloud.com> Co-authored-by: David Lemarier <david@lemarier.ca> * feat(cli): run beforeDev and beforeBuild in a shell, closes #1295 (#1399) * update to sharp 0.28.0 for cpu arm (m1) (#1404) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(cli): propagate args passed after `dev --`, closes #1406 (#1407) * refactor(api): use secure RNG, closes #1356 (#1398) * chore(deps) Update Tauri API Definitions (#1411) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate rfd to 0.2.2 (#1410) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri CLI (#1413) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri Bundler (#1412) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(core): rewrite shell execute API, closes #1229 (#1408) * chore(deps) Update dependency @rollup/plugin-commonjs to v18 (#1415) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri JS CLI (#1414) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix: asset resolution on debug mode * fix(core): ignore query string on custom protocol asset resolver (#1420) * wire up existing and adjust recipe configuration * merge dev * fix default app name * clean up vanillajs and proper pass args * use scaffe to copy the react templates * fix(api): remove cjs, rename .mjs to .js * chore: tauri.js dead code elim (#1422) * remove templates, only used it CTA * help command is empty, remove * delete files that aren't imported / required * set files array to ignore src and config files * remove unused deps * add arch notes for future ref * change file * allow specifying a binary * resolve last bits to reach scaffe * adjust vanilla js template dir path Co-authored-by: Sanket Chaudhari <chaudharisanket2000@gmail.com> * fix up cra scaffolding * remove none and rely on vanillajs * log shell commands * remove no recipe question branch * shift react template for better overwrite copying * update deps * simple readme * implement dep manager * pretty Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Noah Klayman <noahklayman@gmail.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> Co-authored-by: Lucas Fernandes Nogueira <lucasfernandesnog@gmail.com> Co-authored-by: chip <chip@chip.sh> Co-authored-by: Gabe Cohen <gcc3.14@gmail.com> Co-authored-by: Ngo Iok Ui (Wu Yu Wei) <wusyong9104@gmail.com> Co-authored-by: Alve Larsson <larsalvelarsson@gmail.com> Co-authored-by: Amr Bashir <48618675+amrbashir@users.noreply.github.com> Co-authored-by: Kid <44045911+kidonng@users.noreply.github.com> Co-authored-by: david <david@lemarier.ca> Co-authored-by: nothingismagick <denjell@mailscript.com> Co-authored-by: William <william@venner.io> Co-authored-by: Rajiv Shah <rajivshah1@icloud.com> Co-authored-by: Mehdi Rezaei <mehdiraized@gmail.com> Co-authored-by: Sanket Chaudhari <chaudharisanket2000@gmail.com>
2021-04-11 12:22:07 +03:00
b: "binary",
t: "tauri-path",
A: "app-name",
W: "window-title",
D: "dist-dir",
P: "dev-path",
r: "recipe",
},
boolean: ["h", "l", "ci"],
});
if (argv.help) {
printUsage();
return 0;
}
feat: create-tauri-app wiring (#1442) * chore(deps) Update Tauri JS CLI (#1319) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri Core (#1318) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri API (#1316) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate serde_json to 1.0.64 (#1315) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate once_cell to 1.7.2 (#1314) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate image to 0.23.14 (#1313) Co-authored-by: Renovate Bot <bot@renovateapp.com> * feat(cli/build): improve no distDir error message (#1306) * feat(cli/build): improve no distDir error message * chore: use Path's Display impl Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri API Definitions (#1317) Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(bundler/wix): install webview2 runtime (#1329) * feat(bundler/wix): install webview2 runtime * add changefile * chore(deps) Update Tauri API Definitions (major) (#1290) * chore(deps) Update Tauri API Definitions * chore: update to husky v5 * chore: remove husky script * chore: recreate lock file Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri JS CLI (#1291) Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * refactor(core): app hooks (#1332) * fix(api/window): rename manager export to appWindow (#1342) * feat(api/shell): allow open command to open files (#1341) * chore(deps) Update Tauri API Definitions (#1344) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate tokio to 1.3 (#1343) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate open to 1.6.0 (#1348) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(core): wrong usage of wry RPC on event API (#1351) * copy cli config definition window visibility defaults (#1353) * feat(core): add file drop handler (#1352) * fix: get correct resource dir in AppImge (fix #1308) (#1333) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat: build without proc macros (#1226) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri JS CLI (#1346) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(core): use Mutex in std to reduce async usage (#1350) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * fix(examples): build error (#1354) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * API example new ui (#1310) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps): remove `winres` from template (#1357) * refactor(core): add `unlisten`, `once` APIs to the event system (#1359) * fix(cli): use correct arg in `_blanks` links polyfill (#1362) * fix(api/http): correct types (#1360) * fix(api/http): correct types * Add changes * Update correct-http-api-types.md * chore(deps) Update Tauri JS CLI (#1364) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri API Definitions (#1363) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(tauri/webview): Use different user_data_path for Windows (#1365) (#1366) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * fix(config): serde_json::Value::Object takes a Map instead of HashMap (#1371) * fix(config): serde_json::Value::Object takes a Map instead of HashMap * fix: fmt * fix(tauri.js): init command properly building with manifests (#1374) * fix(tauri.js): init command properly building with manifests * fix: tests * feat(bundler): add visual c++ redistributable files with MSM (#1368) * refactor(core): reduce usage on arc and mutex (#1361) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(config): allow setting product name and version on tauri.conf.json (#1358) * feat: add current working directory to path api module (#1375) * refactor(core): move bundle script to /tauri crate (#1377) * refactor(core): move bundle script to /tauri crate * fix(cli): clippy * fix(core): tests * refactor(core): custom protocol URL uses the app identifier (#1376) * refactor(core): custom protocol URL uses the app identifier * fix: clippy * fix(tauri-api): remove .exe from app_name on windows (#1379) * chore(deps) Update Tauri API Definitions (#1384) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate tokio to 1.4 (#1383) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(cli): prmpt user before install deps in init (#1381) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update dependency rollup to v2.42.4 (#1386) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(cli): rewrite init command in Rust (#1382) Co-authored-by: nothingismagick <denjell@mailscript.com> * refactor(bundler): specific settings on dedicated structs, update README (#1380) * replace lazy_static uses with once_cell (#1391) * chore(deps) Update Tauri JS CLI (#1385) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(cli): rewrite info in Rust (#1389) * refactor(core): remove async from app hooks, add InvokeMessage type (#1392) * fix(cli): disable custom-protocol feature on dev command (#1393) * Fix extremely slow dev builds caused by embedding + compressing assets at compile time (#1395) * feat(bundler) code signing (#473) Co-authored-by: Rajiv Shah <rajivshah1@icloud.com> Co-authored-by: David Lemarier <david@lemarier.ca> * feat(cli): run beforeDev and beforeBuild in a shell, closes #1295 (#1399) * update to sharp 0.28.0 for cpu arm (m1) (#1404) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(cli): propagate args passed after `dev --`, closes #1406 (#1407) * refactor(api): use secure RNG, closes #1356 (#1398) * chore(deps) Update Tauri API Definitions (#1411) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate rfd to 0.2.2 (#1410) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri CLI (#1413) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri Bundler (#1412) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(core): rewrite shell execute API, closes #1229 (#1408) * chore(deps) Update dependency @rollup/plugin-commonjs to v18 (#1415) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri JS CLI (#1414) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix: asset resolution on debug mode * fix(core): ignore query string on custom protocol asset resolver (#1420) * wire up existing and adjust recipe configuration * merge dev * fix default app name * clean up vanillajs and proper pass args * use scaffe to copy the react templates * fix(api): remove cjs, rename .mjs to .js * chore: tauri.js dead code elim (#1422) * remove templates, only used it CTA * help command is empty, remove * delete files that aren't imported / required * set files array to ignore src and config files * remove unused deps * add arch notes for future ref * change file * allow specifying a binary * resolve last bits to reach scaffe * adjust vanilla js template dir path Co-authored-by: Sanket Chaudhari <chaudharisanket2000@gmail.com> * fix up cra scaffolding * remove none and rely on vanillajs * log shell commands * remove no recipe question branch * shift react template for better overwrite copying * update deps * simple readme * implement dep manager * pretty Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Noah Klayman <noahklayman@gmail.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> Co-authored-by: Lucas Fernandes Nogueira <lucasfernandesnog@gmail.com> Co-authored-by: chip <chip@chip.sh> Co-authored-by: Gabe Cohen <gcc3.14@gmail.com> Co-authored-by: Ngo Iok Ui (Wu Yu Wei) <wusyong9104@gmail.com> Co-authored-by: Alve Larsson <larsalvelarsson@gmail.com> Co-authored-by: Amr Bashir <48618675+amrbashir@users.noreply.github.com> Co-authored-by: Kid <44045911+kidonng@users.noreply.github.com> Co-authored-by: david <david@lemarier.ca> Co-authored-by: nothingismagick <denjell@mailscript.com> Co-authored-by: William <william@venner.io> Co-authored-by: Rajiv Shah <rajivshah1@icloud.com> Co-authored-by: Mehdi Rezaei <mehdiraized@gmail.com> Co-authored-by: Sanket Chaudhari <chaudharisanket2000@gmail.com>
2021-04-11 12:22:07 +03:00
if (argv.v) {
console.log(require("../package.json").version);
return false; // do this for node consumers and tests
}
if (argv.ci) {
feat: create-tauri-app wiring (#1442) * chore(deps) Update Tauri JS CLI (#1319) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri Core (#1318) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri API (#1316) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate serde_json to 1.0.64 (#1315) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate once_cell to 1.7.2 (#1314) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate image to 0.23.14 (#1313) Co-authored-by: Renovate Bot <bot@renovateapp.com> * feat(cli/build): improve no distDir error message (#1306) * feat(cli/build): improve no distDir error message * chore: use Path's Display impl Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri API Definitions (#1317) Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(bundler/wix): install webview2 runtime (#1329) * feat(bundler/wix): install webview2 runtime * add changefile * chore(deps) Update Tauri API Definitions (major) (#1290) * chore(deps) Update Tauri API Definitions * chore: update to husky v5 * chore: remove husky script * chore: recreate lock file Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri JS CLI (#1291) Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * refactor(core): app hooks (#1332) * fix(api/window): rename manager export to appWindow (#1342) * feat(api/shell): allow open command to open files (#1341) * chore(deps) Update Tauri API Definitions (#1344) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate tokio to 1.3 (#1343) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate open to 1.6.0 (#1348) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(core): wrong usage of wry RPC on event API (#1351) * copy cli config definition window visibility defaults (#1353) * feat(core): add file drop handler (#1352) * fix: get correct resource dir in AppImge (fix #1308) (#1333) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat: build without proc macros (#1226) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri JS CLI (#1346) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(core): use Mutex in std to reduce async usage (#1350) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * fix(examples): build error (#1354) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * API example new ui (#1310) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps): remove `winres` from template (#1357) * refactor(core): add `unlisten`, `once` APIs to the event system (#1359) * fix(cli): use correct arg in `_blanks` links polyfill (#1362) * fix(api/http): correct types (#1360) * fix(api/http): correct types * Add changes * Update correct-http-api-types.md * chore(deps) Update Tauri JS CLI (#1364) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri API Definitions (#1363) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(tauri/webview): Use different user_data_path for Windows (#1365) (#1366) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * fix(config): serde_json::Value::Object takes a Map instead of HashMap (#1371) * fix(config): serde_json::Value::Object takes a Map instead of HashMap * fix: fmt * fix(tauri.js): init command properly building with manifests (#1374) * fix(tauri.js): init command properly building with manifests * fix: tests * feat(bundler): add visual c++ redistributable files with MSM (#1368) * refactor(core): reduce usage on arc and mutex (#1361) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(config): allow setting product name and version on tauri.conf.json (#1358) * feat: add current working directory to path api module (#1375) * refactor(core): move bundle script to /tauri crate (#1377) * refactor(core): move bundle script to /tauri crate * fix(cli): clippy * fix(core): tests * refactor(core): custom protocol URL uses the app identifier (#1376) * refactor(core): custom protocol URL uses the app identifier * fix: clippy * fix(tauri-api): remove .exe from app_name on windows (#1379) * chore(deps) Update Tauri API Definitions (#1384) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate tokio to 1.4 (#1383) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(cli): prmpt user before install deps in init (#1381) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update dependency rollup to v2.42.4 (#1386) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(cli): rewrite init command in Rust (#1382) Co-authored-by: nothingismagick <denjell@mailscript.com> * refactor(bundler): specific settings on dedicated structs, update README (#1380) * replace lazy_static uses with once_cell (#1391) * chore(deps) Update Tauri JS CLI (#1385) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(cli): rewrite info in Rust (#1389) * refactor(core): remove async from app hooks, add InvokeMessage type (#1392) * fix(cli): disable custom-protocol feature on dev command (#1393) * Fix extremely slow dev builds caused by embedding + compressing assets at compile time (#1395) * feat(bundler) code signing (#473) Co-authored-by: Rajiv Shah <rajivshah1@icloud.com> Co-authored-by: David Lemarier <david@lemarier.ca> * feat(cli): run beforeDev and beforeBuild in a shell, closes #1295 (#1399) * update to sharp 0.28.0 for cpu arm (m1) (#1404) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(cli): propagate args passed after `dev --`, closes #1406 (#1407) * refactor(api): use secure RNG, closes #1356 (#1398) * chore(deps) Update Tauri API Definitions (#1411) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate rfd to 0.2.2 (#1410) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri CLI (#1413) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri Bundler (#1412) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(core): rewrite shell execute API, closes #1229 (#1408) * chore(deps) Update dependency @rollup/plugin-commonjs to v18 (#1415) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri JS CLI (#1414) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix: asset resolution on debug mode * fix(core): ignore query string on custom protocol asset resolver (#1420) * wire up existing and adjust recipe configuration * merge dev * fix default app name * clean up vanillajs and proper pass args * use scaffe to copy the react templates * fix(api): remove cjs, rename .mjs to .js * chore: tauri.js dead code elim (#1422) * remove templates, only used it CTA * help command is empty, remove * delete files that aren't imported / required * set files array to ignore src and config files * remove unused deps * add arch notes for future ref * change file * allow specifying a binary * resolve last bits to reach scaffe * adjust vanilla js template dir path Co-authored-by: Sanket Chaudhari <chaudharisanket2000@gmail.com> * fix up cra scaffolding * remove none and rely on vanillajs * log shell commands * remove no recipe question branch * shift react template for better overwrite copying * update deps * simple readme * implement dep manager * pretty Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Noah Klayman <noahklayman@gmail.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> Co-authored-by: Lucas Fernandes Nogueira <lucasfernandesnog@gmail.com> Co-authored-by: chip <chip@chip.sh> Co-authored-by: Gabe Cohen <gcc3.14@gmail.com> Co-authored-by: Ngo Iok Ui (Wu Yu Wei) <wusyong9104@gmail.com> Co-authored-by: Alve Larsson <larsalvelarsson@gmail.com> Co-authored-by: Amr Bashir <48618675+amrbashir@users.noreply.github.com> Co-authored-by: Kid <44045911+kidonng@users.noreply.github.com> Co-authored-by: david <david@lemarier.ca> Co-authored-by: nothingismagick <denjell@mailscript.com> Co-authored-by: William <william@venner.io> Co-authored-by: Rajiv Shah <rajivshah1@icloud.com> Co-authored-by: Mehdi Rezaei <mehdiraized@gmail.com> Co-authored-by: Sanket Chaudhari <chaudharisanket2000@gmail.com>
2021-04-11 12:22:07 +03:00
return runInit(argv);
} else {
feat: create-tauri-app wiring (#1442) * chore(deps) Update Tauri JS CLI (#1319) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri Core (#1318) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri API (#1316) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate serde_json to 1.0.64 (#1315) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate once_cell to 1.7.2 (#1314) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate image to 0.23.14 (#1313) Co-authored-by: Renovate Bot <bot@renovateapp.com> * feat(cli/build): improve no distDir error message (#1306) * feat(cli/build): improve no distDir error message * chore: use Path's Display impl Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri API Definitions (#1317) Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(bundler/wix): install webview2 runtime (#1329) * feat(bundler/wix): install webview2 runtime * add changefile * chore(deps) Update Tauri API Definitions (major) (#1290) * chore(deps) Update Tauri API Definitions * chore: update to husky v5 * chore: remove husky script * chore: recreate lock file Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri JS CLI (#1291) Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * refactor(core): app hooks (#1332) * fix(api/window): rename manager export to appWindow (#1342) * feat(api/shell): allow open command to open files (#1341) * chore(deps) Update Tauri API Definitions (#1344) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate tokio to 1.3 (#1343) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate open to 1.6.0 (#1348) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(core): wrong usage of wry RPC on event API (#1351) * copy cli config definition window visibility defaults (#1353) * feat(core): add file drop handler (#1352) * fix: get correct resource dir in AppImge (fix #1308) (#1333) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat: build without proc macros (#1226) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri JS CLI (#1346) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(core): use Mutex in std to reduce async usage (#1350) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * fix(examples): build error (#1354) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * API example new ui (#1310) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps): remove `winres` from template (#1357) * refactor(core): add `unlisten`, `once` APIs to the event system (#1359) * fix(cli): use correct arg in `_blanks` links polyfill (#1362) * fix(api/http): correct types (#1360) * fix(api/http): correct types * Add changes * Update correct-http-api-types.md * chore(deps) Update Tauri JS CLI (#1364) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri API Definitions (#1363) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(tauri/webview): Use different user_data_path for Windows (#1365) (#1366) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * fix(config): serde_json::Value::Object takes a Map instead of HashMap (#1371) * fix(config): serde_json::Value::Object takes a Map instead of HashMap * fix: fmt * fix(tauri.js): init command properly building with manifests (#1374) * fix(tauri.js): init command properly building with manifests * fix: tests * feat(bundler): add visual c++ redistributable files with MSM (#1368) * refactor(core): reduce usage on arc and mutex (#1361) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(config): allow setting product name and version on tauri.conf.json (#1358) * feat: add current working directory to path api module (#1375) * refactor(core): move bundle script to /tauri crate (#1377) * refactor(core): move bundle script to /tauri crate * fix(cli): clippy * fix(core): tests * refactor(core): custom protocol URL uses the app identifier (#1376) * refactor(core): custom protocol URL uses the app identifier * fix: clippy * fix(tauri-api): remove .exe from app_name on windows (#1379) * chore(deps) Update Tauri API Definitions (#1384) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate tokio to 1.4 (#1383) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(cli): prmpt user before install deps in init (#1381) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update dependency rollup to v2.42.4 (#1386) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(cli): rewrite init command in Rust (#1382) Co-authored-by: nothingismagick <denjell@mailscript.com> * refactor(bundler): specific settings on dedicated structs, update README (#1380) * replace lazy_static uses with once_cell (#1391) * chore(deps) Update Tauri JS CLI (#1385) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(cli): rewrite info in Rust (#1389) * refactor(core): remove async from app hooks, add InvokeMessage type (#1392) * fix(cli): disable custom-protocol feature on dev command (#1393) * Fix extremely slow dev builds caused by embedding + compressing assets at compile time (#1395) * feat(bundler) code signing (#473) Co-authored-by: Rajiv Shah <rajivshah1@icloud.com> Co-authored-by: David Lemarier <david@lemarier.ca> * feat(cli): run beforeDev and beforeBuild in a shell, closes #1295 (#1399) * update to sharp 0.28.0 for cpu arm (m1) (#1404) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(cli): propagate args passed after `dev --`, closes #1406 (#1407) * refactor(api): use secure RNG, closes #1356 (#1398) * chore(deps) Update Tauri API Definitions (#1411) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate rfd to 0.2.2 (#1410) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri CLI (#1413) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri Bundler (#1412) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(core): rewrite shell execute API, closes #1229 (#1408) * chore(deps) Update dependency @rollup/plugin-commonjs to v18 (#1415) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri JS CLI (#1414) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix: asset resolution on debug mode * fix(core): ignore query string on custom protocol asset resolver (#1420) * wire up existing and adjust recipe configuration * merge dev * fix default app name * clean up vanillajs and proper pass args * use scaffe to copy the react templates * fix(api): remove cjs, rename .mjs to .js * chore: tauri.js dead code elim (#1422) * remove templates, only used it CTA * help command is empty, remove * delete files that aren't imported / required * set files array to ignore src and config files * remove unused deps * add arch notes for future ref * change file * allow specifying a binary * resolve last bits to reach scaffe * adjust vanilla js template dir path Co-authored-by: Sanket Chaudhari <chaudharisanket2000@gmail.com> * fix up cra scaffolding * remove none and rely on vanillajs * log shell commands * remove no recipe question branch * shift react template for better overwrite copying * update deps * simple readme * implement dep manager * pretty Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Noah Klayman <noahklayman@gmail.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> Co-authored-by: Lucas Fernandes Nogueira <lucasfernandesnog@gmail.com> Co-authored-by: chip <chip@chip.sh> Co-authored-by: Gabe Cohen <gcc3.14@gmail.com> Co-authored-by: Ngo Iok Ui (Wu Yu Wei) <wusyong9104@gmail.com> Co-authored-by: Alve Larsson <larsalvelarsson@gmail.com> Co-authored-by: Amr Bashir <48618675+amrbashir@users.noreply.github.com> Co-authored-by: Kid <44045911+kidonng@users.noreply.github.com> Co-authored-by: david <david@lemarier.ca> Co-authored-by: nothingismagick <denjell@mailscript.com> Co-authored-by: William <william@venner.io> Co-authored-by: Rajiv Shah <rajivshah1@icloud.com> Co-authored-by: Mehdi Rezaei <mehdiraized@gmail.com> Co-authored-by: Sanket Chaudhari <chaudharisanket2000@gmail.com>
2021-04-11 12:22:07 +03:00
return getOptionsInteractive(argv).then((responses) =>
runInit(argv, responses)
);
}
feat: create-tauri-app wiring (#1442) * chore(deps) Update Tauri JS CLI (#1319) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri Core (#1318) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri API (#1316) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate serde_json to 1.0.64 (#1315) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate once_cell to 1.7.2 (#1314) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate image to 0.23.14 (#1313) Co-authored-by: Renovate Bot <bot@renovateapp.com> * feat(cli/build): improve no distDir error message (#1306) * feat(cli/build): improve no distDir error message * chore: use Path's Display impl Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri API Definitions (#1317) Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(bundler/wix): install webview2 runtime (#1329) * feat(bundler/wix): install webview2 runtime * add changefile * chore(deps) Update Tauri API Definitions (major) (#1290) * chore(deps) Update Tauri API Definitions * chore: update to husky v5 * chore: remove husky script * chore: recreate lock file Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri JS CLI (#1291) Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * refactor(core): app hooks (#1332) * fix(api/window): rename manager export to appWindow (#1342) * feat(api/shell): allow open command to open files (#1341) * chore(deps) Update Tauri API Definitions (#1344) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate tokio to 1.3 (#1343) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate open to 1.6.0 (#1348) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(core): wrong usage of wry RPC on event API (#1351) * copy cli config definition window visibility defaults (#1353) * feat(core): add file drop handler (#1352) * fix: get correct resource dir in AppImge (fix #1308) (#1333) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat: build without proc macros (#1226) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri JS CLI (#1346) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(core): use Mutex in std to reduce async usage (#1350) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * fix(examples): build error (#1354) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * API example new ui (#1310) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps): remove `winres` from template (#1357) * refactor(core): add `unlisten`, `once` APIs to the event system (#1359) * fix(cli): use correct arg in `_blanks` links polyfill (#1362) * fix(api/http): correct types (#1360) * fix(api/http): correct types * Add changes * Update correct-http-api-types.md * chore(deps) Update Tauri JS CLI (#1364) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri API Definitions (#1363) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(tauri/webview): Use different user_data_path for Windows (#1365) (#1366) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * fix(config): serde_json::Value::Object takes a Map instead of HashMap (#1371) * fix(config): serde_json::Value::Object takes a Map instead of HashMap * fix: fmt * fix(tauri.js): init command properly building with manifests (#1374) * fix(tauri.js): init command properly building with manifests * fix: tests * feat(bundler): add visual c++ redistributable files with MSM (#1368) * refactor(core): reduce usage on arc and mutex (#1361) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(config): allow setting product name and version on tauri.conf.json (#1358) * feat: add current working directory to path api module (#1375) * refactor(core): move bundle script to /tauri crate (#1377) * refactor(core): move bundle script to /tauri crate * fix(cli): clippy * fix(core): tests * refactor(core): custom protocol URL uses the app identifier (#1376) * refactor(core): custom protocol URL uses the app identifier * fix: clippy * fix(tauri-api): remove .exe from app_name on windows (#1379) * chore(deps) Update Tauri API Definitions (#1384) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate tokio to 1.4 (#1383) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(cli): prmpt user before install deps in init (#1381) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update dependency rollup to v2.42.4 (#1386) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(cli): rewrite init command in Rust (#1382) Co-authored-by: nothingismagick <denjell@mailscript.com> * refactor(bundler): specific settings on dedicated structs, update README (#1380) * replace lazy_static uses with once_cell (#1391) * chore(deps) Update Tauri JS CLI (#1385) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(cli): rewrite info in Rust (#1389) * refactor(core): remove async from app hooks, add InvokeMessage type (#1392) * fix(cli): disable custom-protocol feature on dev command (#1393) * Fix extremely slow dev builds caused by embedding + compressing assets at compile time (#1395) * feat(bundler) code signing (#473) Co-authored-by: Rajiv Shah <rajivshah1@icloud.com> Co-authored-by: David Lemarier <david@lemarier.ca> * feat(cli): run beforeDev and beforeBuild in a shell, closes #1295 (#1399) * update to sharp 0.28.0 for cpu arm (m1) (#1404) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(cli): propagate args passed after `dev --`, closes #1406 (#1407) * refactor(api): use secure RNG, closes #1356 (#1398) * chore(deps) Update Tauri API Definitions (#1411) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate rfd to 0.2.2 (#1410) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri CLI (#1413) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri Bundler (#1412) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(core): rewrite shell execute API, closes #1229 (#1408) * chore(deps) Update dependency @rollup/plugin-commonjs to v18 (#1415) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri JS CLI (#1414) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix: asset resolution on debug mode * fix(core): ignore query string on custom protocol asset resolver (#1420) * wire up existing and adjust recipe configuration * merge dev * fix default app name * clean up vanillajs and proper pass args * use scaffe to copy the react templates * fix(api): remove cjs, rename .mjs to .js * chore: tauri.js dead code elim (#1422) * remove templates, only used it CTA * help command is empty, remove * delete files that aren't imported / required * set files array to ignore src and config files * remove unused deps * add arch notes for future ref * change file * allow specifying a binary * resolve last bits to reach scaffe * adjust vanilla js template dir path Co-authored-by: Sanket Chaudhari <chaudharisanket2000@gmail.com> * fix up cra scaffolding * remove none and rely on vanillajs * log shell commands * remove no recipe question branch * shift react template for better overwrite copying * update deps * simple readme * implement dep manager * pretty Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Noah Klayman <noahklayman@gmail.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> Co-authored-by: Lucas Fernandes Nogueira <lucasfernandesnog@gmail.com> Co-authored-by: chip <chip@chip.sh> Co-authored-by: Gabe Cohen <gcc3.14@gmail.com> Co-authored-by: Ngo Iok Ui (Wu Yu Wei) <wusyong9104@gmail.com> Co-authored-by: Alve Larsson <larsalvelarsson@gmail.com> Co-authored-by: Amr Bashir <48618675+amrbashir@users.noreply.github.com> Co-authored-by: Kid <44045911+kidonng@users.noreply.github.com> Co-authored-by: david <david@lemarier.ca> Co-authored-by: nothingismagick <denjell@mailscript.com> Co-authored-by: William <william@venner.io> Co-authored-by: Rajiv Shah <rajivshah1@icloud.com> Co-authored-by: Mehdi Rezaei <mehdiraized@gmail.com> Co-authored-by: Sanket Chaudhari <chaudharisanket2000@gmail.com>
2021-04-11 12:22:07 +03:00
};
function printUsage() {
console.log(`
Description
feat: create-tauri-app wiring (#1442) * chore(deps) Update Tauri JS CLI (#1319) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri Core (#1318) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri API (#1316) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate serde_json to 1.0.64 (#1315) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate once_cell to 1.7.2 (#1314) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate image to 0.23.14 (#1313) Co-authored-by: Renovate Bot <bot@renovateapp.com> * feat(cli/build): improve no distDir error message (#1306) * feat(cli/build): improve no distDir error message * chore: use Path's Display impl Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri API Definitions (#1317) Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(bundler/wix): install webview2 runtime (#1329) * feat(bundler/wix): install webview2 runtime * add changefile * chore(deps) Update Tauri API Definitions (major) (#1290) * chore(deps) Update Tauri API Definitions * chore: update to husky v5 * chore: remove husky script * chore: recreate lock file Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri JS CLI (#1291) Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * refactor(core): app hooks (#1332) * fix(api/window): rename manager export to appWindow (#1342) * feat(api/shell): allow open command to open files (#1341) * chore(deps) Update Tauri API Definitions (#1344) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate tokio to 1.3 (#1343) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate open to 1.6.0 (#1348) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(core): wrong usage of wry RPC on event API (#1351) * copy cli config definition window visibility defaults (#1353) * feat(core): add file drop handler (#1352) * fix: get correct resource dir in AppImge (fix #1308) (#1333) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat: build without proc macros (#1226) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri JS CLI (#1346) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(core): use Mutex in std to reduce async usage (#1350) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * fix(examples): build error (#1354) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * API example new ui (#1310) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps): remove `winres` from template (#1357) * refactor(core): add `unlisten`, `once` APIs to the event system (#1359) * fix(cli): use correct arg in `_blanks` links polyfill (#1362) * fix(api/http): correct types (#1360) * fix(api/http): correct types * Add changes * Update correct-http-api-types.md * chore(deps) Update Tauri JS CLI (#1364) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri API Definitions (#1363) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(tauri/webview): Use different user_data_path for Windows (#1365) (#1366) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * fix(config): serde_json::Value::Object takes a Map instead of HashMap (#1371) * fix(config): serde_json::Value::Object takes a Map instead of HashMap * fix: fmt * fix(tauri.js): init command properly building with manifests (#1374) * fix(tauri.js): init command properly building with manifests * fix: tests * feat(bundler): add visual c++ redistributable files with MSM (#1368) * refactor(core): reduce usage on arc and mutex (#1361) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(config): allow setting product name and version on tauri.conf.json (#1358) * feat: add current working directory to path api module (#1375) * refactor(core): move bundle script to /tauri crate (#1377) * refactor(core): move bundle script to /tauri crate * fix(cli): clippy * fix(core): tests * refactor(core): custom protocol URL uses the app identifier (#1376) * refactor(core): custom protocol URL uses the app identifier * fix: clippy * fix(tauri-api): remove .exe from app_name on windows (#1379) * chore(deps) Update Tauri API Definitions (#1384) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate tokio to 1.4 (#1383) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(cli): prmpt user before install deps in init (#1381) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update dependency rollup to v2.42.4 (#1386) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(cli): rewrite init command in Rust (#1382) Co-authored-by: nothingismagick <denjell@mailscript.com> * refactor(bundler): specific settings on dedicated structs, update README (#1380) * replace lazy_static uses with once_cell (#1391) * chore(deps) Update Tauri JS CLI (#1385) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(cli): rewrite info in Rust (#1389) * refactor(core): remove async from app hooks, add InvokeMessage type (#1392) * fix(cli): disable custom-protocol feature on dev command (#1393) * Fix extremely slow dev builds caused by embedding + compressing assets at compile time (#1395) * feat(bundler) code signing (#473) Co-authored-by: Rajiv Shah <rajivshah1@icloud.com> Co-authored-by: David Lemarier <david@lemarier.ca> * feat(cli): run beforeDev and beforeBuild in a shell, closes #1295 (#1399) * update to sharp 0.28.0 for cpu arm (m1) (#1404) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(cli): propagate args passed after `dev --`, closes #1406 (#1407) * refactor(api): use secure RNG, closes #1356 (#1398) * chore(deps) Update Tauri API Definitions (#1411) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate rfd to 0.2.2 (#1410) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri CLI (#1413) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri Bundler (#1412) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(core): rewrite shell execute API, closes #1229 (#1408) * chore(deps) Update dependency @rollup/plugin-commonjs to v18 (#1415) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri JS CLI (#1414) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix: asset resolution on debug mode * fix(core): ignore query string on custom protocol asset resolver (#1420) * wire up existing and adjust recipe configuration * merge dev * fix default app name * clean up vanillajs and proper pass args * use scaffe to copy the react templates * fix(api): remove cjs, rename .mjs to .js * chore: tauri.js dead code elim (#1422) * remove templates, only used it CTA * help command is empty, remove * delete files that aren't imported / required * set files array to ignore src and config files * remove unused deps * add arch notes for future ref * change file * allow specifying a binary * resolve last bits to reach scaffe * adjust vanilla js template dir path Co-authored-by: Sanket Chaudhari <chaudharisanket2000@gmail.com> * fix up cra scaffolding * remove none and rely on vanillajs * log shell commands * remove no recipe question branch * shift react template for better overwrite copying * update deps * simple readme * implement dep manager * pretty Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Noah Klayman <noahklayman@gmail.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> Co-authored-by: Lucas Fernandes Nogueira <lucasfernandesnog@gmail.com> Co-authored-by: chip <chip@chip.sh> Co-authored-by: Gabe Cohen <gcc3.14@gmail.com> Co-authored-by: Ngo Iok Ui (Wu Yu Wei) <wusyong9104@gmail.com> Co-authored-by: Alve Larsson <larsalvelarsson@gmail.com> Co-authored-by: Amr Bashir <48618675+amrbashir@users.noreply.github.com> Co-authored-by: Kid <44045911+kidonng@users.noreply.github.com> Co-authored-by: david <david@lemarier.ca> Co-authored-by: nothingismagick <denjell@mailscript.com> Co-authored-by: William <william@venner.io> Co-authored-by: Rajiv Shah <rajivshah1@icloud.com> Co-authored-by: Mehdi Rezaei <mehdiraized@gmail.com> Co-authored-by: Sanket Chaudhari <chaudharisanket2000@gmail.com>
2021-04-11 12:22:07 +03:00
Starts a new tauri app from a "recipe" or pre-built template.
Usage
feat: create-tauri-app wiring (#1442) * chore(deps) Update Tauri JS CLI (#1319) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri Core (#1318) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri API (#1316) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate serde_json to 1.0.64 (#1315) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate once_cell to 1.7.2 (#1314) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate image to 0.23.14 (#1313) Co-authored-by: Renovate Bot <bot@renovateapp.com> * feat(cli/build): improve no distDir error message (#1306) * feat(cli/build): improve no distDir error message * chore: use Path's Display impl Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri API Definitions (#1317) Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(bundler/wix): install webview2 runtime (#1329) * feat(bundler/wix): install webview2 runtime * add changefile * chore(deps) Update Tauri API Definitions (major) (#1290) * chore(deps) Update Tauri API Definitions * chore: update to husky v5 * chore: remove husky script * chore: recreate lock file Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri JS CLI (#1291) Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * refactor(core): app hooks (#1332) * fix(api/window): rename manager export to appWindow (#1342) * feat(api/shell): allow open command to open files (#1341) * chore(deps) Update Tauri API Definitions (#1344) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate tokio to 1.3 (#1343) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate open to 1.6.0 (#1348) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(core): wrong usage of wry RPC on event API (#1351) * copy cli config definition window visibility defaults (#1353) * feat(core): add file drop handler (#1352) * fix: get correct resource dir in AppImge (fix #1308) (#1333) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat: build without proc macros (#1226) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri JS CLI (#1346) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(core): use Mutex in std to reduce async usage (#1350) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * fix(examples): build error (#1354) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * API example new ui (#1310) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps): remove `winres` from template (#1357) * refactor(core): add `unlisten`, `once` APIs to the event system (#1359) * fix(cli): use correct arg in `_blanks` links polyfill (#1362) * fix(api/http): correct types (#1360) * fix(api/http): correct types * Add changes * Update correct-http-api-types.md * chore(deps) Update Tauri JS CLI (#1364) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri API Definitions (#1363) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(tauri/webview): Use different user_data_path for Windows (#1365) (#1366) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * fix(config): serde_json::Value::Object takes a Map instead of HashMap (#1371) * fix(config): serde_json::Value::Object takes a Map instead of HashMap * fix: fmt * fix(tauri.js): init command properly building with manifests (#1374) * fix(tauri.js): init command properly building with manifests * fix: tests * feat(bundler): add visual c++ redistributable files with MSM (#1368) * refactor(core): reduce usage on arc and mutex (#1361) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(config): allow setting product name and version on tauri.conf.json (#1358) * feat: add current working directory to path api module (#1375) * refactor(core): move bundle script to /tauri crate (#1377) * refactor(core): move bundle script to /tauri crate * fix(cli): clippy * fix(core): tests * refactor(core): custom protocol URL uses the app identifier (#1376) * refactor(core): custom protocol URL uses the app identifier * fix: clippy * fix(tauri-api): remove .exe from app_name on windows (#1379) * chore(deps) Update Tauri API Definitions (#1384) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate tokio to 1.4 (#1383) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(cli): prmpt user before install deps in init (#1381) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update dependency rollup to v2.42.4 (#1386) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(cli): rewrite init command in Rust (#1382) Co-authored-by: nothingismagick <denjell@mailscript.com> * refactor(bundler): specific settings on dedicated structs, update README (#1380) * replace lazy_static uses with once_cell (#1391) * chore(deps) Update Tauri JS CLI (#1385) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(cli): rewrite info in Rust (#1389) * refactor(core): remove async from app hooks, add InvokeMessage type (#1392) * fix(cli): disable custom-protocol feature on dev command (#1393) * Fix extremely slow dev builds caused by embedding + compressing assets at compile time (#1395) * feat(bundler) code signing (#473) Co-authored-by: Rajiv Shah <rajivshah1@icloud.com> Co-authored-by: David Lemarier <david@lemarier.ca> * feat(cli): run beforeDev and beforeBuild in a shell, closes #1295 (#1399) * update to sharp 0.28.0 for cpu arm (m1) (#1404) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(cli): propagate args passed after `dev --`, closes #1406 (#1407) * refactor(api): use secure RNG, closes #1356 (#1398) * chore(deps) Update Tauri API Definitions (#1411) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate rfd to 0.2.2 (#1410) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri CLI (#1413) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri Bundler (#1412) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(core): rewrite shell execute API, closes #1229 (#1408) * chore(deps) Update dependency @rollup/plugin-commonjs to v18 (#1415) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri JS CLI (#1414) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix: asset resolution on debug mode * fix(core): ignore query string on custom protocol asset resolver (#1420) * wire up existing and adjust recipe configuration * merge dev * fix default app name * clean up vanillajs and proper pass args * use scaffe to copy the react templates * fix(api): remove cjs, rename .mjs to .js * chore: tauri.js dead code elim (#1422) * remove templates, only used it CTA * help command is empty, remove * delete files that aren't imported / required * set files array to ignore src and config files * remove unused deps * add arch notes for future ref * change file * allow specifying a binary * resolve last bits to reach scaffe * adjust vanilla js template dir path Co-authored-by: Sanket Chaudhari <chaudharisanket2000@gmail.com> * fix up cra scaffolding * remove none and rely on vanillajs * log shell commands * remove no recipe question branch * shift react template for better overwrite copying * update deps * simple readme * implement dep manager * pretty Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Noah Klayman <noahklayman@gmail.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> Co-authored-by: Lucas Fernandes Nogueira <lucasfernandesnog@gmail.com> Co-authored-by: chip <chip@chip.sh> Co-authored-by: Gabe Cohen <gcc3.14@gmail.com> Co-authored-by: Ngo Iok Ui (Wu Yu Wei) <wusyong9104@gmail.com> Co-authored-by: Alve Larsson <larsalvelarsson@gmail.com> Co-authored-by: Amr Bashir <48618675+amrbashir@users.noreply.github.com> Co-authored-by: Kid <44045911+kidonng@users.noreply.github.com> Co-authored-by: david <david@lemarier.ca> Co-authored-by: nothingismagick <denjell@mailscript.com> Co-authored-by: William <william@venner.io> Co-authored-by: Rajiv Shah <rajivshah1@icloud.com> Co-authored-by: Mehdi Rezaei <mehdiraized@gmail.com> Co-authored-by: Sanket Chaudhari <chaudharisanket2000@gmail.com>
2021-04-11 12:22:07 +03:00
$ yarn create tauri-app <app-name> # npm create-tauri-app <app-name>
Options
--help, -h Displays this message
feat: create-tauri-app wiring (#1442) * chore(deps) Update Tauri JS CLI (#1319) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri Core (#1318) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri API (#1316) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate serde_json to 1.0.64 (#1315) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate once_cell to 1.7.2 (#1314) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate image to 0.23.14 (#1313) Co-authored-by: Renovate Bot <bot@renovateapp.com> * feat(cli/build): improve no distDir error message (#1306) * feat(cli/build): improve no distDir error message * chore: use Path's Display impl Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri API Definitions (#1317) Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(bundler/wix): install webview2 runtime (#1329) * feat(bundler/wix): install webview2 runtime * add changefile * chore(deps) Update Tauri API Definitions (major) (#1290) * chore(deps) Update Tauri API Definitions * chore: update to husky v5 * chore: remove husky script * chore: recreate lock file Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri JS CLI (#1291) Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * refactor(core): app hooks (#1332) * fix(api/window): rename manager export to appWindow (#1342) * feat(api/shell): allow open command to open files (#1341) * chore(deps) Update Tauri API Definitions (#1344) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate tokio to 1.3 (#1343) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate open to 1.6.0 (#1348) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(core): wrong usage of wry RPC on event API (#1351) * copy cli config definition window visibility defaults (#1353) * feat(core): add file drop handler (#1352) * fix: get correct resource dir in AppImge (fix #1308) (#1333) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat: build without proc macros (#1226) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri JS CLI (#1346) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(core): use Mutex in std to reduce async usage (#1350) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * fix(examples): build error (#1354) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * API example new ui (#1310) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps): remove `winres` from template (#1357) * refactor(core): add `unlisten`, `once` APIs to the event system (#1359) * fix(cli): use correct arg in `_blanks` links polyfill (#1362) * fix(api/http): correct types (#1360) * fix(api/http): correct types * Add changes * Update correct-http-api-types.md * chore(deps) Update Tauri JS CLI (#1364) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri API Definitions (#1363) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(tauri/webview): Use different user_data_path for Windows (#1365) (#1366) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * fix(config): serde_json::Value::Object takes a Map instead of HashMap (#1371) * fix(config): serde_json::Value::Object takes a Map instead of HashMap * fix: fmt * fix(tauri.js): init command properly building with manifests (#1374) * fix(tauri.js): init command properly building with manifests * fix: tests * feat(bundler): add visual c++ redistributable files with MSM (#1368) * refactor(core): reduce usage on arc and mutex (#1361) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(config): allow setting product name and version on tauri.conf.json (#1358) * feat: add current working directory to path api module (#1375) * refactor(core): move bundle script to /tauri crate (#1377) * refactor(core): move bundle script to /tauri crate * fix(cli): clippy * fix(core): tests * refactor(core): custom protocol URL uses the app identifier (#1376) * refactor(core): custom protocol URL uses the app identifier * fix: clippy * fix(tauri-api): remove .exe from app_name on windows (#1379) * chore(deps) Update Tauri API Definitions (#1384) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate tokio to 1.4 (#1383) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(cli): prmpt user before install deps in init (#1381) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update dependency rollup to v2.42.4 (#1386) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(cli): rewrite init command in Rust (#1382) Co-authored-by: nothingismagick <denjell@mailscript.com> * refactor(bundler): specific settings on dedicated structs, update README (#1380) * replace lazy_static uses with once_cell (#1391) * chore(deps) Update Tauri JS CLI (#1385) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(cli): rewrite info in Rust (#1389) * refactor(core): remove async from app hooks, add InvokeMessage type (#1392) * fix(cli): disable custom-protocol feature on dev command (#1393) * Fix extremely slow dev builds caused by embedding + compressing assets at compile time (#1395) * feat(bundler) code signing (#473) Co-authored-by: Rajiv Shah <rajivshah1@icloud.com> Co-authored-by: David Lemarier <david@lemarier.ca> * feat(cli): run beforeDev and beforeBuild in a shell, closes #1295 (#1399) * update to sharp 0.28.0 for cpu arm (m1) (#1404) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(cli): propagate args passed after `dev --`, closes #1406 (#1407) * refactor(api): use secure RNG, closes #1356 (#1398) * chore(deps) Update Tauri API Definitions (#1411) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate rfd to 0.2.2 (#1410) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri CLI (#1413) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri Bundler (#1412) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(core): rewrite shell execute API, closes #1229 (#1408) * chore(deps) Update dependency @rollup/plugin-commonjs to v18 (#1415) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri JS CLI (#1414) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix: asset resolution on debug mode * fix(core): ignore query string on custom protocol asset resolver (#1420) * wire up existing and adjust recipe configuration * merge dev * fix default app name * clean up vanillajs and proper pass args * use scaffe to copy the react templates * fix(api): remove cjs, rename .mjs to .js * chore: tauri.js dead code elim (#1422) * remove templates, only used it CTA * help command is empty, remove * delete files that aren't imported / required * set files array to ignore src and config files * remove unused deps * add arch notes for future ref * change file * allow specifying a binary * resolve last bits to reach scaffe * adjust vanilla js template dir path Co-authored-by: Sanket Chaudhari <chaudharisanket2000@gmail.com> * fix up cra scaffolding * remove none and rely on vanillajs * log shell commands * remove no recipe question branch * shift react template for better overwrite copying * update deps * simple readme * implement dep manager * pretty Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Noah Klayman <noahklayman@gmail.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> Co-authored-by: Lucas Fernandes Nogueira <lucasfernandesnog@gmail.com> Co-authored-by: chip <chip@chip.sh> Co-authored-by: Gabe Cohen <gcc3.14@gmail.com> Co-authored-by: Ngo Iok Ui (Wu Yu Wei) <wusyong9104@gmail.com> Co-authored-by: Alve Larsson <larsalvelarsson@gmail.com> Co-authored-by: Amr Bashir <48618675+amrbashir@users.noreply.github.com> Co-authored-by: Kid <44045911+kidonng@users.noreply.github.com> Co-authored-by: david <david@lemarier.ca> Co-authored-by: nothingismagick <denjell@mailscript.com> Co-authored-by: William <william@venner.io> Co-authored-by: Rajiv Shah <rajivshah1@icloud.com> Co-authored-by: Mehdi Rezaei <mehdiraized@gmail.com> Co-authored-by: Sanket Chaudhari <chaudharisanket2000@gmail.com>
2021-04-11 12:22:07 +03:00
-v, --version Displays the Tauri CLI version
--ci Skip prompts
--force, -f Force init to overwrite [conf|template|all]
--log, -l Logging [boolean]
--manager, -d Set package manager to use [npm|yarn]
--directory, -d Set target directory for init
feat: create-tauri-app wiring (#1442) * chore(deps) Update Tauri JS CLI (#1319) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri Core (#1318) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri API (#1316) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate serde_json to 1.0.64 (#1315) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate once_cell to 1.7.2 (#1314) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate image to 0.23.14 (#1313) Co-authored-by: Renovate Bot <bot@renovateapp.com> * feat(cli/build): improve no distDir error message (#1306) * feat(cli/build): improve no distDir error message * chore: use Path's Display impl Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri API Definitions (#1317) Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(bundler/wix): install webview2 runtime (#1329) * feat(bundler/wix): install webview2 runtime * add changefile * chore(deps) Update Tauri API Definitions (major) (#1290) * chore(deps) Update Tauri API Definitions * chore: update to husky v5 * chore: remove husky script * chore: recreate lock file Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri JS CLI (#1291) Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * refactor(core): app hooks (#1332) * fix(api/window): rename manager export to appWindow (#1342) * feat(api/shell): allow open command to open files (#1341) * chore(deps) Update Tauri API Definitions (#1344) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate tokio to 1.3 (#1343) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate open to 1.6.0 (#1348) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(core): wrong usage of wry RPC on event API (#1351) * copy cli config definition window visibility defaults (#1353) * feat(core): add file drop handler (#1352) * fix: get correct resource dir in AppImge (fix #1308) (#1333) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat: build without proc macros (#1226) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri JS CLI (#1346) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(core): use Mutex in std to reduce async usage (#1350) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * fix(examples): build error (#1354) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * API example new ui (#1310) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps): remove `winres` from template (#1357) * refactor(core): add `unlisten`, `once` APIs to the event system (#1359) * fix(cli): use correct arg in `_blanks` links polyfill (#1362) * fix(api/http): correct types (#1360) * fix(api/http): correct types * Add changes * Update correct-http-api-types.md * chore(deps) Update Tauri JS CLI (#1364) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri API Definitions (#1363) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(tauri/webview): Use different user_data_path for Windows (#1365) (#1366) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * fix(config): serde_json::Value::Object takes a Map instead of HashMap (#1371) * fix(config): serde_json::Value::Object takes a Map instead of HashMap * fix: fmt * fix(tauri.js): init command properly building with manifests (#1374) * fix(tauri.js): init command properly building with manifests * fix: tests * feat(bundler): add visual c++ redistributable files with MSM (#1368) * refactor(core): reduce usage on arc and mutex (#1361) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(config): allow setting product name and version on tauri.conf.json (#1358) * feat: add current working directory to path api module (#1375) * refactor(core): move bundle script to /tauri crate (#1377) * refactor(core): move bundle script to /tauri crate * fix(cli): clippy * fix(core): tests * refactor(core): custom protocol URL uses the app identifier (#1376) * refactor(core): custom protocol URL uses the app identifier * fix: clippy * fix(tauri-api): remove .exe from app_name on windows (#1379) * chore(deps) Update Tauri API Definitions (#1384) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate tokio to 1.4 (#1383) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(cli): prmpt user before install deps in init (#1381) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update dependency rollup to v2.42.4 (#1386) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(cli): rewrite init command in Rust (#1382) Co-authored-by: nothingismagick <denjell@mailscript.com> * refactor(bundler): specific settings on dedicated structs, update README (#1380) * replace lazy_static uses with once_cell (#1391) * chore(deps) Update Tauri JS CLI (#1385) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(cli): rewrite info in Rust (#1389) * refactor(core): remove async from app hooks, add InvokeMessage type (#1392) * fix(cli): disable custom-protocol feature on dev command (#1393) * Fix extremely slow dev builds caused by embedding + compressing assets at compile time (#1395) * feat(bundler) code signing (#473) Co-authored-by: Rajiv Shah <rajivshah1@icloud.com> Co-authored-by: David Lemarier <david@lemarier.ca> * feat(cli): run beforeDev and beforeBuild in a shell, closes #1295 (#1399) * update to sharp 0.28.0 for cpu arm (m1) (#1404) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(cli): propagate args passed after `dev --`, closes #1406 (#1407) * refactor(api): use secure RNG, closes #1356 (#1398) * chore(deps) Update Tauri API Definitions (#1411) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate rfd to 0.2.2 (#1410) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri CLI (#1413) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri Bundler (#1412) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(core): rewrite shell execute API, closes #1229 (#1408) * chore(deps) Update dependency @rollup/plugin-commonjs to v18 (#1415) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri JS CLI (#1414) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix: asset resolution on debug mode * fix(core): ignore query string on custom protocol asset resolver (#1420) * wire up existing and adjust recipe configuration * merge dev * fix default app name * clean up vanillajs and proper pass args * use scaffe to copy the react templates * fix(api): remove cjs, rename .mjs to .js * chore: tauri.js dead code elim (#1422) * remove templates, only used it CTA * help command is empty, remove * delete files that aren't imported / required * set files array to ignore src and config files * remove unused deps * add arch notes for future ref * change file * allow specifying a binary * resolve last bits to reach scaffe * adjust vanilla js template dir path Co-authored-by: Sanket Chaudhari <chaudharisanket2000@gmail.com> * fix up cra scaffolding * remove none and rely on vanillajs * log shell commands * remove no recipe question branch * shift react template for better overwrite copying * update deps * simple readme * implement dep manager * pretty Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Noah Klayman <noahklayman@gmail.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> Co-authored-by: Lucas Fernandes Nogueira <lucasfernandesnog@gmail.com> Co-authored-by: chip <chip@chip.sh> Co-authored-by: Gabe Cohen <gcc3.14@gmail.com> Co-authored-by: Ngo Iok Ui (Wu Yu Wei) <wusyong9104@gmail.com> Co-authored-by: Alve Larsson <larsalvelarsson@gmail.com> Co-authored-by: Amr Bashir <48618675+amrbashir@users.noreply.github.com> Co-authored-by: Kid <44045911+kidonng@users.noreply.github.com> Co-authored-by: david <david@lemarier.ca> Co-authored-by: nothingismagick <denjell@mailscript.com> Co-authored-by: William <william@venner.io> Co-authored-by: Rajiv Shah <rajivshah1@icloud.com> Co-authored-by: Mehdi Rezaei <mehdiraized@gmail.com> Co-authored-by: Sanket Chaudhari <chaudharisanket2000@gmail.com>
2021-04-11 12:22:07 +03:00
--binary, -b Optional path to a tauri binary from which to run init
--app-name, -A Name of your Tauri application
--window-title, -W Window title of your Tauri application
--dist-dir, -D Web assets location, relative to <project-dir>/src-tauri
--dev-path, -P Url of your dev server
--recipe, -r Add UI framework recipe. None by default.
Supported recipes: [${recipeShortNames.join("|")}]
`);
}
const getOptionsInteractive = (argv) => {
feat: create-tauri-app wiring (#1442) * chore(deps) Update Tauri JS CLI (#1319) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri Core (#1318) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri API (#1316) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate serde_json to 1.0.64 (#1315) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate once_cell to 1.7.2 (#1314) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate image to 0.23.14 (#1313) Co-authored-by: Renovate Bot <bot@renovateapp.com> * feat(cli/build): improve no distDir error message (#1306) * feat(cli/build): improve no distDir error message * chore: use Path's Display impl Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri API Definitions (#1317) Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(bundler/wix): install webview2 runtime (#1329) * feat(bundler/wix): install webview2 runtime * add changefile * chore(deps) Update Tauri API Definitions (major) (#1290) * chore(deps) Update Tauri API Definitions * chore: update to husky v5 * chore: remove husky script * chore: recreate lock file Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri JS CLI (#1291) Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * refactor(core): app hooks (#1332) * fix(api/window): rename manager export to appWindow (#1342) * feat(api/shell): allow open command to open files (#1341) * chore(deps) Update Tauri API Definitions (#1344) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate tokio to 1.3 (#1343) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate open to 1.6.0 (#1348) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(core): wrong usage of wry RPC on event API (#1351) * copy cli config definition window visibility defaults (#1353) * feat(core): add file drop handler (#1352) * fix: get correct resource dir in AppImge (fix #1308) (#1333) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat: build without proc macros (#1226) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri JS CLI (#1346) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(core): use Mutex in std to reduce async usage (#1350) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * fix(examples): build error (#1354) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * API example new ui (#1310) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps): remove `winres` from template (#1357) * refactor(core): add `unlisten`, `once` APIs to the event system (#1359) * fix(cli): use correct arg in `_blanks` links polyfill (#1362) * fix(api/http): correct types (#1360) * fix(api/http): correct types * Add changes * Update correct-http-api-types.md * chore(deps) Update Tauri JS CLI (#1364) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri API Definitions (#1363) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(tauri/webview): Use different user_data_path for Windows (#1365) (#1366) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * fix(config): serde_json::Value::Object takes a Map instead of HashMap (#1371) * fix(config): serde_json::Value::Object takes a Map instead of HashMap * fix: fmt * fix(tauri.js): init command properly building with manifests (#1374) * fix(tauri.js): init command properly building with manifests * fix: tests * feat(bundler): add visual c++ redistributable files with MSM (#1368) * refactor(core): reduce usage on arc and mutex (#1361) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(config): allow setting product name and version on tauri.conf.json (#1358) * feat: add current working directory to path api module (#1375) * refactor(core): move bundle script to /tauri crate (#1377) * refactor(core): move bundle script to /tauri crate * fix(cli): clippy * fix(core): tests * refactor(core): custom protocol URL uses the app identifier (#1376) * refactor(core): custom protocol URL uses the app identifier * fix: clippy * fix(tauri-api): remove .exe from app_name on windows (#1379) * chore(deps) Update Tauri API Definitions (#1384) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate tokio to 1.4 (#1383) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(cli): prmpt user before install deps in init (#1381) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update dependency rollup to v2.42.4 (#1386) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(cli): rewrite init command in Rust (#1382) Co-authored-by: nothingismagick <denjell@mailscript.com> * refactor(bundler): specific settings on dedicated structs, update README (#1380) * replace lazy_static uses with once_cell (#1391) * chore(deps) Update Tauri JS CLI (#1385) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(cli): rewrite info in Rust (#1389) * refactor(core): remove async from app hooks, add InvokeMessage type (#1392) * fix(cli): disable custom-protocol feature on dev command (#1393) * Fix extremely slow dev builds caused by embedding + compressing assets at compile time (#1395) * feat(bundler) code signing (#473) Co-authored-by: Rajiv Shah <rajivshah1@icloud.com> Co-authored-by: David Lemarier <david@lemarier.ca> * feat(cli): run beforeDev and beforeBuild in a shell, closes #1295 (#1399) * update to sharp 0.28.0 for cpu arm (m1) (#1404) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(cli): propagate args passed after `dev --`, closes #1406 (#1407) * refactor(api): use secure RNG, closes #1356 (#1398) * chore(deps) Update Tauri API Definitions (#1411) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate rfd to 0.2.2 (#1410) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri CLI (#1413) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri Bundler (#1412) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(core): rewrite shell execute API, closes #1229 (#1408) * chore(deps) Update dependency @rollup/plugin-commonjs to v18 (#1415) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri JS CLI (#1414) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix: asset resolution on debug mode * fix(core): ignore query string on custom protocol asset resolver (#1420) * wire up existing and adjust recipe configuration * merge dev * fix default app name * clean up vanillajs and proper pass args * use scaffe to copy the react templates * fix(api): remove cjs, rename .mjs to .js * chore: tauri.js dead code elim (#1422) * remove templates, only used it CTA * help command is empty, remove * delete files that aren't imported / required * set files array to ignore src and config files * remove unused deps * add arch notes for future ref * change file * allow specifying a binary * resolve last bits to reach scaffe * adjust vanilla js template dir path Co-authored-by: Sanket Chaudhari <chaudharisanket2000@gmail.com> * fix up cra scaffolding * remove none and rely on vanillajs * log shell commands * remove no recipe question branch * shift react template for better overwrite copying * update deps * simple readme * implement dep manager * pretty Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Noah Klayman <noahklayman@gmail.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> Co-authored-by: Lucas Fernandes Nogueira <lucasfernandesnog@gmail.com> Co-authored-by: chip <chip@chip.sh> Co-authored-by: Gabe Cohen <gcc3.14@gmail.com> Co-authored-by: Ngo Iok Ui (Wu Yu Wei) <wusyong9104@gmail.com> Co-authored-by: Alve Larsson <larsalvelarsson@gmail.com> Co-authored-by: Amr Bashir <48618675+amrbashir@users.noreply.github.com> Co-authored-by: Kid <44045911+kidonng@users.noreply.github.com> Co-authored-by: david <david@lemarier.ca> Co-authored-by: nothingismagick <denjell@mailscript.com> Co-authored-by: William <william@venner.io> Co-authored-by: Rajiv Shah <rajivshah1@icloud.com> Co-authored-by: Mehdi Rezaei <mehdiraized@gmail.com> Co-authored-by: Sanket Chaudhari <chaudharisanket2000@gmail.com>
2021-04-11 12:22:07 +03:00
let defaultAppName = argv.A || "tauri-app";
return inquirer
.prompt([
{
type: "input",
name: "appName",
message: "What is your app name?",
default: defaultAppName,
when: !argv.A,
},
{
type: "input",
name: "tauri.window.title",
message: "What should the window title be?",
default: "Tauri App",
when: () => !argv.W,
},
{
type: "list",
name: "recipeName",
message: "Would you like to add a UI recipe?",
choices: recipeDescriptiveNames,
default: "No recipe",
when: () => !argv.r,
},
])
.catch((error) => {
if (error.isTtyError) {
// Prompt couldn't be rendered in the current environment
console.log(
"It appears your terminal does not support interactive prompts. Using default values."
);
runInit();
} else {
// Something else went wrong
console.error("An unknown error occurred:", error);
}
});
};
async function runInit(argv, config = {}) {
feat: create-tauri-app wiring (#1442) * chore(deps) Update Tauri JS CLI (#1319) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri Core (#1318) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri API (#1316) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate serde_json to 1.0.64 (#1315) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate once_cell to 1.7.2 (#1314) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate image to 0.23.14 (#1313) Co-authored-by: Renovate Bot <bot@renovateapp.com> * feat(cli/build): improve no distDir error message (#1306) * feat(cli/build): improve no distDir error message * chore: use Path's Display impl Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri API Definitions (#1317) Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(bundler/wix): install webview2 runtime (#1329) * feat(bundler/wix): install webview2 runtime * add changefile * chore(deps) Update Tauri API Definitions (major) (#1290) * chore(deps) Update Tauri API Definitions * chore: update to husky v5 * chore: remove husky script * chore: recreate lock file Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri JS CLI (#1291) Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * refactor(core): app hooks (#1332) * fix(api/window): rename manager export to appWindow (#1342) * feat(api/shell): allow open command to open files (#1341) * chore(deps) Update Tauri API Definitions (#1344) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate tokio to 1.3 (#1343) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate open to 1.6.0 (#1348) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(core): wrong usage of wry RPC on event API (#1351) * copy cli config definition window visibility defaults (#1353) * feat(core): add file drop handler (#1352) * fix: get correct resource dir in AppImge (fix #1308) (#1333) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat: build without proc macros (#1226) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri JS CLI (#1346) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(core): use Mutex in std to reduce async usage (#1350) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * fix(examples): build error (#1354) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * API example new ui (#1310) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps): remove `winres` from template (#1357) * refactor(core): add `unlisten`, `once` APIs to the event system (#1359) * fix(cli): use correct arg in `_blanks` links polyfill (#1362) * fix(api/http): correct types (#1360) * fix(api/http): correct types * Add changes * Update correct-http-api-types.md * chore(deps) Update Tauri JS CLI (#1364) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri API Definitions (#1363) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(tauri/webview): Use different user_data_path for Windows (#1365) (#1366) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * fix(config): serde_json::Value::Object takes a Map instead of HashMap (#1371) * fix(config): serde_json::Value::Object takes a Map instead of HashMap * fix: fmt * fix(tauri.js): init command properly building with manifests (#1374) * fix(tauri.js): init command properly building with manifests * fix: tests * feat(bundler): add visual c++ redistributable files with MSM (#1368) * refactor(core): reduce usage on arc and mutex (#1361) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(config): allow setting product name and version on tauri.conf.json (#1358) * feat: add current working directory to path api module (#1375) * refactor(core): move bundle script to /tauri crate (#1377) * refactor(core): move bundle script to /tauri crate * fix(cli): clippy * fix(core): tests * refactor(core): custom protocol URL uses the app identifier (#1376) * refactor(core): custom protocol URL uses the app identifier * fix: clippy * fix(tauri-api): remove .exe from app_name on windows (#1379) * chore(deps) Update Tauri API Definitions (#1384) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate tokio to 1.4 (#1383) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(cli): prmpt user before install deps in init (#1381) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update dependency rollup to v2.42.4 (#1386) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(cli): rewrite init command in Rust (#1382) Co-authored-by: nothingismagick <denjell@mailscript.com> * refactor(bundler): specific settings on dedicated structs, update README (#1380) * replace lazy_static uses with once_cell (#1391) * chore(deps) Update Tauri JS CLI (#1385) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(cli): rewrite info in Rust (#1389) * refactor(core): remove async from app hooks, add InvokeMessage type (#1392) * fix(cli): disable custom-protocol feature on dev command (#1393) * Fix extremely slow dev builds caused by embedding + compressing assets at compile time (#1395) * feat(bundler) code signing (#473) Co-authored-by: Rajiv Shah <rajivshah1@icloud.com> Co-authored-by: David Lemarier <david@lemarier.ca> * feat(cli): run beforeDev and beforeBuild in a shell, closes #1295 (#1399) * update to sharp 0.28.0 for cpu arm (m1) (#1404) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(cli): propagate args passed after `dev --`, closes #1406 (#1407) * refactor(api): use secure RNG, closes #1356 (#1398) * chore(deps) Update Tauri API Definitions (#1411) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate rfd to 0.2.2 (#1410) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri CLI (#1413) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri Bundler (#1412) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(core): rewrite shell execute API, closes #1229 (#1408) * chore(deps) Update dependency @rollup/plugin-commonjs to v18 (#1415) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri JS CLI (#1414) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix: asset resolution on debug mode * fix(core): ignore query string on custom protocol asset resolver (#1420) * wire up existing and adjust recipe configuration * merge dev * fix default app name * clean up vanillajs and proper pass args * use scaffe to copy the react templates * fix(api): remove cjs, rename .mjs to .js * chore: tauri.js dead code elim (#1422) * remove templates, only used it CTA * help command is empty, remove * delete files that aren't imported / required * set files array to ignore src and config files * remove unused deps * add arch notes for future ref * change file * allow specifying a binary * resolve last bits to reach scaffe * adjust vanilla js template dir path Co-authored-by: Sanket Chaudhari <chaudharisanket2000@gmail.com> * fix up cra scaffolding * remove none and rely on vanillajs * log shell commands * remove no recipe question branch * shift react template for better overwrite copying * update deps * simple readme * implement dep manager * pretty Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Noah Klayman <noahklayman@gmail.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> Co-authored-by: Lucas Fernandes Nogueira <lucasfernandesnog@gmail.com> Co-authored-by: chip <chip@chip.sh> Co-authored-by: Gabe Cohen <gcc3.14@gmail.com> Co-authored-by: Ngo Iok Ui (Wu Yu Wei) <wusyong9104@gmail.com> Co-authored-by: Alve Larsson <larsalvelarsson@gmail.com> Co-authored-by: Amr Bashir <48618675+amrbashir@users.noreply.github.com> Co-authored-by: Kid <44045911+kidonng@users.noreply.github.com> Co-authored-by: david <david@lemarier.ca> Co-authored-by: nothingismagick <denjell@mailscript.com> Co-authored-by: William <william@venner.io> Co-authored-by: Rajiv Shah <rajivshah1@icloud.com> Co-authored-by: Mehdi Rezaei <mehdiraized@gmail.com> Co-authored-by: Sanket Chaudhari <chaudharisanket2000@gmail.com>
2021-04-11 12:22:07 +03:00
const {
appName,
recipeName,
tauri: {
window: { title },
},
} = config;
// this little fun snippet pulled from vite determines the package manager the script was run from
const packageManager = /yarn/.test(process.env.npm_execpath) ? "yarn" : "npm";
let recipe;
if (recipeName !== undefined) {
recipe = recipeByDescriptiveName(recipeName);
} else if (argv.r) {
recipe = recipeByShortName(argv.r);
}
let buildConfig = {
distDir: argv.D,
devPath: argv.P,
};
if (recipe !== undefined) {
buildConfig = recipe.configUpdate({ buildConfig, packageManager });
}
const directory = argv.d || process.cwd();
feat: create-tauri-app wiring (#1442) * chore(deps) Update Tauri JS CLI (#1319) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri Core (#1318) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri API (#1316) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate serde_json to 1.0.64 (#1315) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate once_cell to 1.7.2 (#1314) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate image to 0.23.14 (#1313) Co-authored-by: Renovate Bot <bot@renovateapp.com> * feat(cli/build): improve no distDir error message (#1306) * feat(cli/build): improve no distDir error message * chore: use Path's Display impl Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri API Definitions (#1317) Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(bundler/wix): install webview2 runtime (#1329) * feat(bundler/wix): install webview2 runtime * add changefile * chore(deps) Update Tauri API Definitions (major) (#1290) * chore(deps) Update Tauri API Definitions * chore: update to husky v5 * chore: remove husky script * chore: recreate lock file Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri JS CLI (#1291) Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * refactor(core): app hooks (#1332) * fix(api/window): rename manager export to appWindow (#1342) * feat(api/shell): allow open command to open files (#1341) * chore(deps) Update Tauri API Definitions (#1344) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate tokio to 1.3 (#1343) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate open to 1.6.0 (#1348) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(core): wrong usage of wry RPC on event API (#1351) * copy cli config definition window visibility defaults (#1353) * feat(core): add file drop handler (#1352) * fix: get correct resource dir in AppImge (fix #1308) (#1333) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat: build without proc macros (#1226) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri JS CLI (#1346) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(core): use Mutex in std to reduce async usage (#1350) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * fix(examples): build error (#1354) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * API example new ui (#1310) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps): remove `winres` from template (#1357) * refactor(core): add `unlisten`, `once` APIs to the event system (#1359) * fix(cli): use correct arg in `_blanks` links polyfill (#1362) * fix(api/http): correct types (#1360) * fix(api/http): correct types * Add changes * Update correct-http-api-types.md * chore(deps) Update Tauri JS CLI (#1364) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri API Definitions (#1363) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(tauri/webview): Use different user_data_path for Windows (#1365) (#1366) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * fix(config): serde_json::Value::Object takes a Map instead of HashMap (#1371) * fix(config): serde_json::Value::Object takes a Map instead of HashMap * fix: fmt * fix(tauri.js): init command properly building with manifests (#1374) * fix(tauri.js): init command properly building with manifests * fix: tests * feat(bundler): add visual c++ redistributable files with MSM (#1368) * refactor(core): reduce usage on arc and mutex (#1361) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(config): allow setting product name and version on tauri.conf.json (#1358) * feat: add current working directory to path api module (#1375) * refactor(core): move bundle script to /tauri crate (#1377) * refactor(core): move bundle script to /tauri crate * fix(cli): clippy * fix(core): tests * refactor(core): custom protocol URL uses the app identifier (#1376) * refactor(core): custom protocol URL uses the app identifier * fix: clippy * fix(tauri-api): remove .exe from app_name on windows (#1379) * chore(deps) Update Tauri API Definitions (#1384) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate tokio to 1.4 (#1383) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(cli): prmpt user before install deps in init (#1381) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update dependency rollup to v2.42.4 (#1386) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(cli): rewrite init command in Rust (#1382) Co-authored-by: nothingismagick <denjell@mailscript.com> * refactor(bundler): specific settings on dedicated structs, update README (#1380) * replace lazy_static uses with once_cell (#1391) * chore(deps) Update Tauri JS CLI (#1385) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(cli): rewrite info in Rust (#1389) * refactor(core): remove async from app hooks, add InvokeMessage type (#1392) * fix(cli): disable custom-protocol feature on dev command (#1393) * Fix extremely slow dev builds caused by embedding + compressing assets at compile time (#1395) * feat(bundler) code signing (#473) Co-authored-by: Rajiv Shah <rajivshah1@icloud.com> Co-authored-by: David Lemarier <david@lemarier.ca> * feat(cli): run beforeDev and beforeBuild in a shell, closes #1295 (#1399) * update to sharp 0.28.0 for cpu arm (m1) (#1404) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(cli): propagate args passed after `dev --`, closes #1406 (#1407) * refactor(api): use secure RNG, closes #1356 (#1398) * chore(deps) Update Tauri API Definitions (#1411) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate rfd to 0.2.2 (#1410) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri CLI (#1413) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri Bundler (#1412) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(core): rewrite shell execute API, closes #1229 (#1408) * chore(deps) Update dependency @rollup/plugin-commonjs to v18 (#1415) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri JS CLI (#1414) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix: asset resolution on debug mode * fix(core): ignore query string on custom protocol asset resolver (#1420) * wire up existing and adjust recipe configuration * merge dev * fix default app name * clean up vanillajs and proper pass args * use scaffe to copy the react templates * fix(api): remove cjs, rename .mjs to .js * chore: tauri.js dead code elim (#1422) * remove templates, only used it CTA * help command is empty, remove * delete files that aren't imported / required * set files array to ignore src and config files * remove unused deps * add arch notes for future ref * change file * allow specifying a binary * resolve last bits to reach scaffe * adjust vanilla js template dir path Co-authored-by: Sanket Chaudhari <chaudharisanket2000@gmail.com> * fix up cra scaffolding * remove none and rely on vanillajs * log shell commands * remove no recipe question branch * shift react template for better overwrite copying * update deps * simple readme * implement dep manager * pretty Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Noah Klayman <noahklayman@gmail.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> Co-authored-by: Lucas Fernandes Nogueira <lucasfernandesnog@gmail.com> Co-authored-by: chip <chip@chip.sh> Co-authored-by: Gabe Cohen <gcc3.14@gmail.com> Co-authored-by: Ngo Iok Ui (Wu Yu Wei) <wusyong9104@gmail.com> Co-authored-by: Alve Larsson <larsalvelarsson@gmail.com> Co-authored-by: Amr Bashir <48618675+amrbashir@users.noreply.github.com> Co-authored-by: Kid <44045911+kidonng@users.noreply.github.com> Co-authored-by: david <david@lemarier.ca> Co-authored-by: nothingismagick <denjell@mailscript.com> Co-authored-by: William <william@venner.io> Co-authored-by: Rajiv Shah <rajivshah1@icloud.com> Co-authored-by: Mehdi Rezaei <mehdiraized@gmail.com> Co-authored-by: Sanket Chaudhari <chaudharisanket2000@gmail.com>
2021-04-11 12:22:07 +03:00
const cfg = {
...buildConfig,
appName: appName || argv.A,
windowTitle: title || argv.w,
};
feat: create-tauri-app wiring (#1442) * chore(deps) Update Tauri JS CLI (#1319) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri Core (#1318) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri API (#1316) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate serde_json to 1.0.64 (#1315) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate once_cell to 1.7.2 (#1314) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate image to 0.23.14 (#1313) Co-authored-by: Renovate Bot <bot@renovateapp.com> * feat(cli/build): improve no distDir error message (#1306) * feat(cli/build): improve no distDir error message * chore: use Path's Display impl Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri API Definitions (#1317) Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(bundler/wix): install webview2 runtime (#1329) * feat(bundler/wix): install webview2 runtime * add changefile * chore(deps) Update Tauri API Definitions (major) (#1290) * chore(deps) Update Tauri API Definitions * chore: update to husky v5 * chore: remove husky script * chore: recreate lock file Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri JS CLI (#1291) Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * refactor(core): app hooks (#1332) * fix(api/window): rename manager export to appWindow (#1342) * feat(api/shell): allow open command to open files (#1341) * chore(deps) Update Tauri API Definitions (#1344) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate tokio to 1.3 (#1343) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate open to 1.6.0 (#1348) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(core): wrong usage of wry RPC on event API (#1351) * copy cli config definition window visibility defaults (#1353) * feat(core): add file drop handler (#1352) * fix: get correct resource dir in AppImge (fix #1308) (#1333) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat: build without proc macros (#1226) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri JS CLI (#1346) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(core): use Mutex in std to reduce async usage (#1350) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * fix(examples): build error (#1354) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * API example new ui (#1310) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps): remove `winres` from template (#1357) * refactor(core): add `unlisten`, `once` APIs to the event system (#1359) * fix(cli): use correct arg in `_blanks` links polyfill (#1362) * fix(api/http): correct types (#1360) * fix(api/http): correct types * Add changes * Update correct-http-api-types.md * chore(deps) Update Tauri JS CLI (#1364) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri API Definitions (#1363) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(tauri/webview): Use different user_data_path for Windows (#1365) (#1366) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * fix(config): serde_json::Value::Object takes a Map instead of HashMap (#1371) * fix(config): serde_json::Value::Object takes a Map instead of HashMap * fix: fmt * fix(tauri.js): init command properly building with manifests (#1374) * fix(tauri.js): init command properly building with manifests * fix: tests * feat(bundler): add visual c++ redistributable files with MSM (#1368) * refactor(core): reduce usage on arc and mutex (#1361) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(config): allow setting product name and version on tauri.conf.json (#1358) * feat: add current working directory to path api module (#1375) * refactor(core): move bundle script to /tauri crate (#1377) * refactor(core): move bundle script to /tauri crate * fix(cli): clippy * fix(core): tests * refactor(core): custom protocol URL uses the app identifier (#1376) * refactor(core): custom protocol URL uses the app identifier * fix: clippy * fix(tauri-api): remove .exe from app_name on windows (#1379) * chore(deps) Update Tauri API Definitions (#1384) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate tokio to 1.4 (#1383) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(cli): prmpt user before install deps in init (#1381) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update dependency rollup to v2.42.4 (#1386) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(cli): rewrite init command in Rust (#1382) Co-authored-by: nothingismagick <denjell@mailscript.com> * refactor(bundler): specific settings on dedicated structs, update README (#1380) * replace lazy_static uses with once_cell (#1391) * chore(deps) Update Tauri JS CLI (#1385) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(cli): rewrite info in Rust (#1389) * refactor(core): remove async from app hooks, add InvokeMessage type (#1392) * fix(cli): disable custom-protocol feature on dev command (#1393) * Fix extremely slow dev builds caused by embedding + compressing assets at compile time (#1395) * feat(bundler) code signing (#473) Co-authored-by: Rajiv Shah <rajivshah1@icloud.com> Co-authored-by: David Lemarier <david@lemarier.ca> * feat(cli): run beforeDev and beforeBuild in a shell, closes #1295 (#1399) * update to sharp 0.28.0 for cpu arm (m1) (#1404) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(cli): propagate args passed after `dev --`, closes #1406 (#1407) * refactor(api): use secure RNG, closes #1356 (#1398) * chore(deps) Update Tauri API Definitions (#1411) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate rfd to 0.2.2 (#1410) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri CLI (#1413) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri Bundler (#1412) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(core): rewrite shell execute API, closes #1229 (#1408) * chore(deps) Update dependency @rollup/plugin-commonjs to v18 (#1415) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri JS CLI (#1414) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix: asset resolution on debug mode * fix(core): ignore query string on custom protocol asset resolver (#1420) * wire up existing and adjust recipe configuration * merge dev * fix default app name * clean up vanillajs and proper pass args * use scaffe to copy the react templates * fix(api): remove cjs, rename .mjs to .js * chore: tauri.js dead code elim (#1422) * remove templates, only used it CTA * help command is empty, remove * delete files that aren't imported / required * set files array to ignore src and config files * remove unused deps * add arch notes for future ref * change file * allow specifying a binary * resolve last bits to reach scaffe * adjust vanilla js template dir path Co-authored-by: Sanket Chaudhari <chaudharisanket2000@gmail.com> * fix up cra scaffolding * remove none and rely on vanillajs * log shell commands * remove no recipe question branch * shift react template for better overwrite copying * update deps * simple readme * implement dep manager * pretty Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Noah Klayman <noahklayman@gmail.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> Co-authored-by: Lucas Fernandes Nogueira <lucasfernandesnog@gmail.com> Co-authored-by: chip <chip@chip.sh> Co-authored-by: Gabe Cohen <gcc3.14@gmail.com> Co-authored-by: Ngo Iok Ui (Wu Yu Wei) <wusyong9104@gmail.com> Co-authored-by: Alve Larsson <larsalvelarsson@gmail.com> Co-authored-by: Amr Bashir <48618675+amrbashir@users.noreply.github.com> Co-authored-by: Kid <44045911+kidonng@users.noreply.github.com> Co-authored-by: david <david@lemarier.ca> Co-authored-by: nothingismagick <denjell@mailscript.com> Co-authored-by: William <william@venner.io> Co-authored-by: Rajiv Shah <rajivshah1@icloud.com> Co-authored-by: Mehdi Rezaei <mehdiraized@gmail.com> Co-authored-by: Sanket Chaudhari <chaudharisanket2000@gmail.com>
2021-04-11 12:22:07 +03:00
// note that our app directory is reliant on the appName and
// generally there are issues if the path has spaces (see Windows)
// future TODO prevent app names with spaces or escape here?
const appDirectory = join(directory, cfg.appName);
// this throws an error if we can't run the package manager they requested
await checkPackageManager({ cwd: directory, packageManager });
feat: create-tauri-app wiring (#1442) * chore(deps) Update Tauri JS CLI (#1319) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri Core (#1318) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri API (#1316) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate serde_json to 1.0.64 (#1315) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate once_cell to 1.7.2 (#1314) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate image to 0.23.14 (#1313) Co-authored-by: Renovate Bot <bot@renovateapp.com> * feat(cli/build): improve no distDir error message (#1306) * feat(cli/build): improve no distDir error message * chore: use Path's Display impl Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri API Definitions (#1317) Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(bundler/wix): install webview2 runtime (#1329) * feat(bundler/wix): install webview2 runtime * add changefile * chore(deps) Update Tauri API Definitions (major) (#1290) * chore(deps) Update Tauri API Definitions * chore: update to husky v5 * chore: remove husky script * chore: recreate lock file Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri JS CLI (#1291) Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * refactor(core): app hooks (#1332) * fix(api/window): rename manager export to appWindow (#1342) * feat(api/shell): allow open command to open files (#1341) * chore(deps) Update Tauri API Definitions (#1344) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate tokio to 1.3 (#1343) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate open to 1.6.0 (#1348) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(core): wrong usage of wry RPC on event API (#1351) * copy cli config definition window visibility defaults (#1353) * feat(core): add file drop handler (#1352) * fix: get correct resource dir in AppImge (fix #1308) (#1333) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat: build without proc macros (#1226) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri JS CLI (#1346) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(core): use Mutex in std to reduce async usage (#1350) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * fix(examples): build error (#1354) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * API example new ui (#1310) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps): remove `winres` from template (#1357) * refactor(core): add `unlisten`, `once` APIs to the event system (#1359) * fix(cli): use correct arg in `_blanks` links polyfill (#1362) * fix(api/http): correct types (#1360) * fix(api/http): correct types * Add changes * Update correct-http-api-types.md * chore(deps) Update Tauri JS CLI (#1364) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri API Definitions (#1363) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(tauri/webview): Use different user_data_path for Windows (#1365) (#1366) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * fix(config): serde_json::Value::Object takes a Map instead of HashMap (#1371) * fix(config): serde_json::Value::Object takes a Map instead of HashMap * fix: fmt * fix(tauri.js): init command properly building with manifests (#1374) * fix(tauri.js): init command properly building with manifests * fix: tests * feat(bundler): add visual c++ redistributable files with MSM (#1368) * refactor(core): reduce usage on arc and mutex (#1361) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(config): allow setting product name and version on tauri.conf.json (#1358) * feat: add current working directory to path api module (#1375) * refactor(core): move bundle script to /tauri crate (#1377) * refactor(core): move bundle script to /tauri crate * fix(cli): clippy * fix(core): tests * refactor(core): custom protocol URL uses the app identifier (#1376) * refactor(core): custom protocol URL uses the app identifier * fix: clippy * fix(tauri-api): remove .exe from app_name on windows (#1379) * chore(deps) Update Tauri API Definitions (#1384) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate tokio to 1.4 (#1383) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(cli): prmpt user before install deps in init (#1381) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update dependency rollup to v2.42.4 (#1386) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(cli): rewrite init command in Rust (#1382) Co-authored-by: nothingismagick <denjell@mailscript.com> * refactor(bundler): specific settings on dedicated structs, update README (#1380) * replace lazy_static uses with once_cell (#1391) * chore(deps) Update Tauri JS CLI (#1385) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(cli): rewrite info in Rust (#1389) * refactor(core): remove async from app hooks, add InvokeMessage type (#1392) * fix(cli): disable custom-protocol feature on dev command (#1393) * Fix extremely slow dev builds caused by embedding + compressing assets at compile time (#1395) * feat(bundler) code signing (#473) Co-authored-by: Rajiv Shah <rajivshah1@icloud.com> Co-authored-by: David Lemarier <david@lemarier.ca> * feat(cli): run beforeDev and beforeBuild in a shell, closes #1295 (#1399) * update to sharp 0.28.0 for cpu arm (m1) (#1404) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(cli): propagate args passed after `dev --`, closes #1406 (#1407) * refactor(api): use secure RNG, closes #1356 (#1398) * chore(deps) Update Tauri API Definitions (#1411) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate rfd to 0.2.2 (#1410) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri CLI (#1413) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri Bundler (#1412) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(core): rewrite shell execute API, closes #1229 (#1408) * chore(deps) Update dependency @rollup/plugin-commonjs to v18 (#1415) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri JS CLI (#1414) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix: asset resolution on debug mode * fix(core): ignore query string on custom protocol asset resolver (#1420) * wire up existing and adjust recipe configuration * merge dev * fix default app name * clean up vanillajs and proper pass args * use scaffe to copy the react templates * fix(api): remove cjs, rename .mjs to .js * chore: tauri.js dead code elim (#1422) * remove templates, only used it CTA * help command is empty, remove * delete files that aren't imported / required * set files array to ignore src and config files * remove unused deps * add arch notes for future ref * change file * allow specifying a binary * resolve last bits to reach scaffe * adjust vanilla js template dir path Co-authored-by: Sanket Chaudhari <chaudharisanket2000@gmail.com> * fix up cra scaffolding * remove none and rely on vanillajs * log shell commands * remove no recipe question branch * shift react template for better overwrite copying * update deps * simple readme * implement dep manager * pretty Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Noah Klayman <noahklayman@gmail.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> Co-authored-by: Lucas Fernandes Nogueira <lucasfernandesnog@gmail.com> Co-authored-by: chip <chip@chip.sh> Co-authored-by: Gabe Cohen <gcc3.14@gmail.com> Co-authored-by: Ngo Iok Ui (Wu Yu Wei) <wusyong9104@gmail.com> Co-authored-by: Alve Larsson <larsalvelarsson@gmail.com> Co-authored-by: Amr Bashir <48618675+amrbashir@users.noreply.github.com> Co-authored-by: Kid <44045911+kidonng@users.noreply.github.com> Co-authored-by: david <david@lemarier.ca> Co-authored-by: nothingismagick <denjell@mailscript.com> Co-authored-by: William <william@venner.io> Co-authored-by: Rajiv Shah <rajivshah1@icloud.com> Co-authored-by: Mehdi Rezaei <mehdiraized@gmail.com> Co-authored-by: Sanket Chaudhari <chaudharisanket2000@gmail.com>
2021-04-11 12:22:07 +03:00
if (recipe.preInit) {
console.log("===== running initial command(s) =====");
await recipe.preInit({ cwd: directory, cfg, packageManager });
}
feat: create-tauri-app wiring (#1442) * chore(deps) Update Tauri JS CLI (#1319) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri Core (#1318) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri API (#1316) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate serde_json to 1.0.64 (#1315) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate once_cell to 1.7.2 (#1314) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate image to 0.23.14 (#1313) Co-authored-by: Renovate Bot <bot@renovateapp.com> * feat(cli/build): improve no distDir error message (#1306) * feat(cli/build): improve no distDir error message * chore: use Path's Display impl Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri API Definitions (#1317) Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(bundler/wix): install webview2 runtime (#1329) * feat(bundler/wix): install webview2 runtime * add changefile * chore(deps) Update Tauri API Definitions (major) (#1290) * chore(deps) Update Tauri API Definitions * chore: update to husky v5 * chore: remove husky script * chore: recreate lock file Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri JS CLI (#1291) Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * refactor(core): app hooks (#1332) * fix(api/window): rename manager export to appWindow (#1342) * feat(api/shell): allow open command to open files (#1341) * chore(deps) Update Tauri API Definitions (#1344) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate tokio to 1.3 (#1343) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate open to 1.6.0 (#1348) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(core): wrong usage of wry RPC on event API (#1351) * copy cli config definition window visibility defaults (#1353) * feat(core): add file drop handler (#1352) * fix: get correct resource dir in AppImge (fix #1308) (#1333) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat: build without proc macros (#1226) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri JS CLI (#1346) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(core): use Mutex in std to reduce async usage (#1350) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * fix(examples): build error (#1354) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * API example new ui (#1310) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps): remove `winres` from template (#1357) * refactor(core): add `unlisten`, `once` APIs to the event system (#1359) * fix(cli): use correct arg in `_blanks` links polyfill (#1362) * fix(api/http): correct types (#1360) * fix(api/http): correct types * Add changes * Update correct-http-api-types.md * chore(deps) Update Tauri JS CLI (#1364) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri API Definitions (#1363) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(tauri/webview): Use different user_data_path for Windows (#1365) (#1366) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * fix(config): serde_json::Value::Object takes a Map instead of HashMap (#1371) * fix(config): serde_json::Value::Object takes a Map instead of HashMap * fix: fmt * fix(tauri.js): init command properly building with manifests (#1374) * fix(tauri.js): init command properly building with manifests * fix: tests * feat(bundler): add visual c++ redistributable files with MSM (#1368) * refactor(core): reduce usage on arc and mutex (#1361) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(config): allow setting product name and version on tauri.conf.json (#1358) * feat: add current working directory to path api module (#1375) * refactor(core): move bundle script to /tauri crate (#1377) * refactor(core): move bundle script to /tauri crate * fix(cli): clippy * fix(core): tests * refactor(core): custom protocol URL uses the app identifier (#1376) * refactor(core): custom protocol URL uses the app identifier * fix: clippy * fix(tauri-api): remove .exe from app_name on windows (#1379) * chore(deps) Update Tauri API Definitions (#1384) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate tokio to 1.4 (#1383) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(cli): prmpt user before install deps in init (#1381) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update dependency rollup to v2.42.4 (#1386) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(cli): rewrite init command in Rust (#1382) Co-authored-by: nothingismagick <denjell@mailscript.com> * refactor(bundler): specific settings on dedicated structs, update README (#1380) * replace lazy_static uses with once_cell (#1391) * chore(deps) Update Tauri JS CLI (#1385) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(cli): rewrite info in Rust (#1389) * refactor(core): remove async from app hooks, add InvokeMessage type (#1392) * fix(cli): disable custom-protocol feature on dev command (#1393) * Fix extremely slow dev builds caused by embedding + compressing assets at compile time (#1395) * feat(bundler) code signing (#473) Co-authored-by: Rajiv Shah <rajivshah1@icloud.com> Co-authored-by: David Lemarier <david@lemarier.ca> * feat(cli): run beforeDev and beforeBuild in a shell, closes #1295 (#1399) * update to sharp 0.28.0 for cpu arm (m1) (#1404) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(cli): propagate args passed after `dev --`, closes #1406 (#1407) * refactor(api): use secure RNG, closes #1356 (#1398) * chore(deps) Update Tauri API Definitions (#1411) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate rfd to 0.2.2 (#1410) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri CLI (#1413) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri Bundler (#1412) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(core): rewrite shell execute API, closes #1229 (#1408) * chore(deps) Update dependency @rollup/plugin-commonjs to v18 (#1415) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri JS CLI (#1414) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix: asset resolution on debug mode * fix(core): ignore query string on custom protocol asset resolver (#1420) * wire up existing and adjust recipe configuration * merge dev * fix default app name * clean up vanillajs and proper pass args * use scaffe to copy the react templates * fix(api): remove cjs, rename .mjs to .js * chore: tauri.js dead code elim (#1422) * remove templates, only used it CTA * help command is empty, remove * delete files that aren't imported / required * set files array to ignore src and config files * remove unused deps * add arch notes for future ref * change file * allow specifying a binary * resolve last bits to reach scaffe * adjust vanilla js template dir path Co-authored-by: Sanket Chaudhari <chaudharisanket2000@gmail.com> * fix up cra scaffolding * remove none and rely on vanillajs * log shell commands * remove no recipe question branch * shift react template for better overwrite copying * update deps * simple readme * implement dep manager * pretty Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Noah Klayman <noahklayman@gmail.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> Co-authored-by: Lucas Fernandes Nogueira <lucasfernandesnog@gmail.com> Co-authored-by: chip <chip@chip.sh> Co-authored-by: Gabe Cohen <gcc3.14@gmail.com> Co-authored-by: Ngo Iok Ui (Wu Yu Wei) <wusyong9104@gmail.com> Co-authored-by: Alve Larsson <larsalvelarsson@gmail.com> Co-authored-by: Amr Bashir <48618675+amrbashir@users.noreply.github.com> Co-authored-by: Kid <44045911+kidonng@users.noreply.github.com> Co-authored-by: david <david@lemarier.ca> Co-authored-by: nothingismagick <denjell@mailscript.com> Co-authored-by: William <william@venner.io> Co-authored-by: Rajiv Shah <rajivshah1@icloud.com> Co-authored-by: Mehdi Rezaei <mehdiraized@gmail.com> Co-authored-by: Sanket Chaudhari <chaudharisanket2000@gmail.com>
2021-04-11 12:22:07 +03:00
const initArgs = [
["--app-name", cfg.appName],
["--window-title", cfg.windowTitle],
["--dist-dir", cfg.distDir],
["--dev-path", cfg.devPath],
].reduce((final, argSet) => {
if (argSet[1]) {
return final.concat(argSet);
feat: create-tauri-app wiring (#1442) * chore(deps) Update Tauri JS CLI (#1319) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri Core (#1318) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri API (#1316) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate serde_json to 1.0.64 (#1315) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate once_cell to 1.7.2 (#1314) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate image to 0.23.14 (#1313) Co-authored-by: Renovate Bot <bot@renovateapp.com> * feat(cli/build): improve no distDir error message (#1306) * feat(cli/build): improve no distDir error message * chore: use Path's Display impl Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri API Definitions (#1317) Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(bundler/wix): install webview2 runtime (#1329) * feat(bundler/wix): install webview2 runtime * add changefile * chore(deps) Update Tauri API Definitions (major) (#1290) * chore(deps) Update Tauri API Definitions * chore: update to husky v5 * chore: remove husky script * chore: recreate lock file Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri JS CLI (#1291) Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * refactor(core): app hooks (#1332) * fix(api/window): rename manager export to appWindow (#1342) * feat(api/shell): allow open command to open files (#1341) * chore(deps) Update Tauri API Definitions (#1344) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate tokio to 1.3 (#1343) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate open to 1.6.0 (#1348) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(core): wrong usage of wry RPC on event API (#1351) * copy cli config definition window visibility defaults (#1353) * feat(core): add file drop handler (#1352) * fix: get correct resource dir in AppImge (fix #1308) (#1333) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat: build without proc macros (#1226) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri JS CLI (#1346) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(core): use Mutex in std to reduce async usage (#1350) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * fix(examples): build error (#1354) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * API example new ui (#1310) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps): remove `winres` from template (#1357) * refactor(core): add `unlisten`, `once` APIs to the event system (#1359) * fix(cli): use correct arg in `_blanks` links polyfill (#1362) * fix(api/http): correct types (#1360) * fix(api/http): correct types * Add changes * Update correct-http-api-types.md * chore(deps) Update Tauri JS CLI (#1364) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri API Definitions (#1363) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(tauri/webview): Use different user_data_path for Windows (#1365) (#1366) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * fix(config): serde_json::Value::Object takes a Map instead of HashMap (#1371) * fix(config): serde_json::Value::Object takes a Map instead of HashMap * fix: fmt * fix(tauri.js): init command properly building with manifests (#1374) * fix(tauri.js): init command properly building with manifests * fix: tests * feat(bundler): add visual c++ redistributable files with MSM (#1368) * refactor(core): reduce usage on arc and mutex (#1361) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(config): allow setting product name and version on tauri.conf.json (#1358) * feat: add current working directory to path api module (#1375) * refactor(core): move bundle script to /tauri crate (#1377) * refactor(core): move bundle script to /tauri crate * fix(cli): clippy * fix(core): tests * refactor(core): custom protocol URL uses the app identifier (#1376) * refactor(core): custom protocol URL uses the app identifier * fix: clippy * fix(tauri-api): remove .exe from app_name on windows (#1379) * chore(deps) Update Tauri API Definitions (#1384) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate tokio to 1.4 (#1383) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(cli): prmpt user before install deps in init (#1381) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update dependency rollup to v2.42.4 (#1386) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(cli): rewrite init command in Rust (#1382) Co-authored-by: nothingismagick <denjell@mailscript.com> * refactor(bundler): specific settings on dedicated structs, update README (#1380) * replace lazy_static uses with once_cell (#1391) * chore(deps) Update Tauri JS CLI (#1385) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(cli): rewrite info in Rust (#1389) * refactor(core): remove async from app hooks, add InvokeMessage type (#1392) * fix(cli): disable custom-protocol feature on dev command (#1393) * Fix extremely slow dev builds caused by embedding + compressing assets at compile time (#1395) * feat(bundler) code signing (#473) Co-authored-by: Rajiv Shah <rajivshah1@icloud.com> Co-authored-by: David Lemarier <david@lemarier.ca> * feat(cli): run beforeDev and beforeBuild in a shell, closes #1295 (#1399) * update to sharp 0.28.0 for cpu arm (m1) (#1404) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(cli): propagate args passed after `dev --`, closes #1406 (#1407) * refactor(api): use secure RNG, closes #1356 (#1398) * chore(deps) Update Tauri API Definitions (#1411) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate rfd to 0.2.2 (#1410) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri CLI (#1413) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri Bundler (#1412) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(core): rewrite shell execute API, closes #1229 (#1408) * chore(deps) Update dependency @rollup/plugin-commonjs to v18 (#1415) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri JS CLI (#1414) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix: asset resolution on debug mode * fix(core): ignore query string on custom protocol asset resolver (#1420) * wire up existing and adjust recipe configuration * merge dev * fix default app name * clean up vanillajs and proper pass args * use scaffe to copy the react templates * fix(api): remove cjs, rename .mjs to .js * chore: tauri.js dead code elim (#1422) * remove templates, only used it CTA * help command is empty, remove * delete files that aren't imported / required * set files array to ignore src and config files * remove unused deps * add arch notes for future ref * change file * allow specifying a binary * resolve last bits to reach scaffe * adjust vanilla js template dir path Co-authored-by: Sanket Chaudhari <chaudharisanket2000@gmail.com> * fix up cra scaffolding * remove none and rely on vanillajs * log shell commands * remove no recipe question branch * shift react template for better overwrite copying * update deps * simple readme * implement dep manager * pretty Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Noah Klayman <noahklayman@gmail.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> Co-authored-by: Lucas Fernandes Nogueira <lucasfernandesnog@gmail.com> Co-authored-by: chip <chip@chip.sh> Co-authored-by: Gabe Cohen <gcc3.14@gmail.com> Co-authored-by: Ngo Iok Ui (Wu Yu Wei) <wusyong9104@gmail.com> Co-authored-by: Alve Larsson <larsalvelarsson@gmail.com> Co-authored-by: Amr Bashir <48618675+amrbashir@users.noreply.github.com> Co-authored-by: Kid <44045911+kidonng@users.noreply.github.com> Co-authored-by: david <david@lemarier.ca> Co-authored-by: nothingismagick <denjell@mailscript.com> Co-authored-by: William <william@venner.io> Co-authored-by: Rajiv Shah <rajivshah1@icloud.com> Co-authored-by: Mehdi Rezaei <mehdiraized@gmail.com> Co-authored-by: Sanket Chaudhari <chaudharisanket2000@gmail.com>
2021-04-11 12:22:07 +03:00
} else {
return final;
}
}, []);
// Vue CLI plugin automatically runs these
if (recipe.shortName !== "vuecli") {
console.log("===== installing any additional needed deps =====");
await install({
appDir: appDirectory,
dependencies: recipe.extraNpmDependencies,
devDependencies: ["@tauri-apps/cli", ...recipe.extraNpmDevDependencies],
packageManager,
});
console.log("===== running tauri init =====");
await shell("npm", ["set-script", "tauri", "tauri"], {
cwd: appDirectory,
});
const binary = !argv.b ? packageManager : resolve(appDirectory, argv.b);
const runTauriArgs =
packageManager === "npm" && !argv.b
? ["run", "tauri", "--", "init"]
: ["tauri", "init"];
await shell(binary, [...runTauriArgs, ...initArgs], {
cwd: appDirectory,
});
}
feat: create-tauri-app wiring (#1442) * chore(deps) Update Tauri JS CLI (#1319) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri Core (#1318) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri API (#1316) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate serde_json to 1.0.64 (#1315) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate once_cell to 1.7.2 (#1314) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate image to 0.23.14 (#1313) Co-authored-by: Renovate Bot <bot@renovateapp.com> * feat(cli/build): improve no distDir error message (#1306) * feat(cli/build): improve no distDir error message * chore: use Path's Display impl Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri API Definitions (#1317) Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(bundler/wix): install webview2 runtime (#1329) * feat(bundler/wix): install webview2 runtime * add changefile * chore(deps) Update Tauri API Definitions (major) (#1290) * chore(deps) Update Tauri API Definitions * chore: update to husky v5 * chore: remove husky script * chore: recreate lock file Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri JS CLI (#1291) Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * refactor(core): app hooks (#1332) * fix(api/window): rename manager export to appWindow (#1342) * feat(api/shell): allow open command to open files (#1341) * chore(deps) Update Tauri API Definitions (#1344) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate tokio to 1.3 (#1343) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate open to 1.6.0 (#1348) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(core): wrong usage of wry RPC on event API (#1351) * copy cli config definition window visibility defaults (#1353) * feat(core): add file drop handler (#1352) * fix: get correct resource dir in AppImge (fix #1308) (#1333) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat: build without proc macros (#1226) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri JS CLI (#1346) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(core): use Mutex in std to reduce async usage (#1350) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * fix(examples): build error (#1354) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * API example new ui (#1310) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps): remove `winres` from template (#1357) * refactor(core): add `unlisten`, `once` APIs to the event system (#1359) * fix(cli): use correct arg in `_blanks` links polyfill (#1362) * fix(api/http): correct types (#1360) * fix(api/http): correct types * Add changes * Update correct-http-api-types.md * chore(deps) Update Tauri JS CLI (#1364) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri API Definitions (#1363) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(tauri/webview): Use different user_data_path for Windows (#1365) (#1366) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * fix(config): serde_json::Value::Object takes a Map instead of HashMap (#1371) * fix(config): serde_json::Value::Object takes a Map instead of HashMap * fix: fmt * fix(tauri.js): init command properly building with manifests (#1374) * fix(tauri.js): init command properly building with manifests * fix: tests * feat(bundler): add visual c++ redistributable files with MSM (#1368) * refactor(core): reduce usage on arc and mutex (#1361) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(config): allow setting product name and version on tauri.conf.json (#1358) * feat: add current working directory to path api module (#1375) * refactor(core): move bundle script to /tauri crate (#1377) * refactor(core): move bundle script to /tauri crate * fix(cli): clippy * fix(core): tests * refactor(core): custom protocol URL uses the app identifier (#1376) * refactor(core): custom protocol URL uses the app identifier * fix: clippy * fix(tauri-api): remove .exe from app_name on windows (#1379) * chore(deps) Update Tauri API Definitions (#1384) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate tokio to 1.4 (#1383) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(cli): prmpt user before install deps in init (#1381) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update dependency rollup to v2.42.4 (#1386) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(cli): rewrite init command in Rust (#1382) Co-authored-by: nothingismagick <denjell@mailscript.com> * refactor(bundler): specific settings on dedicated structs, update README (#1380) * replace lazy_static uses with once_cell (#1391) * chore(deps) Update Tauri JS CLI (#1385) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(cli): rewrite info in Rust (#1389) * refactor(core): remove async from app hooks, add InvokeMessage type (#1392) * fix(cli): disable custom-protocol feature on dev command (#1393) * Fix extremely slow dev builds caused by embedding + compressing assets at compile time (#1395) * feat(bundler) code signing (#473) Co-authored-by: Rajiv Shah <rajivshah1@icloud.com> Co-authored-by: David Lemarier <david@lemarier.ca> * feat(cli): run beforeDev and beforeBuild in a shell, closes #1295 (#1399) * update to sharp 0.28.0 for cpu arm (m1) (#1404) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(cli): propagate args passed after `dev --`, closes #1406 (#1407) * refactor(api): use secure RNG, closes #1356 (#1398) * chore(deps) Update Tauri API Definitions (#1411) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate rfd to 0.2.2 (#1410) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri CLI (#1413) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri Bundler (#1412) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(core): rewrite shell execute API, closes #1229 (#1408) * chore(deps) Update dependency @rollup/plugin-commonjs to v18 (#1415) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri JS CLI (#1414) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix: asset resolution on debug mode * fix(core): ignore query string on custom protocol asset resolver (#1420) * wire up existing and adjust recipe configuration * merge dev * fix default app name * clean up vanillajs and proper pass args * use scaffe to copy the react templates * fix(api): remove cjs, rename .mjs to .js * chore: tauri.js dead code elim (#1422) * remove templates, only used it CTA * help command is empty, remove * delete files that aren't imported / required * set files array to ignore src and config files * remove unused deps * add arch notes for future ref * change file * allow specifying a binary * resolve last bits to reach scaffe * adjust vanilla js template dir path Co-authored-by: Sanket Chaudhari <chaudharisanket2000@gmail.com> * fix up cra scaffolding * remove none and rely on vanillajs * log shell commands * remove no recipe question branch * shift react template for better overwrite copying * update deps * simple readme * implement dep manager * pretty Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Noah Klayman <noahklayman@gmail.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> Co-authored-by: Lucas Fernandes Nogueira <lucasfernandesnog@gmail.com> Co-authored-by: chip <chip@chip.sh> Co-authored-by: Gabe Cohen <gcc3.14@gmail.com> Co-authored-by: Ngo Iok Ui (Wu Yu Wei) <wusyong9104@gmail.com> Co-authored-by: Alve Larsson <larsalvelarsson@gmail.com> Co-authored-by: Amr Bashir <48618675+amrbashir@users.noreply.github.com> Co-authored-by: Kid <44045911+kidonng@users.noreply.github.com> Co-authored-by: david <david@lemarier.ca> Co-authored-by: nothingismagick <denjell@mailscript.com> Co-authored-by: William <william@venner.io> Co-authored-by: Rajiv Shah <rajivshah1@icloud.com> Co-authored-by: Mehdi Rezaei <mehdiraized@gmail.com> Co-authored-by: Sanket Chaudhari <chaudharisanket2000@gmail.com>
2021-04-11 12:22:07 +03:00
if (recipe.postInit) {
console.log("===== running final command(s) =====");
await recipe.postInit({
cwd: appDirectory,
cfg,
packageManager,
feat: create-tauri-app wiring (#1442) * chore(deps) Update Tauri JS CLI (#1319) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri Core (#1318) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri API (#1316) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate serde_json to 1.0.64 (#1315) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate once_cell to 1.7.2 (#1314) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate image to 0.23.14 (#1313) Co-authored-by: Renovate Bot <bot@renovateapp.com> * feat(cli/build): improve no distDir error message (#1306) * feat(cli/build): improve no distDir error message * chore: use Path's Display impl Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri API Definitions (#1317) Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(bundler/wix): install webview2 runtime (#1329) * feat(bundler/wix): install webview2 runtime * add changefile * chore(deps) Update Tauri API Definitions (major) (#1290) * chore(deps) Update Tauri API Definitions * chore: update to husky v5 * chore: remove husky script * chore: recreate lock file Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri JS CLI (#1291) Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * refactor(core): app hooks (#1332) * fix(api/window): rename manager export to appWindow (#1342) * feat(api/shell): allow open command to open files (#1341) * chore(deps) Update Tauri API Definitions (#1344) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate tokio to 1.3 (#1343) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate open to 1.6.0 (#1348) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(core): wrong usage of wry RPC on event API (#1351) * copy cli config definition window visibility defaults (#1353) * feat(core): add file drop handler (#1352) * fix: get correct resource dir in AppImge (fix #1308) (#1333) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat: build without proc macros (#1226) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri JS CLI (#1346) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(core): use Mutex in std to reduce async usage (#1350) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * fix(examples): build error (#1354) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * API example new ui (#1310) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps): remove `winres` from template (#1357) * refactor(core): add `unlisten`, `once` APIs to the event system (#1359) * fix(cli): use correct arg in `_blanks` links polyfill (#1362) * fix(api/http): correct types (#1360) * fix(api/http): correct types * Add changes * Update correct-http-api-types.md * chore(deps) Update Tauri JS CLI (#1364) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri API Definitions (#1363) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(tauri/webview): Use different user_data_path for Windows (#1365) (#1366) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * fix(config): serde_json::Value::Object takes a Map instead of HashMap (#1371) * fix(config): serde_json::Value::Object takes a Map instead of HashMap * fix: fmt * fix(tauri.js): init command properly building with manifests (#1374) * fix(tauri.js): init command properly building with manifests * fix: tests * feat(bundler): add visual c++ redistributable files with MSM (#1368) * refactor(core): reduce usage on arc and mutex (#1361) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(config): allow setting product name and version on tauri.conf.json (#1358) * feat: add current working directory to path api module (#1375) * refactor(core): move bundle script to /tauri crate (#1377) * refactor(core): move bundle script to /tauri crate * fix(cli): clippy * fix(core): tests * refactor(core): custom protocol URL uses the app identifier (#1376) * refactor(core): custom protocol URL uses the app identifier * fix: clippy * fix(tauri-api): remove .exe from app_name on windows (#1379) * chore(deps) Update Tauri API Definitions (#1384) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate tokio to 1.4 (#1383) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(cli): prmpt user before install deps in init (#1381) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update dependency rollup to v2.42.4 (#1386) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(cli): rewrite init command in Rust (#1382) Co-authored-by: nothingismagick <denjell@mailscript.com> * refactor(bundler): specific settings on dedicated structs, update README (#1380) * replace lazy_static uses with once_cell (#1391) * chore(deps) Update Tauri JS CLI (#1385) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(cli): rewrite info in Rust (#1389) * refactor(core): remove async from app hooks, add InvokeMessage type (#1392) * fix(cli): disable custom-protocol feature on dev command (#1393) * Fix extremely slow dev builds caused by embedding + compressing assets at compile time (#1395) * feat(bundler) code signing (#473) Co-authored-by: Rajiv Shah <rajivshah1@icloud.com> Co-authored-by: David Lemarier <david@lemarier.ca> * feat(cli): run beforeDev and beforeBuild in a shell, closes #1295 (#1399) * update to sharp 0.28.0 for cpu arm (m1) (#1404) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(cli): propagate args passed after `dev --`, closes #1406 (#1407) * refactor(api): use secure RNG, closes #1356 (#1398) * chore(deps) Update Tauri API Definitions (#1411) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate rfd to 0.2.2 (#1410) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri CLI (#1413) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri Bundler (#1412) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(core): rewrite shell execute API, closes #1229 (#1408) * chore(deps) Update dependency @rollup/plugin-commonjs to v18 (#1415) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri JS CLI (#1414) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix: asset resolution on debug mode * fix(core): ignore query string on custom protocol asset resolver (#1420) * wire up existing and adjust recipe configuration * merge dev * fix default app name * clean up vanillajs and proper pass args * use scaffe to copy the react templates * fix(api): remove cjs, rename .mjs to .js * chore: tauri.js dead code elim (#1422) * remove templates, only used it CTA * help command is empty, remove * delete files that aren't imported / required * set files array to ignore src and config files * remove unused deps * add arch notes for future ref * change file * allow specifying a binary * resolve last bits to reach scaffe * adjust vanilla js template dir path Co-authored-by: Sanket Chaudhari <chaudharisanket2000@gmail.com> * fix up cra scaffolding * remove none and rely on vanillajs * log shell commands * remove no recipe question branch * shift react template for better overwrite copying * update deps * simple readme * implement dep manager * pretty Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Noah Klayman <noahklayman@gmail.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> Co-authored-by: Lucas Fernandes Nogueira <lucasfernandesnog@gmail.com> Co-authored-by: chip <chip@chip.sh> Co-authored-by: Gabe Cohen <gcc3.14@gmail.com> Co-authored-by: Ngo Iok Ui (Wu Yu Wei) <wusyong9104@gmail.com> Co-authored-by: Alve Larsson <larsalvelarsson@gmail.com> Co-authored-by: Amr Bashir <48618675+amrbashir@users.noreply.github.com> Co-authored-by: Kid <44045911+kidonng@users.noreply.github.com> Co-authored-by: david <david@lemarier.ca> Co-authored-by: nothingismagick <denjell@mailscript.com> Co-authored-by: William <william@venner.io> Co-authored-by: Rajiv Shah <rajivshah1@icloud.com> Co-authored-by: Mehdi Rezaei <mehdiraized@gmail.com> Co-authored-by: Sanket Chaudhari <chaudharisanket2000@gmail.com>
2021-04-11 12:22:07 +03:00
});
}
}
feat: create-tauri-app wiring (#1442) * chore(deps) Update Tauri JS CLI (#1319) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri Core (#1318) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri API (#1316) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate serde_json to 1.0.64 (#1315) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate once_cell to 1.7.2 (#1314) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate image to 0.23.14 (#1313) Co-authored-by: Renovate Bot <bot@renovateapp.com> * feat(cli/build): improve no distDir error message (#1306) * feat(cli/build): improve no distDir error message * chore: use Path's Display impl Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri API Definitions (#1317) Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(bundler/wix): install webview2 runtime (#1329) * feat(bundler/wix): install webview2 runtime * add changefile * chore(deps) Update Tauri API Definitions (major) (#1290) * chore(deps) Update Tauri API Definitions * chore: update to husky v5 * chore: remove husky script * chore: recreate lock file Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri JS CLI (#1291) Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * refactor(core): app hooks (#1332) * fix(api/window): rename manager export to appWindow (#1342) * feat(api/shell): allow open command to open files (#1341) * chore(deps) Update Tauri API Definitions (#1344) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate tokio to 1.3 (#1343) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate open to 1.6.0 (#1348) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(core): wrong usage of wry RPC on event API (#1351) * copy cli config definition window visibility defaults (#1353) * feat(core): add file drop handler (#1352) * fix: get correct resource dir in AppImge (fix #1308) (#1333) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat: build without proc macros (#1226) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update Tauri JS CLI (#1346) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(core): use Mutex in std to reduce async usage (#1350) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * fix(examples): build error (#1354) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * API example new ui (#1310) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps): remove `winres` from template (#1357) * refactor(core): add `unlisten`, `once` APIs to the event system (#1359) * fix(cli): use correct arg in `_blanks` links polyfill (#1362) * fix(api/http): correct types (#1360) * fix(api/http): correct types * Add changes * Update correct-http-api-types.md * chore(deps) Update Tauri JS CLI (#1364) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri API Definitions (#1363) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(tauri/webview): Use different user_data_path for Windows (#1365) (#1366) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * fix(config): serde_json::Value::Object takes a Map instead of HashMap (#1371) * fix(config): serde_json::Value::Object takes a Map instead of HashMap * fix: fmt * fix(tauri.js): init command properly building with manifests (#1374) * fix(tauri.js): init command properly building with manifests * fix: tests * feat(bundler): add visual c++ redistributable files with MSM (#1368) * refactor(core): reduce usage on arc and mutex (#1361) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(config): allow setting product name and version on tauri.conf.json (#1358) * feat: add current working directory to path api module (#1375) * refactor(core): move bundle script to /tauri crate (#1377) * refactor(core): move bundle script to /tauri crate * fix(cli): clippy * fix(core): tests * refactor(core): custom protocol URL uses the app identifier (#1376) * refactor(core): custom protocol URL uses the app identifier * fix: clippy * fix(tauri-api): remove .exe from app_name on windows (#1379) * chore(deps) Update Tauri API Definitions (#1384) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate tokio to 1.4 (#1383) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix(cli): prmpt user before install deps in init (#1381) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * chore(deps) Update dependency rollup to v2.42.4 (#1386) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(cli): rewrite init command in Rust (#1382) Co-authored-by: nothingismagick <denjell@mailscript.com> * refactor(bundler): specific settings on dedicated structs, update README (#1380) * replace lazy_static uses with once_cell (#1391) * chore(deps) Update Tauri JS CLI (#1385) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(cli): rewrite info in Rust (#1389) * refactor(core): remove async from app hooks, add InvokeMessage type (#1392) * fix(cli): disable custom-protocol feature on dev command (#1393) * Fix extremely slow dev builds caused by embedding + compressing assets at compile time (#1395) * feat(bundler) code signing (#473) Co-authored-by: Rajiv Shah <rajivshah1@icloud.com> Co-authored-by: David Lemarier <david@lemarier.ca> * feat(cli): run beforeDev and beforeBuild in a shell, closes #1295 (#1399) * update to sharp 0.28.0 for cpu arm (m1) (#1404) Co-authored-by: Lucas Nogueira <lucas@tauri.studio> * feat(cli): propagate args passed after `dev --`, closes #1406 (#1407) * refactor(api): use secure RNG, closes #1356 (#1398) * chore(deps) Update Tauri API Definitions (#1411) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Rust crate rfd to 0.2.2 (#1410) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri CLI (#1413) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri Bundler (#1412) Co-authored-by: Renovate Bot <bot@renovateapp.com> * refactor(core): rewrite shell execute API, closes #1229 (#1408) * chore(deps) Update dependency @rollup/plugin-commonjs to v18 (#1415) Co-authored-by: Renovate Bot <bot@renovateapp.com> * chore(deps) Update Tauri JS CLI (#1414) Co-authored-by: Renovate Bot <bot@renovateapp.com> * fix: asset resolution on debug mode * fix(core): ignore query string on custom protocol asset resolver (#1420) * wire up existing and adjust recipe configuration * merge dev * fix default app name * clean up vanillajs and proper pass args * use scaffe to copy the react templates * fix(api): remove cjs, rename .mjs to .js * chore: tauri.js dead code elim (#1422) * remove templates, only used it CTA * help command is empty, remove * delete files that aren't imported / required * set files array to ignore src and config files * remove unused deps * add arch notes for future ref * change file * allow specifying a binary * resolve last bits to reach scaffe * adjust vanilla js template dir path Co-authored-by: Sanket Chaudhari <chaudharisanket2000@gmail.com> * fix up cra scaffolding * remove none and rely on vanillajs * log shell commands * remove no recipe question branch * shift react template for better overwrite copying * update deps * simple readme * implement dep manager * pretty Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Noah Klayman <noahklayman@gmail.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio> Co-authored-by: Lucas Fernandes Nogueira <lucasfernandesnog@gmail.com> Co-authored-by: chip <chip@chip.sh> Co-authored-by: Gabe Cohen <gcc3.14@gmail.com> Co-authored-by: Ngo Iok Ui (Wu Yu Wei) <wusyong9104@gmail.com> Co-authored-by: Alve Larsson <larsalvelarsson@gmail.com> Co-authored-by: Amr Bashir <48618675+amrbashir@users.noreply.github.com> Co-authored-by: Kid <44045911+kidonng@users.noreply.github.com> Co-authored-by: david <david@lemarier.ca> Co-authored-by: nothingismagick <denjell@mailscript.com> Co-authored-by: William <william@venner.io> Co-authored-by: Rajiv Shah <rajivshah1@icloud.com> Co-authored-by: Mehdi Rezaei <mehdiraized@gmail.com> Co-authored-by: Sanket Chaudhari <chaudharisanket2000@gmail.com>
2021-04-11 12:22:07 +03:00
createTauriApp(process.argv.slice(2)).catch((err) => {
console.error(err);
});