-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
91 lines (91 loc) · 2.53 KB
/
Copy pathpackage.json
File metadata and controls
91 lines (91 loc) · 2.53 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
{
"name": "customs-code-search",
"version": "1.0.0",
"description": "离线、跨平台的中国海关编码查询桌面应用",
"author": "PA5MIN",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/PA5MIN/customs-code-search.git"
},
"main": "dist-electron/electron/main.js",
"type": "module",
"scripts": {
"db:build": "python3 scripts/build_release_db.py",
"icon:build": "swift scripts/generate_icon.swift",
"audit:privacy": "python3 scripts/privacy_audit.py",
"dev": "concurrently -k \"vite\" \"tsc -p tsconfig.electron.json --watch\" \"wait-on tcp:5173 dist-electron/electron/main.js && cross-env VITE_DEV_SERVER_URL=http://localhost:5173 electron .\"",
"build:renderer": "vite build",
"build:electron": "tsc -p tsconfig.electron.json && cp electron/preload.cjs dist-electron/electron/preload.cjs",
"build": "npm run build:renderer && npm run build:electron",
"test": "vitest run",
"test:watch": "vitest",
"typecheck": "tsc --noEmit && tsc -p tsconfig.electron.json --noEmit",
"package": "npm run build && electron-builder --dir",
"dist": "npm run build && electron-builder"
},
"dependencies": {
"lucide-react": "^0.468.0",
"react": "^19.2.8",
"react-dom": "^19.2.8"
},
"devDependencies": {
"@types/node": "^24.10.0",
"@types/react": "^19.2.0",
"@types/react-dom": "^19.2.0",
"@vitejs/plugin-react": "^5.1.1",
"concurrently": "^9.2.1",
"cross-env": "^10.1.0",
"electron": "^43.3.0",
"electron-builder": "^26.15.3",
"typescript": "^5.9.3",
"vite": "^8.2.1",
"vitest": "^4.1.10",
"wait-on": "^9.0.3"
},
"build": {
"appId": "cn.customs.codesearch",
"productName": "海关编码查询",
"asar": true,
"directories": {
"output": "release"
},
"files": [
"dist/**/*",
"dist-electron/**/*",
"package.json"
],
"extraResources": [
{
"from": "resources/customs_codes.sqlite",
"to": "customs_codes.sqlite"
}
],
"mac": {
"category": "public.app-category.business",
"icon": "build/icon.icns",
"target": [
"dmg",
"zip"
]
},
"win": {
"icon": "build/icon.png",
"target": [
{
"target": "nsis",
"arch": ["x64"]
},
{
"target": "portable",
"arch": ["x64"]
}
]
},
"nsis": {
"oneClick": false,
"allowToChangeInstallationDirectory": true,
"createDesktopShortcut": true
}
}
}