platform.sh 281 B

12345678910
  1. if [[ "$OSTYPE" == "linux-gnu"* ]]; then
  2. MACHINE_TYPE=`uname -m`
  3. if [[ "$MACHINE_TYPE" == "aarch64"* ]]; then
  4. IRON_PLATFORM=linux_arm64
  5. elif [[ "$MACHINE_TYPE" == "x86_64"* ]]; then
  6. IRON_PLATFORM=linux_x64
  7. fi
  8. elif [[ "$OSTYPE" == "darwin"* ]]; then
  9. IRON_PLATFORM=macos
  10. fi