Skip to content

Commit 4a8dec4

Browse files
authored
Update jfj.yml
1 parent de7f9d5 commit 4a8dec4

1 file changed

Lines changed: 15 additions & 7 deletions

File tree

.github/workflows/jfj.yml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,11 @@ jobs:
6969
exit 1
7070
fi
7171
ls -lh DokkanSparking_Release_5.25.3.ipa
72-
# Unzip and inspect CydiaSubstrate dylibs
7372
unzip -q DokkanSparking_Release_5.25.3.ipa -d temp_ipa
7473
echo "Inspecting CydiaSubstrate dylibs:"
75-
find temp_ipa -type f -path "*CydiaSubstrate.framework/Libraries/*.dylib" -exec file {} \;
76-
# Remove CydiaSubstrate.framework
74+
find temp_ipa -type f -path "*CydiaSubstrate.framework/Libraries/*.dylib" -exec file {} \; || echo "No CydiaSubstrate dylibs found"
7775
rm -rf temp_ipa/Payload/BNGI0221.app/Frameworks/CydiaSubstrate.framework
7876
echo "Removed CydiaSubstrate.framework"
79-
# Re-zip IPA
8077
cd temp_ipa
8178
zip -qr ../repaired_ipa.ipa .
8279
cd ..
@@ -118,11 +115,22 @@ jobs:
118115
# Step 7: Create manifest for OTA installation
119116
- name: Create Manifest for OTA Installation
120117
run: |
121-
# Extract bundle ID from mobileprovision
122-
/usr/libexec/PlistBuddy -c "Print :Entitlements:application-identifier" "${{ steps.find-files.outputs.mobileprovision_file }}" > temp_bundle_id.txt
118+
# Decode mobileprovision
119+
security cms -D -i "${{ steps.find-files.outputs.mobileprovision_file }}" > decoded_provision.plist
120+
if [ ! -f decoded_provision.plist ]; then
121+
echo "Error: Failed to decode mobileprovision"
122+
exit 1
123+
fi
124+
echo "Decoded mobileprovision contents:"
125+
cat decoded_provision.plist
126+
# Extract bundle ID
127+
/usr/libexec/PlistBuddy -c "Print :Entitlements:application-identifier" decoded_provision.plist > temp_bundle_id.txt || {
128+
echo "Warning: Failed to extract bundle ID, using fallback"
129+
echo "GLB.Dkkn.Sparking.dev" > temp_bundle_id.txt
130+
}
123131
BUNDLE_ID=$(cat temp_bundle_id.txt | cut -d'.' -f2-)
124132
if [ -z "$BUNDLE_ID" ]; then
125-
echo "Error: Could not extract bundle ID"
133+
echo "Error: Could not extract or set bundle ID"
126134
exit 1
127135
fi
128136
echo "Bundle ID: $BUNDLE_ID"

0 commit comments

Comments
 (0)