Skip to content

Commit

Permalink
Apply sparkle upgrades
Browse files Browse the repository at this point in the history
resolves #22
  • Loading branch information
maxisme committed May 6, 2021
1 parent 6c1f1a6 commit 836b282
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,22 @@ jobs:
# write version
cd macos
xcrun agvtool new-marketing-version ${{ needs.version.outputs.version }}
xcrun agvtool new-version -all ${{ needs.version.outputs.version }}
xcrun agvtool new-version -all $GITHUB_RUN_ID
cd ../
# build .app
flutter build macos --release --build-name=${{ needs.version.outputs.version }}
/usr/bin/codesign --force --deep --options runtime --strict -s Z28DW76Y3W build/macos/Build/Products/Release/notifi.app
# codesign .app
/usr/bin/codesign -vvv --force --deep --options runtime --strict -s Z28DW76Y3W build/macos/Build/Products/Release/notifi.app
# codesign sparkle auto update
/usr/bin/codesign --force --deep --options runtime --strict -s Z28DW76Y3W build/macos/Build/Products/Release/notifi.app/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/Autoupdate.app
/usr/bin/codesign -vvv --force --deep --options runtime --strict -s Z28DW76Y3W build/macos/Build/Products/Release/notifi.app/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/Autoupdate.app
# codesign binaries
/usr/bin/codesign -vvv --force --deep --options runtime --strict -s Z28DW76Y3W build/macos/Build/Products/Release/notifi.app/Contents/Frameworks/Sparkle.framework/Versions/A/Sparkle
/usr/bin/codesign -vvv --force --deep --options runtime --strict -s Z28DW76Y3W build/macos/Build/Products/Release/notifi.app/Contents/MacOS/notifi
- name: "Create & Notarize .dmg"
env:
Expand All @@ -127,7 +136,7 @@ jobs:
dmg_path="notifi.dmg"
/usr/bin/codesign --force --deep --strict --options runtime -s "Z28DW76Y3W" "$dmg_path"
/usr/bin/codesign -vvv --force --deep --strict --options runtime -s "Z28DW76Y3W" "$dmg_path"
echo "notarizing..."
notarize=$(xcrun altool -t osx --primary-bundle-id it.notifi.notifi --output-format json --notarize-app -f "$dmg_path" --username "$APPLE_USERNAME" --password "$APPLE_PASSWORD")
Expand Down Expand Up @@ -196,7 +205,7 @@ jobs:
# write version
xcrun agvtool new-marketing-version ${{ needs.version.outputs.version }}
xcrun agvtool new-version -all ${{ needs.version.outputs.version }}
xcrun agvtool new-version -all $GITHUB_RUN_ID
pod install
Expand Down
2 changes: 0 additions & 2 deletions macos/Runner/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,5 @@
<string>alert</string>
<key>SUEnableAutomaticChecks</key>
<true/>
<key>SUFeedURL</key>
<string>http://127.0.0.1:9081/appcast.xml</string>
</dict>
</plist>

0 comments on commit 836b282

Please sign in to comment.