mirror of
https://github.com/FoggedLens/deflock-app.git
synced 2026-09-30 21:19:42 +02:00
Build worked - now provisioning profile for .ipa packaging
This commit is contained in:
1 parent
50d2c6cbf6
commit
a30dace404
1 file changed
+32
@@ -179,16 +179,48 @@ jobs:
|
|||||||
# install provisioning profile
|
# install provisioning profile
|
||||||
mkdir -p ~/Library/MobileDevice/Provisioning\ Profiles
|
mkdir -p ~/Library/MobileDevice/Provisioning\ Profiles
|
||||||
cp $PP_PATH ~/Library/MobileDevice/Provisioning\ Profiles/61f9fdb9-bf2d-4d94-b249-63155ee71e74.mobileprovision
|
cp $PP_PATH ~/Library/MobileDevice/Provisioning\ Profiles/61f9fdb9-bf2d-4d94-b249-63155ee71e74.mobileprovision
|
||||||
|
|
||||||
|
# Also install using the profile's internal UUID for better compatibility
|
||||||
|
UUID=$(security cms -D -i $PP_PATH | plutil -extract UUID xml1 -o - - | xmllint --xpath "//string/text()" -)
|
||||||
|
cp $PP_PATH ~/Library/MobileDevice/Provisioning\ Profiles/$UUID.mobileprovision
|
||||||
|
|
||||||
# Debug: Check what we actually have
|
# Debug: Check what we actually have
|
||||||
echo "=== Certificates in keychain ==="
|
echo "=== Certificates in keychain ==="
|
||||||
security find-identity -v -p codesigning $KEYCHAIN_PATH
|
security find-identity -v -p codesigning $KEYCHAIN_PATH
|
||||||
echo "=== Provisioning profiles ==="
|
echo "=== Provisioning profiles ==="
|
||||||
ls -la ~/Library/MobileDevice/Provisioning\ Profiles/
|
ls -la ~/Library/MobileDevice/Provisioning\ Profiles/
|
||||||
|
echo "=== Profile UUID extracted: $UUID ==="
|
||||||
|
|
||||||
|
- name: Create export options
|
||||||
|
run: |
|
||||||
|
cat > ios/exportOptions.plist << EOF
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>destination</key>
|
||||||
|
<string>export</string>
|
||||||
|
<key>method</key>
|
||||||
|
<string>app-store</string>
|
||||||
|
<key>teamID</key>
|
||||||
|
<string>7XG8T28436</string>
|
||||||
|
<key>provisioningProfiles</key>
|
||||||
|
<dict>
|
||||||
|
<key>me.deflock.deflockapp</key>
|
||||||
|
<string>61f9fdb9-bf2d-4d94-b249-63155ee71e74</string>
|
||||||
|
</dict>
|
||||||
|
<key>signingStyle</key>
|
||||||
|
<string>manual</string>
|
||||||
|
<key>stripSwiftSymbols</key>
|
||||||
|
<true/>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
||||||
|
EOF
|
||||||
|
|
||||||
- name: Build iOS .ipa
|
- name: Build iOS .ipa
|
||||||
run: |
|
run: |
|
||||||
flutter build ipa --release \
|
flutter build ipa --release \
|
||||||
|
--export-options-plist=ios/exportOptions.plist \
|
||||||
--dart-define=OSM_PROD_CLIENTID='${{ secrets.OSM_PROD_CLIENTID }}' \
|
--dart-define=OSM_PROD_CLIENTID='${{ secrets.OSM_PROD_CLIENTID }}' \
|
||||||
--dart-define=OSM_SANDBOX_CLIENTID='${{ secrets.OSM_SANDBOX_CLIENTID }}'
|
--dart-define=OSM_SANDBOX_CLIENTID='${{ secrets.OSM_SANDBOX_CLIENTID }}'
|
||||||
cp build/ios/iphoneos/Runner.ipa Runner.ipa
|
cp build/ios/iphoneos/Runner.ipa Runner.ipa
|
||||||
|
|||||||
Reference in new issue
Block a user