From 0803714c7b6f4f989d788dbf7c535c197b977b75 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Thu, 4 Sep 2025 19:34:02 -0700 Subject: feat: Development commit --- justfile | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/justfile b/justfile index a79a134..7a2d32e 100644 --- a/justfile +++ b/justfile @@ -1,6 +1,8 @@ import? 'xcode.just' +import? 'environment.just' target := 'Sora' +identifier := "me.fuwn." + target alias fmt := format alias b := build @@ -12,11 +14,14 @@ fetch: format: just _format {{target}} -build: +build destination="platform=macOS": command -v xcbeautify >/dev/null 2>&1 \ - && xcodebuild -configuration Release -scheme {{target}} build | xcbeautify \ + && xcodebuild -configuration Release -scheme {{target}} -destination '{{destination}}' build | xcbeautify \ || just _build {{target}} +build_ios: + just build "platform=iOS,arch=arm64,name={{device_name}}" + open: just _open {{target}} @@ -26,3 +31,8 @@ install location="/Users/${USER}/Applications" derived_data='/Users/${USER}/Libr generate: mint run xcodegen@synced_folder generate +install_ios location="/Users/${USER}/Applications" derived_data='/Users/${USER}/Library/Developer/Xcode/DerivedData': + xcrun devicectl device install app --device {{device_identifier}} {{derived_data}}/{{target}}-*/Build/Products/Release-iphoneos/{{target}}.app + +run_ios: + xcrun devicectl device process launch --device {{device_identifier}} {{identifier}} -- cgit v1.2.3