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; MTL_FAST_MATH = YES;
SDKROOT = macosx; SDKROOT = macosx;
SWIFT_COMPILATION_MODE = wholemodule; SWIFT_COMPILATION_MODE = wholemodule;
ARCHS = "arm64 x86_64";
}; };
name = Release; name = Release;
}; };

View file

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

View file

@ -57,13 +57,15 @@ build:
CODE_SIGN_IDENTITY="-" \ CODE_SIGN_IDENTITY="-" \
CODE_SIGNING_REQUIRED=NO CODE_SIGNING_REQUIRED=NO
# Build Release # Build Release (Universal Binary for Intel + Apple Silicon)
release: release:
xcodebuild build \ xcodebuild build \
-project MacTorn/MacTorn.xcodeproj \ -project MacTorn/MacTorn.xcodeproj \
-scheme MacTorn \ -scheme MacTorn \
-configuration Release \ -configuration Release \
-destination 'platform=macOS' \ -destination 'generic/platform=macOS' \
ARCHS="arm64 x86_64" \
ONLY_ACTIVE_ARCH=NO \
CODE_SIGN_IDENTITY="-" \ CODE_SIGN_IDENTITY="-" \
CODE_SIGNING_REQUIRED=NO 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) ![macOS](https://img.shields.io/badge/macOS-13.0+-blue)
![Swift](https://img.shields.io/badge/Swift-5.0-orange) ![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) ![License](https://img.shields.io/badge/License-MIT-green)
<p align="center"> <p align="center">
@ -68,6 +69,7 @@ A native macOS menu bar app for monitoring your **Torn** game status.
## Requirements ## Requirements
- macOS 13.0 (Ventura) or later - 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 - Torn API Key with access to: basic, bars, cooldowns, travel, profile, events, messages, market
## API Data Usage ## API Data Usage