Skip to content

Commit

Permalink
fix: removes goreleaser replacements config.
Browse files Browse the repository at this point in the history
  • Loading branch information
outofcoffee committed Jul 16, 2023
1 parent 73048c2 commit ec1e3db
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 13 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
.idea/
dist/
.imposter/
oryxBuildBinary
8 changes: 1 addition & 7 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
12 changes: 6 additions & 6 deletions install/install_imposter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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" ;;
Expand All @@ -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
Expand Down

0 comments on commit ec1e3db

Please sign in to comment.