-
Notifications
You must be signed in to change notification settings - Fork 899
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
F-Droid #692
Comments
Who will use it? How to do it? Who will support this work? |
Since exclave will be published to F-Droid soon, its users can use this plugin. I'll do the package work but I may need your help. |
I'd prefer to have an F-Droid update process as automated as possible. What changes are needed in this repo? |
F-Droid can't calculate the version code. It can only extract it with a regex. You can put a file with the version code in release. |
Can it discern version codes from git tag names? |
It can extract the version code from the tag name with regex. |
The current way to make a version code is this https://github.com/klzgrad/naiveproxy/blob/master/apk/app/build.gradle.kts#L34 Chromium releases vMAJOR.MINOR.BUILD.PATCH. On each major release I will rebase the patches, and with possible bug fixes, it becomes vMAJOR.MINOR.BUILD.PATCH-DownstreamPatch. E.g. for Chromium v131.0.6778.86, I will rebase the code to create a v131.0.6778.86-1. If there is an important bug fix in the same major release cycle that requires user upgrade, I will release v131.0.6778.86-2. So the apk version code is currently derived from tag names and calculated as I'd prefer extracting version code from tag names so I don't have to edit a special version code file on each tag release. |
Regex can't extract |
Why |
Currently F-Droid can only extract one match group. It can't concatenate |
How does fdroid extract this thing? Where is the code for this? |
https://gitlab.com/fdroid/fdroidserver/-/blob/master/fdroidserver/checkupdates.py?ref_type=heads#L212 It just uses |
How can I do this? Can you show me which line in https://gitlab.com/fdroid/fdroidserver/-/blob/master/fdroidserver/checkupdates.py?ref_type=heads#L212 read the generated file? |
It can use a path or a url to get the file. The related code is https://gitlab.com/fdroid/fdroidserver/-/blob/master/fdroidserver/checkupdates.py#L79. If you, e.g., put the version code in |
Yes, it does. :) |
If I don't need to test it, I don't need to get sys image, right? I thought clang and gn need to be built from source. Are there any other bianries used in the build? |
Binary downloads for android:
|
Another problem is that it uses the same appid as the plugin of sagernet. Is it transferred? CC @nekohasekai It's better if it can use a different appid. |
Using the same appid is meant for compatibility with Sagernet successors. I think by this time it is right to "transfer" the control of the id to me as I'm the defacto maintainer of the app @nekohasekai can make a statement for that. |
sagernet is deprecated and no longer maintained, so you don't need to worry about compatibility, just contact the author of the fork to take care of everything. |
Keeping the appid unchanged is for maintaining compatibility with Sagernet successors, not Sagernet itself. It is not better to change the appid for no reason. And whatever administrative reason does not justify breaking compatibility. |
I'm trying to build clang. Do I have to use the clang for chromium? If it's necessary, could you please add https://chromium.googlesource.com/chromium/src/+/main/tools/clang/scripts/build.py to the repo? |
Why build Clang? If you trust various sources and binaries provided by Google, you already trust Google built Clang. I don't think this is time worth spending. If you've got build.py working I can add it to the repo. |
Is there any other binaries needed to be built? It's easy to build gn and NDK is trusted (or allowed) by F-Droid. |
PGO profiles. Debian sysroots. A previously Google built Clang to bootstrap the current Clang. |
I'm going to use system clang to build the chromium clang. PGO profiles are data which is OK. I'll have to patch build.py a little though. |
Could you please publish naiveproxy plugin on F-Droid? :)
The text was updated successfully, but these errors were encountered: