Merge remote-tracking branch 'upstream/main' into HEAD
Browse files
.github/workflows/docker-publish.yml
CHANGED
|
@@ -2,7 +2,7 @@ name: Docker Build and Push
|
|
| 2 |
|
| 3 |
on:
|
| 4 |
push:
|
| 5 |
-
branches: [
|
| 6 |
tags: [ 'v*' ]
|
| 7 |
pull_request:
|
| 8 |
branches: [ main, master ]
|
|
|
|
| 2 |
|
| 3 |
on:
|
| 4 |
push:
|
| 5 |
+
branches: [ '**' ] # 所有分支都触发构建
|
| 6 |
tags: [ 'v*' ]
|
| 7 |
pull_request:
|
| 8 |
branches: [ main, master ]
|
src/AntigravityRequester.js
CHANGED
|
@@ -26,14 +26,14 @@ class antigravityRequester {
|
|
| 26 |
const arch = os.arch();
|
| 27 |
|
| 28 |
let filename;
|
| 29 |
-
if (platform === 'win32') {
|
| 30 |
filename = 'antigravity_requester_windows_amd64.exe';
|
| 31 |
-
} else if (platform === 'android') {
|
| 32 |
filename = 'antigravity_requester_android_arm64';
|
| 33 |
-
} else if (platform === 'linux') {
|
| 34 |
filename = 'antigravity_requester_linux_amd64';
|
| 35 |
} else {
|
| 36 |
-
throw new Error(`Unsupported platform: ${platform}`);
|
| 37 |
}
|
| 38 |
|
| 39 |
const binPath = this.binPath || path.join(__dirname, 'bin');
|
|
|
|
| 26 |
const arch = os.arch();
|
| 27 |
|
| 28 |
let filename;
|
| 29 |
+
if (platform === 'win32' && arch === "x64") {
|
| 30 |
filename = 'antigravity_requester_windows_amd64.exe';
|
| 31 |
+
} else if (platform === 'android' && arch === "arm64") {
|
| 32 |
filename = 'antigravity_requester_android_arm64';
|
| 33 |
+
} else if (platform === 'linux' && arch === "x64") {
|
| 34 |
filename = 'antigravity_requester_linux_amd64';
|
| 35 |
} else {
|
| 36 |
+
throw new Error(`Unsupported platform: ${platform}+${arch}`);
|
| 37 |
}
|
| 38 |
|
| 39 |
const binPath = this.binPath || path.join(__dirname, 'bin');
|