-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
73 lines (73 loc) · 2.43 KB
/
Copy pathpackage.json
File metadata and controls
73 lines (73 loc) · 2.43 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
{
"name": "mac-android-file-share",
"version": "1.0.0",
"description": "Mac to Android USB File Sharing Desktop App",
"main": "dist-electron/main.js",
"scripts": {
"postinstall": "mkdir -p node_modules/electron/dist && unzip -o .electron_cache/electron-v31.7.7-darwin-arm64.zip -d node_modules/electron/dist",
"dev": "ELECTRON_CACHE=$(pwd)/.electron_cache electron_config_cache=$(pwd)/.electron_cache concurrently -k \"vite\" \"tsc -w -p tsconfig.electron.json\" \"wait-on http://localhost:5173 && electron .\"",
"build:electron": "tsc -p tsconfig.electron.json",
"build:react": "vite build",
"build": "npm run build:react && npm run build:electron",
"dist:clean": "rm -rf release",
"dist": "npm run dist:clean && npm run build && ELECTRON_CACHE=$(pwd)/.electron_cache ELECTRON_BUILDER_CACHE=$(pwd)/.electron_builder_cache electron_config_cache=$(pwd)/.electron_cache electron-builder --arm64",
"dist:all": "npm run dist:clean && npm run build && ELECTRON_CACHE=$(pwd)/.electron_cache ELECTRON_BUILDER_CACHE=$(pwd)/.electron_builder_cache electron_config_cache=$(pwd)/.electron_cache electron-builder --arm64 --x64"
},
"dependencies": {
"@devicefarmer/adbkit": "^3.2.6",
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@types/node": "^20.14.9",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react": "^4.3.1",
"concurrently": "^8.2.2",
"electron": "^31.1.0",
"electron-builder": "^24.13.3",
"typescript": "^5.5.2",
"vite": "^5.3.1",
"wait-on": "^7.2.0"
},
"build": {
"appId": "com.mac.android.fileshare",
"productName": "Android File Share",
"icon": "build/icon.png",
"asar": true,
"compression": "maximum",
"directories": {
"output": "release"
},
"files": [
"dist/**/*",
"dist-electron/**/*",
"!**/*.map",
"!**/*.md"
],
"extraResources": [
{
"from": "resources/adb/${platform}-${arch}",
"to": "adb/${platform}-${arch}"
},
{
"from": "resources/icon.png",
"to": "icon.png"
}
],
"mac": {
"category": "public.app-category.utilities",
"icon": "build/icon.png",
"identity": "Apple Development: IT Admin (BD6TZBW27Y)",
"gatekeeperAssess": false,
"target": [
{
"target": "dmg",
"arch": [
"arm64"
]
}
]
}
}
}