-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpackage.json
More file actions
26 lines (26 loc) · 1.32 KB
/
Copy pathpackage.json
File metadata and controls
26 lines (26 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{
"name": "flashnote",
"version": "0.3.0",
"description": "轻量级速记应用:全局快捷键快闪记录灵感与 todo",
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"preview": "vite preview",
"tauri": "tauri",
"tauri:dev": "tauri dev",
"tauri:build": "CI=true tauri build && npm run install:macos && npm run copy:release",
"install:macos": "test \"$(uname)\" = Darwin || exit 0; osascript -e 'quit app \"FlashNote\"' 2>/dev/null || true; sleep 1; rm -rf /Applications/FlashNote.app && ditto src-tauri/target/release/bundle/macos/FlashNote.app /Applications/FlashNote.app && xattr -dr com.apple.quarantine /Applications/FlashNote.app",
"copy:release": "test \"$(uname)\" = Darwin || exit 0; V=$(node -p \"require('./package.json').version\"); D=\"release/$V\"; mkdir -p \"$D\"; rm -rf \"$D/FlashNote.app\"; ditto src-tauri/target/release/bundle/macos/FlashNote.app \"$D/FlashNote.app\"; cp -f src-tauri/target/release/bundle/dmg/*.dmg \"$D/\" 2>/dev/null || true; echo \"Artifacts copied to $D\""
},
"devDependencies": {
"@tauri-apps/cli": "^2.1.0",
"typescript": "^5.6.3",
"vite": "^5.4.10"
},
"dependencies": {
"@tauri-apps/api": "^2.1.1",
"@tauri-apps/plugin-clipboard-manager": "^2.3.2",
"@tauri-apps/plugin-global-shortcut": "^2.2.0"
}
}