diff --git a/generator/index.js b/generator/index.js index f6dcdac..6108e8b 100644 --- a/generator/index.js +++ b/generator/index.js @@ -13,6 +13,7 @@ module.exports = async (api, options) => { init({ directory: api.resolve('.'), + appName: options.appName, customConfig: { build: null, tauri: { diff --git a/package.json b/package.json index 8665ddf..156c562 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "dependencies": { "@vue/cli-shared-utils": "^4.1.1", "execa": "^3.4.0", - "tauri": "^0.11.0" + "tauri": "^0.11.1" }, "devDependencies": { "@vue/cli": "^4.1.1", diff --git a/prompts.js b/prompts.js index e0f41d0..e3e428a 100644 --- a/prompts.js +++ b/prompts.js @@ -1,9 +1,16 @@ module.exports = pkg => [ + { + type: 'input', + name: 'appName', + message: 'What should the app name be?', + validate: input => !!input, + default: pkg.name + }, { type: 'input', name: 'windowTitle', message: 'What should the window title be?', validate: input => !!input, - default: pkg.name + default: 'Tauri App' } ] diff --git a/yarn.lock b/yarn.lock index cdf135b..81581e8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -13334,10 +13334,10 @@ tasklist@^3.1.0: pify "^2.2.0" sec "^1.0.0" -tauri@^0.11.0: - version "0.11.0" - resolved "https://registry.yarnpkg.com/tauri/-/tauri-0.11.0.tgz#6f62308383086897c601cce391f08ddba3de5d47" - integrity sha512-2iWw7QCb2/wzZuu4HAPboKb4y158PxnIR9jTLmKFofKn0/uLx20wdUX4fOJg2caT2ahbaT3HQZ0LYD2iYk8vuQ== +tauri@^0.11.1: + version "0.11.1" + resolved "https://registry.yarnpkg.com/tauri/-/tauri-0.11.1.tgz#a49cd1412ad42c810f812942aabd14b85500231a" + integrity sha512-rcnUBpK4vwfc+O0tQcFNNxd8ItHg0DH7CrtzTlWBukrHw7HxuoOQgzqu+o2+UZNlgL4togVky16UhUEG2Djgrw== dependencies: "@tauri-apps/tauri-inliner" "1.14.1" "@tauri-apps/toml" "2.2.4"