Skip to content

Commit 775f09f

Browse files
committed
restore android build
1 parent 2758944 commit 775f09f

File tree

5 files changed

+23
-0
lines changed

5 files changed

+23
-0
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ jobs:
8888
runner: windows-latest
8989
archive: zip
9090
build-tool: cargo
91+
- target: aarch64-linux-android
92+
runner: ubuntu-latest
93+
archive: tar.gz
94+
build-tool: cross
9195
- target: arm-unknown-linux-gnueabihf
9296
runner: ubuntu-latest
9397
archive: tar.gz
@@ -254,6 +258,7 @@ jobs:
254258
stage_unix socket-patch-aarch64-unknown-linux-gnu npm/socket-patch-linux-arm64
255259
stage_unix socket-patch-arm-unknown-linux-gnueabihf npm/socket-patch-linux-arm
256260
stage_unix socket-patch-i686-unknown-linux-gnu npm/socket-patch-linux-ia32
261+
stage_unix socket-patch-aarch64-linux-android npm/socket-patch-android-arm64
257262
258263
stage_win socket-patch-x86_64-pc-windows-msvc npm/socket-patch-win32-x64
259264
stage_win socket-patch-i686-pc-windows-msvc npm/socket-patch-win32-ia32
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "@socketsecurity/socket-patch-android-arm64",
3+
"version": "1.6.2",
4+
"description": "socket-patch binary for Android ARM64",
5+
"os": ["android"],
6+
"cpu": ["arm64"],
7+
"publishConfig": {
8+
"access": "public"
9+
},
10+
"license": "MIT",
11+
"repository": {
12+
"type": "git",
13+
"url": "https://github.com/SocketDev/socket-patch"
14+
}
15+
}

npm/socket-patch/bin/socket-patch

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const PLATFORMS = {
1212
"win32 x64": "@socketsecurity/socket-patch-win32-x64",
1313
"win32 ia32": "@socketsecurity/socket-patch-win32-ia32",
1414
"win32 arm64": "@socketsecurity/socket-patch-win32-arm64",
15+
"android arm64": "@socketsecurity/socket-patch-android-arm64",
1516
};
1617

1718
const key = `${process.platform} ${process.arch}`;

npm/socket-patch/bin/socket-patch.test.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ const EXPECTED_KEYS = [
2727
"win32 x64",
2828
"win32 ia32",
2929
"win32 arm64",
30+
"android arm64",
3031
];
3132

3233
describe("npm platform dispatch", () => {

npm/socket-patch/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"node": ">=18.0.0"
2525
},
2626
"optionalDependencies": {
27+
"@socketsecurity/socket-patch-android-arm64": "1.6.2",
2728
"@socketsecurity/socket-patch-darwin-arm64": "1.6.2",
2829
"@socketsecurity/socket-patch-darwin-x64": "1.6.2",
2930
"@socketsecurity/socket-patch-linux-arm": "1.6.2",

0 commit comments

Comments
 (0)