From ec1e3db603f2048bb3452370381031e42be91030 Mon Sep 17 00:00:00 2001 From: Pete Cornish Date: Sun, 16 Jul 2023 19:44:46 +0000 Subject: [PATCH] fix: removes goreleaser replacements config. --- .gitignore | 1 + .goreleaser.yml | 8 +------- install/install_imposter.sh | 12 ++++++------ 3 files changed, 8 insertions(+), 13 deletions(-) diff --git a/.gitignore b/.gitignore index d951c0b..d5a5f08 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ .idea/ dist/ .imposter/ +oryxBuildBinary diff --git a/.goreleaser.yml b/.goreleaser.yml index 2b2ffae..af4d25b 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -17,13 +17,7 @@ builds: - arm - arm64 archives: - - replacements: - darwin: macOS - linux: Linux - windows: Windows - 386: i386 - amd64: x86_64 - format_overrides: + - format_overrides: - goos: windows format: zip checksum: diff --git a/install/install_imposter.sh b/install/install_imposter.sh index b468aa8..6456f60 100755 --- a/install/install_imposter.sh +++ b/install/install_imposter.sh @@ -46,15 +46,15 @@ function is_linux() { function find_arch() { if is_macos; then case "$(uname -m)" in - *i386* ) IMPOSTER_ARCH="x86_64" ;; - *x86_64* ) IMPOSTER_ARCH="x86_64" ;; + *i386* ) IMPOSTER_ARCH="amd64" ;; + *x86_64* ) IMPOSTER_ARCH="amd64" ;; *arm64* ) IMPOSTER_ARCH="arm64" ;; * ) unsupported_arch;; esac else case "$(uname -m)" in - *i686* ) IMPOSTER_ARCH="x86_64" ;; - *x86_64* ) IMPOSTER_ARCH="x86_64" ;; + *i686* ) IMPOSTER_ARCH="amd64" ;; + *x86_64* ) IMPOSTER_ARCH="amd64" ;; *armv6* ) IMPOSTER_ARCH="arm" ;; *armv7* ) IMPOSTER_ARCH="arm" ;; *arm64* ) IMPOSTER_ARCH="arm64" ;; @@ -65,9 +65,9 @@ function find_arch() { function find_os() { if is_macos; then - IMPOSTER_OS="macOS" + IMPOSTER_OS="darwin" elif is_linux; then - IMPOSTER_OS="Linux" + IMPOSTER_OS="linux" else unsupported_arch fi