Skip to content

Commit f284332

Browse files
author
刘威
committed
fix: publish builds with embedded adb resources
- make package scripts explicitly use electron-builder.yml - keep packaging config in one place so extraResources is applied - add top-level icon settings to electron-builder.yml - bump version to 0.7.47
1 parent 7256b3d commit f284332

File tree

3 files changed

+11
-21
lines changed

3 files changed

+11
-21
lines changed

electron-builder.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
appId: com.bahtya.adb-proxy-browser
22
productName: ADB Proxy Browser
3+
icon: assets/icon.png
34
directories:
45
output: dist
56
files:
@@ -12,6 +13,7 @@ extraResources:
1213
filter:
1314
- '**/*'
1415
win:
16+
icon: assets/icon.png
1517
target:
1618
- target: zip
1719
arch:
@@ -20,12 +22,14 @@ win:
2022
arch:
2123
- x64
2224
mac:
25+
icon: assets/icon.png
2326
target:
2427
- target: zip
2528
arch:
2629
- x64
2730
- arm64
2831
linux:
32+
icon: assets/icon.png
2933
target:
3034
- target: AppImage
3135
arch:

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"name": "adb-proxy-browser",
3-
"version": "0.7.46",
3+
"version": "0.7.47",
44
"description": "A customized browser that routes traffic through ADB tunnel to phone proxy (Clash)",
55
"main": "src/main/index.js",
66
"scripts": {
77
"start": "electron .",
88
"prepare:platform-tools": "node scripts/prepare-platform-tools.js",
9-
"build": "electron-builder",
10-
"build:win": "electron-builder --win",
11-
"build:mac": "electron-builder --mac",
12-
"build:linux": "electron-builder --linux",
9+
"build": "electron-builder --config electron-builder.yml",
10+
"build:win": "electron-builder --config electron-builder.yml --win",
11+
"build:mac": "electron-builder --config electron-builder.yml --mac",
12+
"build:linux": "electron-builder --config electron-builder.yml --linux",
1313
"debug:screenshot": "electron scripts/debug-screenshot.js",
1414
"debug:auto": "electron scripts/debug-auto.js",
1515
"test:browser": "electron scripts/test-browser-features.js"
@@ -31,20 +31,6 @@
3131
"ssh2": "^1.17.0",
3232
"usb": "^2.11.0"
3333
},
34-
"build": {
35-
"appId": "com.bahtya.adb-proxy-browser",
36-
"productName": "ADB Proxy Browser",
37-
"icon": "assets/icon.png",
38-
"mac": {
39-
"icon": "assets/icon.png"
40-
},
41-
"win": {
42-
"icon": "assets/icon.png"
43-
},
44-
"linux": {
45-
"icon": "assets/icon.png"
46-
}
47-
},
4834
"devDependencies": {
4935
"electron": "^28.0.0",
5036
"electron-builder": "^24.9.1"

0 commit comments

Comments
 (0)