create-tauri-vue-app 0.0.9 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,8 @@
2
2
  "permissions": {
3
3
  "allow": [
4
4
  "Bash(git add:*)",
5
- "Bash(git commit:*)"
5
+ "Bash(git commit:*)",
6
+ "Bash(git push *)"
6
7
  ]
7
8
  }
8
9
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-tauri-vue-app",
3
- "version": "0.0.9",
3
+ "version": "0.1.0",
4
4
  "description": "Scaffold a new Tauri + Vue desktop application",
5
5
  "type": "module",
6
6
  "bin": {
@@ -7,7 +7,7 @@ export async function getDb() {
7
7
  if (!db) {
8
8
  const home = await path.homeDir();
9
9
  // 分层拼接,自动适配 / 和 \
10
- const dbDir = await path.join(home, '.my-app');
10
+ const dbDir = await path.join(home, '.{{PROJECT_NAME}}');
11
11
  const dbFilePath = await path.join(dbDir, 'app.db');
12
12
  // sqlite 连接串格式:sqlite:完整本地路径
13
13
  const dbUrl = `sqlite:${dbFilePath}`;
@@ -6,7 +6,7 @@ pub fn run() {
6
6
 
7
7
  let app_dir = {
8
8
  let home = dirs::home_dir().expect("failed to get home directory");
9
- let dir = home.join(".my-app").join("app");
9
+ let dir = home.join(".{{PROJECT_NAME}}").join("app");
10
10
  std::fs::create_dir_all(&dir).expect("failed to create app directory");
11
11
  dir
12
12
  };