Skip to content

Commit

Permalink
feat: Add loongarch64 support (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaietta authored Mar 14, 2024
2 parents d91c632 + 3ed22df commit 5649bc8
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
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

0 comments on commit 5649bc8

Please sign in to comment.