2.7 KiB
2.7 KiB
Pre release
- Upgrade flutter
flutter upgrade
Ensure the Flutter version declared in pubspec.yaml matches the SDK used locally and in CI.
- Upgrade dependancies
flutter pub upgrade --major-versions
-
Test on iOS
-
Prepare a changelog in a md file
Release
- Run bump_version.sh
./scripts/release/bump_version.sh --major|--minor|--patch
- Run fdroid.sh
./scripts/release/fdroid.sh
While CI is running build aab for Google Play
- Build aab
dart run build_runner build --delete-conflicting-outputs &&
flutter build aab \
--release \
--dart-define-from-file=env-stable.json \
--flavor=stable \
--dart-define=sentryDSN=$PEERTUBE_SENTRY_DSN \
--dart-define=buildType=playstore
-
Check CI FDroid
-
Create MR Fdroid with the template
## Required
* [x] The app complies with the [inclusion criteria](https://f-droid.org/docs/Inclusion_Policy)
* [x] All related [fdroiddata](https://gitlab.com/fdroid/fdroiddata/issues) and [RFP issues](https://gitlab.com/fdroid/rfp/issues) have been referenced in this merge request
* [x] Builds with `fdroid build`
## Strongly Recommended
* [x] The upstream app source code repo contains the app metadata _(summary/description/images/changelog/etc)_ in a [Fastlane](https://gitlab.com/snippets/1895688) or [Triple-T](https://gitlab.com/snippets/1901490) folder structure
* [x] Releases are tagged
## Suggested
* [ ] External repos are added as git submodules instead of srclibs
* [x] Multiple apks for native code
- Release on Framagit
- Build IPA
dart run build_runner build --delete-conflicting-outputs &&
flutter build ipa --release --flavor stable --export-options-plist export_options.plist --dart-define-from-file=env-stable.json --dart-define=sentryDSN=$PEERTUBE_SENTRY_DSN --dart-define=buildType=appstore
- Release on AppStore Connect
xcrun altool --upload-app --type ios -f build/ios/ipa/*.ipa --apiKey $APPLE_API_KEY_ID --apiIssuer $APPLE_API_ISSUER_ID
- Release on Google Console
Get
aabfile
nautilus build/app/outputs/bundle/stableRelease
Get formated changelog
./scripts/release/google_play_changelog.sh
- Update APK link on dolomon
AltStore
- Get ADP ID : General > History > Alternative Distribution Package ID
curl --header "Content-Type: application/json" \
-X POST \
--data '{ "adpID": "[Your ADP ID]" }' \
https://api.altstore.io/adps
- Wait a moment
curl -X GET https://api.altstore.io/adps/[Your ADP ID]
-
Download archive from
downloadURL -
Upload folder on server
-
Get file size
ls -l variant/*.ipa | head -1 | awk '{print $5}'
-
Edit
source.json -
Commit
chore/update for <version>and push