Add platform specific configs for PixelDroid #886
Replies: 1 comment
-
Hello, Thanks for opening an app request! Please ensure you have read the app criteria to confirm that the app you are requesting is suitable for this site. If you haven’t done so already, give it a read now. If you realise the app you want is not suitable, please close the discussion. If you choose to leave a request for an unsuitable app open, it may be ignored. DeutschHallo, vielen Dank, dass Sie eine App-Anfrage gestellt haben! Bitte vergewissern Sie sich, dass Sie die App-Kriterien gelesen haben, um die Eignung der von Ihnen angefragten App-Konfiguration für diese Website zu überprüfen. Falls Sie dies noch nicht getan haben, lesen Sie bitte die Kriterien jetzt sorgfältig durch. Wenn Sie feststellen, dass die von Ihnen gewünschte App nicht geeignet ist, schließen Sie bitte die Diskussion. Wenn Sie eine Anfrage für eine ungeeignete App offen lassen, wird sie ignoriert werden. 简体中文您好, 感谢您提出应用申请!请确保您已阅读应用标准,以确认您申请的应用符合本网站要求。如果您尚未阅读,请即刻阅读。 如果您意识到您提出的应用不符合上述标准,请关闭此话题。 如果您提出的应用不符合标准,此申请可能会被忽略。 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
https://f-droid.org/packages/org.pixeldroid.app/
I just ran into my first tricky install, these apks have predictable but unusual file names:
org.pixeldroid.app_####.apk
the first two digits above track the version (eg currently 41 is latest and maps to version 1.0beta41 (all versions are betas, currently)
then the next two seem to map to the architecture:
04 is x86_64
03 is x86
02 is arm8
01 is arm7
So knowing that my device is arm8 i added a regex filter for my platform:
_[0-9]+02\.apk$
And that correctly selected and installed the 4102 version, where previously was getting 4104 which obviously would not install due to the instruction set mismatch.
Like many listed apps this would need an entry per platform as listed above
One note is im not 100% confident about that leading zero. It's not obviously part of the version and isn't strictly needed for the architecture disambiguation, but it'll work with the entire (admittedly limited) set of historical versions that f-droid keeps. You could drop it and let the greediness of the preceding character class absorb it, personally im going to leave it as is because it'll be easier for me to understand if i have to come back to it later, but that's about my brain and if you set that aside, both implementations are equally defensible given the few examples we have.
Beta Was this translation helpful? Give feedback.
All reactions