Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add loongarch64 support #98

Merged
merged 3 commits into from
Mar 14, 2024
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
5 changes: 5 additions & 0 deletions .changeset/tasty-humans-clean.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"app-builder-bin": minor
---

feat: Add loongarch64 support
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ else
ifeq ($(UNAME_S),Linux)
ifeq ($(UNAME_M),riscv64)
OS_ARCH := linux_riscv64
else ifeq ($(UNAME_M),loongarch64)
OS_ARCH := linux_loong64
else
OS_ARCH := linux_amd64
endif
Expand Down
2 changes: 1 addition & 1 deletion pkg/package-format/appimage/appImage.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func ConfigureCommand(app *kingpin.Application) {
appDir: command.Flag("app", "The app dir.").Short('a').Required().String(),
stageDir: command.Flag("stage", "The stage dir.").Short('s').Required().String(),
output: command.Flag("output", "The output file.").Short('o').Required().String(),
arch: command.Flag("arch", "The arch.").Default("x64").Enum("x64", "ia32", "armv7l", "arm64", "riscv64"),
arch: command.Flag("arch", "The arch.").Default("x64").Enum("x64", "ia32", "armv7l", "arm64", "riscv64", "loong64"),

template: command.Flag("template", "The template file.").String(),
license: command.Flag("license", "The license file.").String(),
Expand Down
3 changes: 3 additions & 0 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ GOOS=linux GOARCH=arm go build -ldflags='-s -w' -o linux/arm/app-builder
mkdir -p linux/arm64
GOOS=linux GOARCH=arm64 go build -ldflags='-s -w' -o linux/arm64/app-builder

mkdir -p linux/loong64
GOOS=linux GOARCH=loong64 go build -ldflags='-s -w' -o linux/loong64/app-builder

mkdir -p win/ia32
# $env:GOARCH='386'; go build -o win/ia32/app-builder.exe
GOOS=windows GOARCH=386 go build -o win/ia32/app-builder.exe
Expand Down
Loading