sloss-cli 1.3.2 → 1.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build.sh +24 -1
- package/package.json +4 -1
package/build.sh
CHANGED
|
@@ -263,6 +263,25 @@ if [[ "$HTTP_CODE" -lt 200 || "$HTTP_CODE" -ge 300 ]]; then
|
|
|
263
263
|
exit 1
|
|
264
264
|
fi
|
|
265
265
|
|
|
266
|
+
# ─── Submit to TestFlight (production only) ─────────────────────────────────
|
|
267
|
+
TESTFLIGHT_STATUS=""
|
|
268
|
+
if [[ "$PROFILE" == "production" && "$PLATFORM" == "ios" ]]; then
|
|
269
|
+
echo ""
|
|
270
|
+
echo "✈️ Submitting to TestFlight..."
|
|
271
|
+
set +e
|
|
272
|
+
(cd "$PROJECT_DIR" && eas submit --platform ios --path "$ARTIFACT_PATH" --non-interactive --wait 2>&1) | tee /tmp/sloss-submit.log
|
|
273
|
+
SUBMIT_EXIT=${PIPESTATUS[0]}
|
|
274
|
+
set -e
|
|
275
|
+
|
|
276
|
+
if [[ $SUBMIT_EXIT -eq 0 ]]; then
|
|
277
|
+
TESTFLIGHT_STATUS="submitted"
|
|
278
|
+
echo "✅ Submitted to TestFlight"
|
|
279
|
+
else
|
|
280
|
+
TESTFLIGHT_STATUS="failed"
|
|
281
|
+
echo "⚠️ TestFlight submission failed (exit $SUBMIT_EXIT). IPA is still on Sloss."
|
|
282
|
+
fi
|
|
283
|
+
fi
|
|
284
|
+
|
|
266
285
|
# ─── Print results ──────────────────────────────────────────────────────────
|
|
267
286
|
PAGE_URL=$(node -e "try{console.log(JSON.parse(process.argv[1]).page_url||'')}catch{console.log('')}" "$RESPONSE_BODY")
|
|
268
287
|
INSTALL_URL=$(node -e "try{console.log(JSON.parse(process.argv[1]).install_url||'')}catch{console.log('')}" "$RESPONSE_BODY")
|
|
@@ -279,7 +298,11 @@ echo "║ Artifact: $ARTIFACT_PATH"
|
|
|
279
298
|
if [[ -n "$PAGE_URL" ]]; then
|
|
280
299
|
echo "║ Page: $PAGE_URL"
|
|
281
300
|
fi
|
|
282
|
-
if [[
|
|
301
|
+
if [[ "$TESTFLIGHT_STATUS" == "submitted" ]]; then
|
|
302
|
+
echo "║ TestFlight: ✅ Submitted"
|
|
303
|
+
elif [[ "$TESTFLIGHT_STATUS" == "failed" ]]; then
|
|
304
|
+
echo "║ TestFlight: ⚠️ Failed (check logs)"
|
|
305
|
+
elif [[ -n "$INSTALL_URL" ]]; then
|
|
283
306
|
echo "║ Install: $INSTALL_URL"
|
|
284
307
|
fi
|
|
285
308
|
echo "╚══════════════════════════════════════════╝"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sloss-cli",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.3",
|
|
4
4
|
"description": "CLI for Sloss — a self-hosted IPA/APK distribution server",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -30,6 +30,9 @@
|
|
|
30
30
|
"type": "git",
|
|
31
31
|
"url": "git+https://github.com/aualdrich/sloss-cli.git"
|
|
32
32
|
},
|
|
33
|
+
"scripts": {
|
|
34
|
+
"test": "bash test/build.test.sh"
|
|
35
|
+
},
|
|
33
36
|
"engines": {
|
|
34
37
|
"node": ">=18.0.0"
|
|
35
38
|
},
|