Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content

feat: Make eDrive updatable through App Lounge

Vincent Bourgmayer requested to merge 2286-eDrive-update-through-appLounge into main

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:

output3

Click to see

eDrive-update

When trying on a test build, I get a signature mismatch becaused it downloaded the apk for community (expected)

Click to see

edrive-signature_mismatch

output2

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

The pipeline of this MR is cancelled, and it is expected. The new jobs can only be executed from a protected TAG . I created the "AnotherTest" tag and put it as protected for it.

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

👪 https://gitlab.e.foundation/internal/wiki/-/wikis/mobile-team/guidelines/Code-review

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.
Edited by CodeRabbitAI

Merge request reports

Loading