Skip to content

Commit 66a0298

Browse files
authored
fix: fix productName incorrectly set when initializing a project in current directory (#621)
* fix: fix `productName` incorrectly set when initializing a project in current directory closes #616 * Update product-name-cwd.md
1 parent 177b153 commit 66a0298

4 files changed

Lines changed: 8 additions & 3 deletions

File tree

.changes/product-name-cwd.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"create-tauri-app": patch
3+
"create-tauri-app-js": patch
4+
---
5+
6+
Fix `productName` incorrectly set when initializing a project in current directory

src/template.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,6 @@ impl<'a> Template {
262262
("alpha", alpha_str.as_str()),
263263
("pkg_manager_run_command", pkg_manager.run_cmd()),
264264
("lib_name", &lib_name),
265-
("project_name", project_name),
266265
("package_name", package_name),
267266
(
268267
"double_dash_with_space",

templates/_base_/src-tauri/%(alpha-mobile)%tauri.conf.json.lte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"productName": "{% project_name %}",
2+
"productName": "{% package_name %}",
33
"version": "0.0.0",
44
"identifier": "com.tauri.dev",
55
"build": {

templates/_base_/src-tauri/%(stable)%tauri.conf.json.lte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"withGlobalTauri": true{% endif %}
88
},
99
"package": {
10-
"productName": "{% project_name %}",
10+
"productName": "{% package_name %}",
1111
"version": "0.0.0"
1212
},
1313
"tauri": {

0 commit comments

Comments
 (0)