Skip to content

Commit f3c9e65

Browse files
committed
fix: simplify cross-compilation for npm package
- Remove ARM64 targets that have keyring dependency issues - Focus on x64 platforms (Windows, macOS, Linux) for initial release - Update install.js to provide helpful error for unsupported architectures - Remove cross-compilation setup steps from workflow This provides stable npm package support for the most common platforms.
1 parent 7a173d5 commit f3c9e65

File tree

3 files changed

+3
-23
lines changed

3 files changed

+3
-23
lines changed

.github/workflows/release-npm.yml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,9 @@ jobs:
2424
- target: x86_64-unknown-linux-gnu
2525
os: ubuntu-latest
2626
archive: tar.gz
27-
- target: aarch64-unknown-linux-gnu
28-
os: ubuntu-latest
29-
archive: tar.gz
3027
- target: x86_64-apple-darwin
3128
os: macos-latest
3229
archive: tar.gz
33-
- target: aarch64-apple-darwin
34-
os: macos-latest
35-
archive: tar.gz
3630
- target: x86_64-pc-windows-msvc
3731
os: windows-latest
3832
archive: zip
@@ -46,17 +40,6 @@ jobs:
4640
with:
4741
targets: ${{ matrix.target }}
4842

49-
- name: Install cross-compilation tools
50-
if: matrix.target == 'aarch64-unknown-linux-gnu'
51-
run: |
52-
sudo apt-get update
53-
sudo apt-get install -y gcc-aarch64-linux-gnu
54-
55-
- name: Configure cross-compilation
56-
if: matrix.target == 'aarch64-unknown-linux-gnu'
57-
run: |
58-
echo '[target.aarch64-unknown-linux-gnu]' >> ~/.cargo/config.toml
59-
echo 'linker = "aarch64-linux-gnu-gcc"' >> ~/.cargo/config.toml
6043

6144
- name: Build binary
6245
working-directory: studio-mcp-server

studio-mcp-server/npm/install.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,11 @@ function getPlatform() {
2222
throw new Error(`Unsupported platform: ${type}`);
2323
}
2424

25-
// Determine architecture
25+
// Determine architecture - only support x64 for now
2626
if (arch === "x64") {
2727
archSuffix = "x86_64";
28-
} else if (arch === "arm64") {
29-
archSuffix = "aarch64";
3028
} else {
31-
throw new Error(`Unsupported architecture: ${arch}`);
29+
throw new Error(`Unsupported architecture: ${arch}. Only x64 is currently supported. Please install from source: cargo install --git https://github.com/pulseengine/studio-mcp.git studio-mcp-server`);
3230
}
3331

3432
return `${archSuffix}-${platform}`;

studio-mcp-server/npm/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
"win32"
4242
],
4343
"cpu": [
44-
"x64",
45-
"arm64"
44+
"x64"
4645
]
4746
}

0 commit comments

Comments
 (0)