Skip to content
Open
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
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,15 @@ ifeq ($(OS),Windows_NT)
endif
else
UNAME_S := $(shell uname -s)
UNAME_M := $(shell uname -m)
ifeq ($(UNAME_S),Linux)
ifeq ($(UNAME_M),riscv64)
OS_ARCH := linux_riscv64
else ifeq ($(UNAME_M),loongarch64)
OS_ARCH := linux_loong64
# uname -m returns ppc64le on little endian systems, so we check if it contains ppc64 instead of an exact match
else ifneq (,$(findstring ppc64,$(UNAME_M)))
OS_ARCH := linux_ppc64
else
OS_ARCH := linux_amd64
endif
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"linux/ia32/app-builder",
"linux/loong64/app-builder",
"linux/riscv64/app-builder",
"linux/ppc64/app-builder",
"linux/x64/app-builder",
"mac/app-builder",
"mac/app-builder_amd64",
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", "loong64"),
arch: command.Flag("arch", "The arch.").Default("x64").Enum("x64", "ia32", "armv7l", "arm64", "riscv64", "ppc64", "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 @@ -19,6 +19,9 @@ GOOS=linux GOARCH=amd64 go build -ldflags='-s -w' -o linux/x64/app-builder
mkdir -p linux/riscv64
GOOS=linux GOARCH=riscv64 go build -ldflags='-s -w' -o linux/riscv64/app-builder

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

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

Expand Down