@@ -102,33 +102,36 @@ jobs:
102102 # Sign the IPA with error handling
103103 - name : Sign IPA
104104 run : |
105- # Verify files exist
106- echo "Checking required files..."
107- ls -la ./Cert/Distribution.p12
108- ls -la ./Cert/Distribution.mobileprovision
109- ls -la ./ipa /Feather.ipa
105+ # Get absolute paths
106+ CERT_PATH=$(realpath ./Cert/Distribution.p12)
107+ PROV_PATH=$(realpath ./Cert/Distribution.mobileprovision)
108+ IPA_PATH=$(realpath ./ipa/Feather.ipa)
109+ SIGNED_PATH=$(realpath ./signed) /Feather-signed .ipa
110110
111- # Create signed directory
112- mkdir -p signed
111+ echo "Using paths:"
112+ echo "Certificate: $CERT_PATH"
113+ echo "Provisioning: $PROV_PATH"
114+ echo "IPA: $IPA_PATH"
115+ echo "Output: $SIGNED_PATH"
113116
114- # Run zsign with proper flags (fixed formatting)
115- echo "Running zsign..."
116- zsign -f -k ./Cert/Distribution.p12 -p 1234 -m ./Cert/Distribution.mobileprovision -o ./signed/Feather-signed.ipa -z 9 -v ./ipa/Feather.ipa || {
117- echo "zsign failed with error code $?"
118- echo "Temp directory contents:"
119- ls -la /tmp/zsign_folder_* || echo "No temp folder found"
117+ # Run zsign with absolute paths
118+ zsign -f -k "$CERT_PATH" -p 1234 -m "$PROV_PATH" -o "$SIGNED_PATH" -z 9 -v "$IPA_PATH"
119+
120+ # Check exit code
121+ ZSIGN_EXIT=$?
122+ if [ $ZSIGN_EXIT -ne 0 ]; then
123+ echo "zsign failed with exit code $ZSIGN_EXIT"
120124 exit 1
121- }
125+ fi
122126
123127 # Verify signed IPA was created
124- if [ ! -f "./signed/Feather-signed.ipa " ]; then
128+ if [ ! -f "$SIGNED_PATH " ]; then
125129 echo "Signed IPA was not created!"
126- echo "Signed directory contents:"
127130 ls -la ./signed/
128131 exit 1
129132 else
130133 echo "Signed IPA created successfully:"
131- ls -lh ./signed/Feather-signed.ipa
134+ ls -lh "$SIGNED_PATH"
132135 fi
133136
134137 # Debug directory contents
@@ -200,6 +203,7 @@ jobs:
200203 EOL
201204
202205 # Update plist file with new IPA URL
206+ - name : Update Plist URL
203207 - name : Update Plist File
204208 if : github.ref == 'refs/heads/main' && success()
205209 run : |
0 commit comments