Files
Sybil-2/ios/justfile

33 lines
999 B
Makefile
Raw Normal View History

2026-05-03 21:52:49 -07:00
simulator := "platform=iOS Simulator,name=iPhone 16e,OS=latest"
simulator_name := "iPhone 16e"
derived_data := "build/DerivedData"
2026-02-20 00:09:02 -08:00
default:
@just build
2026-06-05 23:19:14 -07:00
generate:
xcodegen --spec project.yml
build: generate
2026-02-20 00:09:02 -08:00
if command -v xcbeautify >/dev/null 2>&1; then \
2026-05-03 21:52:49 -07:00
xcodebuild -scheme Sybil -destination '{{simulator}}' | xcbeautify; \
2026-02-20 00:09:02 -08:00
else \
2026-05-03 21:52:49 -07:00
xcodebuild -scheme Sybil -destination '{{simulator}}'; \
2026-02-20 00:09:02 -08:00
fi
2026-05-03 21:52:49 -07:00
test:
cd Packages/Sybil && xcodebuild test -scheme Sybil -destination '{{simulator}}' -parallel-testing-enabled NO
2026-06-05 23:19:14 -07:00
run: generate
2026-05-03 21:52:49 -07:00
xcrun simctl boot '{{simulator_name}}' 2>/dev/null || true
xcodebuild -scheme Sybil -destination '{{simulator}}' -derivedDataPath '{{derived_data}}'
xcrun simctl install booted '{{derived_data}}/Build/Products/Debug-iphonesimulator/Sybil.app'
xcrun simctl launch booted net.buzzert.sybil2
2026-06-05 23:19:14 -07:00
beta:
fastlane ios beta
2026-05-03 21:52:49 -07:00
screenshot path="build/sybil-screenshot.png":
mkdir -p "$(dirname '{{path}}')"
xcrun simctl io booted screenshot '{{path}}'