Tobi823 / ffupdater

FFUpdater: Updater for privacy friendly browser
https://f-droid.org/en/packages/de.marmaro.krt.ffupdater
GNU General Public License v3.0
655 stars 32 forks source link

Use Mozilla CI instead of Github #584

Closed Tobi823 closed 3 months ago

Tobi823 commented 5 months ago

https://github.com/mozilla-mobile/firefox-android/issues/5900

Tobi823 commented 5 months ago

https://firefox-ci-tc.services.mozilla.com/tasks/index/mobile.v3.firefox-android.apks

Tobi823 commented 5 months ago

https://firefox-ci-tc.services.mozilla.com/tasks/index/mobile.v3.firefox-android.apks.fenix-release.latest/arm64-v8a

https://firefox-ci-tc.services.mozilla.com/tasks/index/mobile.v3.firefox-android.apks.fenix-beta.latest/arm64-v8a

https://firefox-ci-tc.services.mozilla.com/tasks/index/mobile.v3.firefox-android.apks.focus-release.latest/arm64-v8a

https://firefox-ci-tc.services.mozilla.com/tasks/index/mobile.v3.firefox-android.apks.klar-release.latest

Eric-01 commented 4 months ago

Perhaps archive.mozilla.org would be a better choice?

Some time ago, a user noticed that artifacts for Firefox Nightly for Android are no longer created by the (previous) Mozilla CI. This information was shared on the Firefox subreddit. Among those who participated in the conversation was @evilpie, one of the Mozilla employees, who wrote:

Not surprising, because Firefox for Android moved from github to mozilla-central. I don't think we really want people to directly use CI instead of archive.mozilla.org.

Source: https://www.reddit.com/r/firefox/comments/1brf1uv/firefox_nightly_for_android_didnt_get_updated_for/

Tobi823 commented 4 months ago

Thanks for the info. I totally forgot that archive.mozilla.org existed. I will try to find the links :)

org.mozilla.firefox_beta: https://archive.mozilla.org/pub/fenix/releases/126.0b4/android/fenix-126.0b4-android-arm64-v8a/

org.mozilla.firefox: https://archive.mozilla.org/pub/fenix/releases/125.2.0/android/fenix-125.2.0-android-arm64-v8a/

nightly: https://archive.mozilla.org/pub/fenix/nightly/2024/04/2024-04-22-21-46-52-fenix-127.0a1-android-x86_64/

Tobi823 commented 4 months ago

Do you have an idea from where I can fetch the latest release versions? I need the version to construct the download url. E.g. I need "126.0b4" to get from https://archive.mozilla.org/pub/fenix/releases/???/android/fenix-???-android-arm64-v8a/ to https://archive.mozilla.org/pub/fenix/releases/126.0b4/android/fenix-126.0b4-android-arm64-v8a/.

I could try to parse the result from https://archive.mozilla.org/pub/fenix/releases/ and try to find the highest version value. But that can be tricky.

Rob--W commented 4 months ago

I could try to parse the result from https://archive.mozilla.org/pub/fenix/releases/ and try to find the highest version value. But that can be tricky.

The version format and ordering is documented at https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/version/format

An example of a version comparator implementation is at https://github.com/mozilla/addons-moz-compare

Eric-01 commented 4 months ago

There is an endpoint at download.mozilla.org that serves the legacy Firefox for Android a.k.a. Fennec:

However, I have no idea whether something similar has been created for the rewritten Firefox for Android or not. I'm afraid that no one might have bothered to prepare something like this.

Eric-01 commented 4 months ago

Now that both desktop and mobile Firefox are hosted in the large Mozilla repo, this may be something worth taking into consideration. It would save Tobi823 and maintainers of other similar projects the trouble of parsing versions themselves. @Rob--W, would you be able to reach out to the mobile team or sysops at Mozilla and pass this on to them?

Tobi823 commented 4 months ago

@Eric-01 I asked the developers on their Matrix chat (https://chat.mozilla.org/#/room/#fenix:mozilla.org):

  1. I can use Mozilla CI or archive.mozilla.org - it does not matter.

  2. Maven Central does not contain artifacts like APK files.

  3. There is also ftp.mozilla.org, but I looks like archive.mozilla.org

Th3M4ch1n3 commented 4 months ago

Hi there? Is there any movement on this? Firefox 126 patched the PDF.js RCE bug so I'm anxious to upgrade but I still dont see anything in ffupdater.

Tobi823 commented 4 months ago

I will fix this tomorrow (21.05). Weekend was a bit busy.

Attigliuzzo commented 3 months ago

There is an error while ffupdater tries to reach the new Mozilla site:

photo1716359228