refactor: rename Go x86_64 binary from amd64 to x86_64

Unify architecture naming across Go binaries and Android APKs.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
KoheiYamashita 2026-03-01 01:44:27 +09:00
parent fd3ae550d4
commit 3b3c3bc884
4 changed files with 5 additions and 5 deletions

View file

@ -31,7 +31,7 @@ jobs:
RELEASE_TAG: ${{ github.event.release.tag_name }} RELEASE_TAG: ${{ github.event.release.tag_name }}
run: | run: |
gh release upload "$RELEASE_TAG" \ gh release upload "$RELEASE_TAG" \
build/clawdroid-linux-amd64 \ build/clawdroid-linux-x86_64 \
build/clawdroid-linux-arm64 \ build/clawdroid-linux-arm64 \
build/clawdroid-linux-arm build/clawdroid-linux-arm

View file

@ -39,7 +39,7 @@ UNAME_M:=$(shell uname -m)
# Platform-specific settings (Linux only) # Platform-specific settings (Linux only)
PLATFORM=linux PLATFORM=linux
ifeq ($(UNAME_M),x86_64) ifeq ($(UNAME_M),x86_64)
ARCH=amd64 ARCH=x86_64
else ifeq ($(UNAME_M),aarch64) else ifeq ($(UNAME_M),aarch64)
ARCH=arm64 ARCH=arm64
else else
@ -70,7 +70,7 @@ build: generate
build-all: generate build-all: generate
@echo "Building for multiple platforms..." @echo "Building for multiple platforms..."
@mkdir -p $(BUILD_DIR) @mkdir -p $(BUILD_DIR)
GOOS=linux GOARCH=amd64 $(GO) build $(LDFLAGS) -o $(BUILD_DIR)/$(BINARY_NAME)-linux-amd64 ./$(CMD_DIR) GOOS=linux GOARCH=amd64 $(GO) build $(LDFLAGS) -o $(BUILD_DIR)/$(BINARY_NAME)-linux-x86_64 ./$(CMD_DIR)
GOOS=linux GOARCH=arm64 $(GO) build $(LDFLAGS) -o $(BUILD_DIR)/$(BINARY_NAME)-linux-arm64 ./$(CMD_DIR) GOOS=linux GOARCH=arm64 $(GO) build $(LDFLAGS) -o $(BUILD_DIR)/$(BINARY_NAME)-linux-arm64 ./$(CMD_DIR)
GOOS=linux GOARCH=arm $(GO) build $(LDFLAGS) -o $(BUILD_DIR)/$(BINARY_NAME)-linux-arm ./$(CMD_DIR) GOOS=linux GOARCH=arm $(GO) build $(LDFLAGS) -o $(BUILD_DIR)/$(BINARY_NAME)-linux-arm ./$(CMD_DIR)
@echo "All builds complete" @echo "All builds complete"

View file

@ -272,7 +272,7 @@ Termux 版は Go バックエンドを APK に内蔵せず、Termux 上で別プ
|-------------|---------| |-------------|---------|
| 64-bit ARM最近のデバイスの大半 | `clawdroid-linux-arm64` | | 64-bit ARM最近のデバイスの大半 | `clawdroid-linux-arm64` |
| 32-bit ARM | `clawdroid-linux-arm` | | 32-bit ARM | `clawdroid-linux-arm` |
| x86_64 | `clawdroid-linux-amd64` | | x86_64 | `clawdroid-linux-x86_64` |
Termux で `uname -m` を実行するとアーキテクチャを確認できます。 Termux で `uname -m` を実行するとアーキテクチャを確認できます。

View file

@ -274,7 +274,7 @@ Download from [GitHub Releases](https://github.com/KarakuriAgent/clawdroid/relea
|-------------|--------| |-------------|--------|
| 64-bit ARM (most modern devices) | `clawdroid-linux-arm64` | | 64-bit ARM (most modern devices) | `clawdroid-linux-arm64` |
| 32-bit ARM | `clawdroid-linux-arm` | | 32-bit ARM | `clawdroid-linux-arm` |
| x86_64 | `clawdroid-linux-amd64` | | x86_64 | `clawdroid-linux-x86_64` |
You can check your architecture in Termux with `uname -m`. You can check your architecture in Termux with `uname -m`.