Skip to content

High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.

fix: align architecture naming with goreleaser (x64 → amd64)

Mario44599d61286e
diff --git a/npm/README.md b/npm/README.md
index a81f9747..9b8bbd4e 100644
--- a/npm/README.md
+++ b/npm/README.md
@@ -15,14 +15,15 @@ npm install -g pinchtab
```
On install, the postinstall script automatically:
-1. Detects your OS and CPU architecture
+1. Detects your OS and CPU architecture (darwin/linux/windows, amd64/arm64)
2. Downloads the precompiled Pinchtab binary from GitHub Releases
-3. Verifies integrity (SHA256 checksum)
-4. Stores in `~/.pinchtab/bin/<version>/` (version-specific to avoid conflicts)
+ - Example: `pinchtab-darwin-amd64`, `pinchtab-linux-arm64.exe` (Windows)
+3. Verifies integrity (SHA256 checksum from `checksums.txt`)
+4. Stores in `~/.pinchtab/bin/0.7.1/` (version-specific to avoid conflicts)
5. Makes it executable
**Requirements:**
-- Internet connection on first install
+- Internet connection on first install (to download binary from GitHub Releases)
- Node.js 16+
- macOS, Linux, or Windows
diff --git a/npm/scripts/postinstall.js b/npm/scripts/postinstall.js
index f662f855..f7ddf595 100644
--- a/npm/scripts/postinstall.js
+++ b/npm/scripts/postinstall.js
@@ -16,7 +16,7 @@ function getVersion() {
function detectPlatform() {
const platform = process.platform;
- const arch = process.arch === 'arm64' ? 'arm64' : 'x64';
+ const arch = process.arch === 'arm64' ? 'arm64' : 'amd64';
const osMap = {
darwin: 'darwin',
@@ -34,7 +34,7 @@ function detectPlatform() {
function getBinaryName(platform) {
const { os, arch } = platform;
- const archName = arch === 'arm64' ? 'arm64' : 'x64';
+ const archName = arch === 'arm64' ? 'arm64' : 'amd64';
if (os === 'windows') {
return `pinchtab-${os}-${archName}.exe`;
diff --git a/npm/src/platform.ts b/npm/src/platform.ts
index 2c8ac172..ab70659b 100644
--- a/npm/src/platform.ts
+++ b/npm/src/platform.ts
@@ -3,12 +3,12 @@ import * as os from 'os';
export interface Platform {
os: 'darwin' | 'linux' | 'windows';
- arch: 'x64' | 'arm64';
+ arch: 'amd64' | 'arm64';
}
export function detectPlatform(): Platform {
const platform = process.platform as any;
- const arch = process.arch === 'arm64' ? 'arm64' : 'x64';
+ const arch = process.arch === 'arm64' ? 'arm64' : 'amd64';
const osMap: Record<string, 'darwin' | 'linux' | 'windows'> = {
darwin: 'darwin',
@@ -26,7 +26,7 @@ export function detectPlatform(): Platform {
export function getBinaryName(platform: Platform): string {
const { os, arch } = platform;
- const archName = arch === 'arm64' ? 'arm64' : 'x64';
+ const archName = arch === 'arm64' ? 'arm64' : 'amd64';
if (os === 'windows') {
return `pinchtab-${os}-${archName}.exe`;