feat: Make eDrive updatable through App Lounge
Description
This MR update eDrive's .gitlab-ci.yml
.
It ads 4 for jobs that use shell script from another project.
The first job:
-
init_submodule
: load the project that contains script as submodule -
generate_apks
: Sign the APK with Community & Official key -
create-json-files
: Create json files for community & Official APK's input (size, link, etc.) -
create-release
: Create a release page in eDrive project that store the APKs & the json files. This release page is then use by App Lounge to get the update.
Screenshots
Successful update:
When trying on a test build, I get a signature mismatch becaused it downloaded the apk for community (expected)
Technical details
Four CI-CD variables have been added to the project for signing the APK.
Official OS build won't work for test because the update is not declared in the endpoint for official. It is only done in the endpoint for community
Tests
Need an community build with FEATURE_BRANCHES: v2.4-beta.2-t
Issues
https://gitlab.e.foundation/e/os/backlog/-/issues/2286
10 commandments of code reviews
Summary by CodeRabbit
-
New Features
- Introduced a structured release stage in the CI/CD pipeline for improved workflow.
- Added new jobs for linting, APK generation, JSON file creation, and release management to enhance build quality.
- Implemented variables for better management of APK paths.
-
Bug Fixes
- Enhanced APK file management and directory checks to prevent issues during the build process.
- Adjusted localization strings for improved user communication, though with some loss of specificity.
-
Documentation
- Updated CI/CD configurations for clarity and improved readability.