Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Click the timer icon and a hand-drawn desk opens under it: a window onto the tow

## Install

Requires **macOS 14 Sonoma or later**.
Requires **macOS 14 Sonoma or later**, on Apple silicon or Intel.

### Download

Expand Down
6 changes: 4 additions & 2 deletions scripts/build-app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@
set -eu
cd "$(dirname "$0")/.."

swift build -c release --product FocusGuard
# One binary for Apple silicon and Intel Macs.
arch="--arch arm64 --arch x86_64"
swift build -c release --product FocusGuard $arch
app=dist/FocusGuard.app
rm -rf "$app"
mkdir -p "$app/Contents/MacOS" "$app/Contents/Resources"

cp "$(swift build -c release --show-bin-path)/FocusGuard" "$app/Contents/MacOS/"
cp "$(swift build -c release $arch --show-bin-path)/FocusGuard" "$app/Contents/MacOS/"
cp Resources/Info.plist "$app/Contents/"
cp Resources/AppIcon.icns "$app/Contents/Resources/"
cp -R Resources/en.lproj Resources/pl.lproj "$app/Contents/Resources/"
Expand Down
Loading