Commit 5fae891
committed
feat: Implement Automated Android Build Pipeline
Implements a complete, two-stage GitHub Actions pipeline to automatically build an Android APK from the repository.
- **Configuration Bot**: A workflow (`config-bot.yml`) runs on every push to ensure the repository has a valid Android project structure. It executes a script (`align_android_config.sh`) to generate any missing Gradle files, source files, or the official Gradle Wrapper, and auto-commits the changes.
- **Build Bot**: A second workflow (`android-build.yml`) triggers after the configuration bot succeeds. It sets up a Java/Android environment, installs frontend dependencies for the web terminal (`npm install`), and builds a debug APK using Gradle.
- **Self-Contained APK**: The resulting Android application packages the web terminal and embeds a `nodejs-mobile-android` runtime. This allows the terminal's `server.js` backend to run directly on the device, making the application fully self-contained and functional. The `server.js` and Android runtime logic have been aligned to work together correctly.
- The final APK is uploaded as a downloadable artifact from the GitHub Actions run.1 parent b11ed4a commit 5fae891
13 files changed
Lines changed: 1510 additions & 0 deletions
File tree
- .github/workflows
- app
- gradle/wrapper
- src/main
- java/com/superlab/quantumide
- res/layout
- web-terminal
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
0 commit comments