Skip to content

Commit 3d8c89f

Browse files
fix(template): fix tauri hardcoded lib names (#2111)
* fix: replace hardcoded lib names by project name * add: changeset patch version bump file * remove: incorrect bump file creation * add: patch bump file * update: .changeset/hot-gorillas-push.md Co-authored-by: 苏向夜 <[email protected]> --------- Co-authored-by: 苏向夜 <[email protected]>
1 parent 3836f36 commit 3d8c89f

File tree

7 files changed

+11
-6
lines changed

7 files changed

+11
-6
lines changed

.changeset/hot-gorillas-push.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"create-farm": patch
3+
---
4+
5+
Remove hardcored Tauri lib names in templates

crates/create-farm-rs/templates/tauri2/preact/src-tauri/src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
33

44
fn main() {
5-
preact_lib::run()
5+
<FARM-TEMPLATE-NAME>_lib::run()
66
}

crates/create-farm-rs/templates/tauri2/react/src-tauri/src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
33

44
fn main() {
5-
react_lib::run()
5+
<FARM-TEMPLATE-NAME>_lib::run()
66
}

crates/create-farm-rs/templates/tauri2/solid/src-tauri/src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
33

44
fn main() {
5-
solid_lib::run()
5+
<FARM-TEMPLATE-NAME>_lib::run()
66
}

crates/create-farm-rs/templates/tauri2/svelte/src-tauri/src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
33

44
fn main() {
5-
svelte_lib::run()
5+
<FARM-TEMPLATE-NAME>_lib::run()
66
}

crates/create-farm-rs/templates/tauri2/vanilla/src-tauri/src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
33

44
fn main() {
5-
vanilla_lib::run()
5+
<FARM-TEMPLATE-NAME>_lib::run()
66
}

crates/create-farm-rs/templates/tauri2/vue/src-tauri/src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
33

44
fn main() {
5-
vue_lib::run()
5+
<FARM-TEMPLATE-NAME>_lib::run()
66
}

0 commit comments

Comments
 (0)