How a version goes from code to a downloadable APK on the website. Only maintainers do this; contributors never need to.
XPENC follows Semantic Versioning: MAJOR.MINOR.PATCH.
| Bump | When |
|---|---|
| MAJOR | Backup/DB format breaks compatibility, or the money model changes |
| MINOR | New feature (new screen, new bank template, new export format) |
| PATCH | Bug fix, parser fix, UI polish |
The Android versionCode is the +N build number in pubspec.yaml —
increment it on every release, it can never go backwards.
bump version → commit → tag vX.Y.Z → push tag
└─► GitHub Actions (.github/workflows/release.yml)
├─ tag == pubspec version? (hard gate)
├─ flutter analyze + test (116+ tests)
├─ flutter build apk --release --split-per-abi --dart-define=XPENC_DIST=github
├─ tool/verify_apk.sh (libsqlite3.so gate — never skip)
└─ GitHub Release: xpenc-arm64-v8a.apk · xpenc-armeabi-v7a.apk
· xpenc-x86_64.apk · SHA256SUMS.txt
└─► then .github/workflows/release-ios.yml (macOS, only if the above went green)
├─ flutter build ios --release --no-codesign --dart-define=XPENC_DIST=github
├─ tool/altstore_source.py (version + permissions read off the build)
└─ adds to the same Release: xpenc-ios.ipa · xpenc-altsource.json
(+ its line in SHA256SUMS.txt)
└─► website Download buttons point at /releases/latest/download/…,
and xpenc.in/ios/source.json redirects to the latest
xpenc-altsource.json — so they update automatically. Nothing to deploy.
Every push to BETA does the same into the rolling beta pre-release
(beta-release.yml): xpenc-beta-*.apk, then xpenc-beta-ios.ipa. It also
builds one opt-in xpenc-beta-sms-arm64-v8a.apk with --dart-define=XPENC_SMS=on
— the only shipped file that requests READ_SMS (Auto money tracking). An
aapt2 step fails the run if a normal APK has an SMS permission or the SMS one
lacks READ_SMS. Don't add XPENC_SMS to release.yml or the Play build
without updating PRIVACY.md and Play's Data safety + SMS declaration first;
test/native_channel_test.dart enforces it.
If the iOS step fails, the Android release is already out. Fix it and re-run Release iOS by hand (Actions → Release iOS → Run workflow, with the tag).
-
Bump the version in
pubspec.yaml:version: 1.1.0+3 # name +buildNumber — bump BOTH appropriately
-
Mirror it in
AppInfo.version/AppInfo.buildNumber(lib/core/branding/app_info.dart).test/branding_test.dartfails if they drift — runflutter test test/branding_test.dartto check. -
Update
CHANGELOG.md— move entries from[Unreleased]into a new[X.Y.Z] — YYYY-MM-DDsection and update the compare links at the bottom. -
Commit and tag:
git add pubspec.yaml lib/core/branding CHANGELOG.md git commit -m "chore(release): v1.1.0" git tag v1.1.0 git push origin master --tags -
Watch the action — the Release APK workflow must go green. If
verify_apk.shfails, the release is not published; fix, delete the tag, re-tag. -
Verify — https://github.com/PATILYASHH/XPENC/releases/latest should show the new tag with 4 assets, and the website's version badge (fetched from the GitHub API) updates by itself.
The website links to releases/latest/download/xpenc-arm64-v8a.apk (and
…-armeabi-v7a.apk). Never rename the release assets in
release.yml without updating website/index.html in the same PR.
The same goes for iOS: website/vercel.json redirects
xpenc.in/ios/source.json to releases/latest/download/xpenc-altsource.json,
the URL every SideStore / AltStore user has added. Renaming
xpenc-altsource.json (or xpenc-ios.ipa, which it points at) breaks updates
for all of them.
The site lives in website/ and is deployed on Vercel as project
yash-projects/xpenc, production domain https://xpenc.in (custom domain;
getxpenc.vercel.app was the domain before this and still resolves to the
same deployment as Vercel's project domain). Deployment protection is
disabled on this project so the site is public.
To redeploy after editing the site:
cd website
vercel deploy --prod --yesOptionally connect the repo in the Vercel dashboard (Root Directory: website,
Framework: Other, no build command) so pushes to master deploy automatically.
If the production domain ever changes, update the og:url / og:image meta
tags in website/index.html and the GitHub repo homepage.