feat: Add Universal Binary support for Intel and Apple Silicon Macs

- Add ARCHS="arm64 x86_64" to Release configuration for universal builds
- Update Info.plist to use dynamic version variables (MARKETING_VERSION, CURRENT_PROJECT_VERSION)
- Update Makefile release target with proper universal build settings
- Add Universal Binary badge to README
This commit is contained in:
Paweł Orzech 2026-01-19 16:46:03 +00:00
parent 7f836a0bbd
commit 273fd31884
No known key found for this signature in database
5 changed files with 9 additions and 4 deletions

BIN
MacTorn-v1.4.3.zip Normal file

Binary file not shown.

View file

@ -604,6 +604,7 @@
MTL_FAST_MATH = YES;
SDKROOT = macosx;
SWIFT_COMPILATION_MODE = wholemodule;
ARCHS = "arm64 x86_64";
};
name = Release;
};

View file

@ -17,8 +17,8 @@
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>1.3</string>
<string>$(MARKETING_VERSION)</string>
<key>CFBundleVersion</key>
<string>1.3</string>
<string>$(CURRENT_PROJECT_VERSION)</string>
</dict>
</plist>

View file

@ -57,13 +57,15 @@ build:
CODE_SIGN_IDENTITY="-" \
CODE_SIGNING_REQUIRED=NO
# Build Release
# Build Release (Universal Binary for Intel + Apple Silicon)
release:
xcodebuild build \
-project MacTorn/MacTorn.xcodeproj \
-scheme MacTorn \
-configuration Release \
-destination 'platform=macOS' \
-destination 'generic/platform=macOS' \
ARCHS="arm64 x86_64" \
ONLY_ACTIVE_ARCH=NO \
CODE_SIGN_IDENTITY="-" \
CODE_SIGNING_REQUIRED=NO

View file

@ -4,6 +4,7 @@ A native macOS menu bar app for monitoring your **Torn** game status.
![macOS](https://img.shields.io/badge/macOS-13.0+-blue)
![Swift](https://img.shields.io/badge/Swift-5.0-orange)
![Universal](https://img.shields.io/badge/Universal-Intel%20%2B%20Apple%20Silicon-purple)
![License](https://img.shields.io/badge/License-MIT-green)
<p align="center">
@ -68,6 +69,7 @@ A native macOS menu bar app for monitoring your **Torn** game status.
## Requirements
- macOS 13.0 (Ventura) or later
- **Universal Binary**: Supports both Intel (x86_64) and Apple Silicon (arm64) Macs
- Torn API Key with access to: basic, bars, cooldowns, travel, profile, events, messages, market
## API Data Usage