diff options
| author | Fuwn <[email protected]> | 2026-03-30 12:25:15 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-03-30 12:25:15 +0000 |
| commit | d6a97da8aa4c3e4e693dc43527961de22fea393d (patch) | |
| tree | 13a154189c5a54fca54cdcf19c46ea76d824a950 | |
| parent | Fix post details share presentation on iOS (diff) | |
| download | sora-testing-d6a97da8aa4c3e4e693dc43527961de22fea393d.tar.xz sora-testing-d6a97da8aa4c3e4e693dc43527961de22fea393d.zip | |
| -rw-r--r-- | justfile | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -61,7 +61,8 @@ run: just _open {{target}} install derived_data=derived_data location=location: - cp -r {{derived_data}}/{{target}}-*/Build/Products/Release/{{target}}.app {{location}} + app_path="$(find {{derived_data}} -maxdepth 6 -path '*/Build/Products/Release/{{target}}.app' -print | xargs ls -td 2>/dev/null | head -n 1)"; [ -n "${app_path}" ] || { echo "No built app found for {{target}}" >&2; exit 1; }; \ + cp -r "${app_path}" {{location}} generate: command -v xcodegen >/dev/null 2>&1 \ @@ -69,7 +70,8 @@ generate: || DEVELOPMENT_TEAM='{{development_team}}' mint run xcodegen@synced_folder generate install_ios derived_data=derived_data configuration="Release": - xcrun devicectl device install app --device {{device_identifier}} {{derived_data}}/{{target}}-*/Build/Products/{{configuration}}-iphoneos/{{target}}.app + app_path="$(find {{derived_data}} -maxdepth 6 -path '*/Build/Products/{{configuration}}-iphoneos/{{target}}.app' -print | xargs ls -td 2>/dev/null | head -n 1)"; [ -n "${app_path}" ] || { echo "No iOS app found for {{target}} ({{configuration}})" >&2; exit 1; }; \ + xcrun devicectl device install app --device {{device_identifier}} "${app_path}" run_ios flags="": xcrun devicectl device process launch {{flags}} --device {{device_identifier}} {{identifier}} |