Skip to content

Commit

Permalink
fix: s2c script ignoring Apple Silicon's cpu other than M1 (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaeltonholo authored Aug 2, 2024
1 parent b3ff96e commit 5af260c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION=1.3.1
VERSION=1.3.2
6 changes: 3 additions & 3 deletions s2c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ VERBOSE=false
PLATFORM_WINDOWS="mingwX64"
PLATFORM_LINUX="linuxX64"
PLATFORM_MAC_OS="macosX64"
PLATFORM_MAC_M1="macosArm64"
PLATFORM_MAC_APPLE_SILICON="macosArm64"

if [[ "$*" == *"--debug"* ]]; then
DEBUG=true
Expand Down Expand Up @@ -72,8 +72,8 @@ fn_os_check() {
*) PLATFORM="UNKNOWN:${unameOut}"
esac

if [[ $PLATFORM == "$PLATFORM_MAC_OS" ]] && sysctl -n machdep.cpu.brand_string | grep -q 'Apple M1'; then
PLATFORM=$PLATFORM_MAC_M1
if [[ $PLATFORM == "$PLATFORM_MAC_OS" ]] && [[ $(uname -m ) == "arm64" ]]; then
PLATFORM=$PLATFORM_MAC_APPLE_SILICON
fi
}

Expand Down

0 comments on commit 5af260c

Please sign in to comment.