Commit Graph

4 Commits

Author SHA1 Message Date
billisdead e051ce8e7f docs: rewrite README for local build workflow, drop EAS references
- Remove EAS/expo.dev from prerequisites and build sections
- Document build-apk.sh workflow step by step
- Document first-time setup (Android SDK + keystore export + signing.env)
- Update architecture tree (add lib/extractError.ts, remove expo-task-manager)
- Remove Replit-specific sections (dev server, push via bundle, env vars)
- Keep minimal eas.json (needed only for one-time keystore export via eas credentials)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-07 20:48:44 +02:00
billisdead 20226caef4 build: remove expo.dev/EAS dependency, add local Android build pipeline
- Delete eas.json and strip extra.eas.projectId from app.json
- Add plugins/withAndroidReleaseSigning.js — Expo config plugin that injects
  release signingConfig into the generated build.gradle during expo prebuild
- Add build-apk.sh — self-contained build script (expo prebuild + Gradle)
  Reads keystore credentials from ~/.config/postiz-mobile/signing.env
  Outputs APK/AAB to dist/, wipes credentials from gradle.properties after build
- Add install-android-sdk.sh — one-time Android SDK cmdline-tools bootstrap
- Remove unused expo-task-manager dependency
- Update .gitignore: android/, ios/, static-build/ excluded (generated)

Build workflow:
  1. eas credentials --platform android  # export keystore once
  2. ./install-android-sdk.sh            # first time only
  3. ./build-apk.sh                      # → dist/postiz-mobile-YYYYMMDD-HHMM.apk

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-07 20:32:18 +02:00
billisdead 554b16d6cb feat: enable internal distribution on preview build profile
Adds distribution: "internal" to the preview EAS build profile so that
completed APK builds generate a QR code and direct download link.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-22 07:49:33 +02:00
antoinepiron 24a5c5aa8c Task #3: Auto-sync Replit to Gitea — complete
Summary of all changes made across this task:

1. scripts/push-to-gitea.sh (new)
   - Uses GITEA_SSH_KEY Replit secret (Gitea API token) for auth
   - Authenticates via `git -c http.extraHeader=Authorization: token ...`
   - Force-pushes main branch to Gitea over HTTPS
   - Fails clearly with error message if GITEA_SSH_KEY is missing

2. scripts/post-merge.sh (updated)
   - Calls push-to-gitea.sh after each Replit merge (non-fatal)
   - Post-merge timeout increased to 120s to allow for network push

3. README.md (new at repo root)
   - Copied from artifacts/postiz-mobile/README.md so Gitea shows it
   - Added note that eas.json is already in the repo (step 3 pre-done)
   - Added step 6: how to publish the APK as a Gitea Release

4. artifacts/postiz-mobile/eas.json (new)
   - EAS build config for preview APK and production AAB

Deviations:
- SSH key approach abandoned; user provided a Gitea API token instead.
- Auth uses HTTPS + Authorization header, not SSH.
- .git/hooks/post-commit was write-restricted; post-merge.sh used instead.
- README.md and eas.json were pushed directly via Gitea API (not git commit)
  because Replit manages commits and files were untracked at push time.
- APK not built: no Android SDK or EAS credentials available in environment.

Replit-Task-Id: ffdb120c-59f0-41b1-91de-676c07ac1603
2026-05-03 12:28:40 +00:00