From be89b48feaa43ca4486e7e92216dacdbc0c618dd Mon Sep 17 00:00:00 2001 From: lihan Date: Mon, 25 Mar 2024 10:58:33 +0800 Subject: [PATCH] feat: support loong64 arch fix #142 --- .goreleaser.yaml | 5 +++++ install.sh | 2 ++ 2 files changed, 7 insertions(+) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 3fff1b2c..b61babd7 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -17,11 +17,16 @@ builds: - amd64 - arm - arm64 + - loong64 goarm: - "7" ignore: - goos: windows goarch: arm + - goos: windows + goarch: loong64 + - goos: darwin + goarch: loong64 mod_timestamp: "{{ .CommitTimestamp }}" flags: - -trimpath diff --git a/install.sh b/install.sh index da0cde59..e4a7b040 100755 --- a/install.sh +++ b/install.sh @@ -31,6 +31,8 @@ ARCH_TYPE=$(uname -m) if [ "$ARCH_TYPE" = "arm64" ]; then ARCH_TYPE="aarch64" +elif [ "$ARCH_TYPE" = "loongarch64" ]; then + ARCH_TYPE="loong64" fi FILENAME="vfox_${VERSION}_${OS_TYPE}_${ARCH_TYPE}"