@@ -98,17 +98,20 @@ jobs:
9898 # Create signed directory if it doesn't exist
9999 mkdir -p signed
100100
101- # Run zsign with full debugging
102- set -x # Enable command echo
103- zsign -k ./Cert/Distribution.p12 -p "$(cat ./Cert/password.txt) " -m ./Cert/Distribution.mobileprovision -o ./signed/Feather-signed.ipa ./ipa/Feather.ipa -v || {
101+ # Use password directly
102+ echo "Using password: 1234"
103+ zsign -k ./Cert/Distribution.p12 -p "1234 " -m ./Cert/Distribution.mobileprovision -o ./signed/Feather-signed.ipa ./ipa/Feather.ipa -v || {
104104 echo "zsign failed with error code $?"
105105 echo "Checking if temporary files exist:"
106106 ls -la /tmp/zsign_folder_* || echo "No temp folder found"
107107 exit 1
108108 }
109109
110- echo "Checking signed IPA:"
111- ls -la ./signed/ || echo "Signed directory is empty"
110+ # Verify signed IPA was created
111+ if [ ! -f "./signed/Feather-signed.ipa" ]; then
112+ echo "Signed IPA was not created!"
113+ exit 1
114+ fi
112115
113116 # Debug directory contents
114117 - name : List directory contents
@@ -117,7 +120,7 @@ jobs:
117120 ls -la ./ipa || echo "ipa directory not found"
118121 ls -la ./signed || echo "signed directory not found"
119122
120- # Upload artifact only if signing succeeded
123+ # Upload artifact with name
121124 - name : Upload Signed IPA
122125 uses : actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392
123126 if : success() && hashFiles('./signed/Feather-signed.ipa') != ''
@@ -130,7 +133,7 @@ jobs:
130133 - name : Create Release
131134 id : create_release
132135 uses : softprops/action-gh-release@v1
133- if : github.ref == 'refs/heads/main'
136+ if : github.ref == 'refs/heads/main' && hashFiles('./signed/Feather-signed.ipa') != ''
134137 with :
135138 files : ./signed/Feather-signed.ipa
136139 tag_name : v${{ github.run_number }}
@@ -140,12 +143,50 @@ jobs:
140143 env :
141144 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
142145
146+ # Copy plist file to workspace
147+ - name : Setup Plist File
148+ run : |
149+ echo "Creating plist file..."
150+ cat > Feather.plist << 'EOL'
151+ <?xml version="1.0" encoding="UTF-8"?>
152+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
153+ <plist version="1.0">
154+ <dict>
155+ <key>items</key>
156+ <array>
157+ <dict>
158+ <key>assets</key>
159+ <array>
160+ <dict>
161+ <key>kind</key>
162+ <string>software-package</string>
163+ <key>url</key>
164+ <string>https://github.com/NeoSigniOS/SignedIPAs/raw/main/ipa/Feather.ipa</string>
165+ </dict>
166+ </array>
167+ <key>metadata</key>
168+ <dict>
169+ <key>bundle-identifier</key>
170+ <string>kh.crysalis.feather</string>
171+ <key>bundle-version</key>
172+ <string>1.4.0</string>
173+ <key>kind</key>
174+ <string>software</string>
175+ <key>title</key>
176+ <string>Feather</string>
177+ </dict>
178+ </dict>
179+ </array>
180+ </dict>
181+ </plist>
182+ EOL
183+
143184 # Update plist file with new IPA URL
144185 - name : Update Plist File
145- if : github.ref == 'refs/heads/main'
186+ if : github.ref == 'refs/heads/main' && success()
146187 run : |
147- RELEASE_URL="${{ steps.create_release.outputs.upload_url }}"
148- RELEASE_URL=${RELEASE_URL%\{*}
188+ RELEASE_URL="${{ steps.create_release.outputs.html_url }}"
189+ RELEASE_URL=" ${RELEASE_URL/tag/download}/Feather-signed.ipa"
149190 sed -i "s|https://.*\.ipa|$RELEASE_URL|g" Feather.plist
150191
151192 # Commit and push updated plist
0 commit comments