Building VibeTunnel for Different Architectures
Overview
VibeTunnel now supports building separate binaries for arm64 (Apple Silicon) and x86_64 (Intel) architectures. This allows for optimized builds for each platform while maintaining smaller download sizes compared to universal binaries.Local Development
Building for a Specific Architecture
Creating Distribution Packages
The packaging scripts automatically detect the architecture from the built app:Release Builds
The release workflow (release.yml
) automatically:
- Builds separate binaries for arm64 and x86_64
- Creates DMG and ZIP files for each architecture
- Names files according to the pattern:
VibeTunnel-<version>-<arch>.<ext>
Release Artifacts
Each release produces 4 distribution files:VibeTunnel-<version>-arm64.dmg
- Apple Silicon DMG installerVibeTunnel-<version>-arm64.zip
- Apple Silicon ZIP archiveVibeTunnel-<version>-intel.dmg
- Intel DMG installerVibeTunnel-<version>-intel.zip
- Intel ZIP archive
Architecture Detection
The packaging scripts uselipo -info
to detect the architecture of the built binary and automatically append the appropriate suffix to the filename.
Bun Executable
The Bun executable is also built architecture-specifically:- arm64 →
bun-darwin-aarch64
- x64 →
bun-darwin-x64