Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ build: sync-action-pins sync-action-scripts

# Build for all platforms
.PHONY: build-all
build-all: build-linux build-darwin build-windows
build-all: build-linux build-darwin build-windows build-android

.PHONY: build-linux
build-linux:
Expand All @@ -40,6 +40,10 @@ build-darwin:
build-windows:
GOOS=windows GOARCH=amd64 go build $(LDFLAGS) -o $(BINARY_NAME)-windows-amd64.exe ./cmd/gh-aw

.PHONY: build-android
build-android:
CGO_ENABLED=0 GOOS=android GOARCH=arm64 go build $(LDFLAGS) -o $(BINARY_NAME)-android-arm64 ./cmd/gh-aw

# Build WebAssembly module for browser usage
# Optionally runs wasm-opt (from Binaryen) if available for ~8% size reduction
.PHONY: build-wasm
Expand Down
8 changes: 6 additions & 2 deletions actions/setup-cli/install.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions install-gh-aw.sh
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,11 @@ ARCH=$(uname -m)
# Normalize OS name
case $OS in
Linux)
OS_NAME="linux"
if [ -n "$ANDROID_ROOT" ]; then
OS_NAME="android"
else
OS_NAME="linux"
fi
;;
Darwin)
OS_NAME="darwin"
Expand All @@ -124,7 +128,7 @@ case $OS in
;;
*)
print_error "Unsupported operating system: $OS"
print_info "Supported operating systems: Linux, macOS (Darwin), FreeBSD, Windows"
print_info "Supported operating systems: Linux, macOS (Darwin), FreeBSD, Windows, Android (Termux)"
exit 1
;;
esac
Expand Down
1 change: 1 addition & 0 deletions scripts/build-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ platforms=(
linux-amd64
linux-arm
linux-arm64
android-arm64
windows-amd64
windows-arm64
)
Expand Down
Loading