-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Publish a Release apk in Github Releases #2011
Comments
Well i agree with this |
We don't have access to signing keys for the F-Droid releases, they manage it themselves. So we can't release an APK that's compatible with F-Droid releases on github. We currently have 3 different variants, google play, f-droid and debug builds, which aren't compatible with each other. We already have to deal with a lot of users reporting issues about google play/f-droid incompatibility, adding another variant would cause even more issues.
The latest one is |
The fdroiddata current build server activity shows that termux |
I have updated the README with detailed info about this. I have also added the debug APK link in the Closing this for now since currently there are no plans for an alternate source. Can be opened again if ever needed. |
BTW, I just uploaded the release build of my fork https://github.com/hrap1919/termux-app/releases/tag/v0.111. It is built manually with the developer keys, so it is compatible with the artifact builds from the main branch. It has no bootstrap-archives and can be installed as an "update" of the full debug build. The debug builts of this fork can be obtained via Github Actions as well. The size is slightly larger than the release. |
According to the |
Hi, the app fails to build because of:
You are using a private maven repo which is not allowed on F-Droid. New version are not picked up because you changed the version code logic making the F-Droid bot fail to pick them up. If you could revert a6ae656, that would solve it. Thanks! |
For reference, you can find the list of allowed maven repos here: https://f-droid.org/docs/Build_Metadata_Reference/#build_srclibs |
Hi @jspricke, Thanks for reporting in. We were previously hosting on Bintray but had to move to Github Packages since its being shut down. Just to be clear, are you saying that our Github Packages Maven repository here is not allowed by F-Droid and we need to shift to one that is allowed before builds will succeed? If yes, any reference implementations you know of would be of great help if you have the time, otherwise will look ourselves. Thanks
I will change back the logic and make a new release. Will there will be a jump in versions on F-Droid? Thanks a lot. |
Yes.
See the link in my comment above.
Thanks! F-Droid updatebot will find the new version then, so all should be fine. |
Okay, I asked caused the move was made on Feb 12, before the Thanks again. |
Ha, I totally missed that, I adopted the patch, so it should work now. Thanks! |
Great, I assume we still need to move the repository for future versions to comply with policy? Thanks. |
There should be no need. F-Droid has a policy for used maven repos, not for published repos (afaik). |
That's good to hear. Thanks again for checking in and your contributions :) |
So the patch was applied yesterday for update to The main build logs are posted on F-Droid monitor site, if someone wants to see failed log for v0.109. |
…ckages Github Package hosting is considered a private repository since it requires github APIs keys if a hosted library needs to be imported as a dependency. Importing from private repositories is not allowed as per F-Droid policy so termux plugin apps can't import termux libraries as dependencies so hence we move to Jitpack. Check #2011 (comment). Version number of all published libraries from termux-app must be the same. Importing can be done with the following way. Add to root level build.gradle ``` allprojects { repositories { google() mavenCentral() //mavenLocal() maven { url "https://jitpack.io" } } } ``` Add to app module level build.gradle if you want to import `termux-shared` ``` dependencies { implementation 'com.github.termux:termux-shared:0.115' } ``` Check https://github.com/jitpack/jitpack.io#building-with-jitpack for other details, like including commit or branch level import. If you are updating the libraries as well and want to test locally, run `./gradlew publishReleasePublicationToMavenLocal` from root directory of termux-app to publish library to local maven repository. You may need to rebuild project before it, library files will be published at `~/.m2/repository/com/github/termux/termux-shared/0.115`. If you want to import the updated library in a project, then uncomment the `mavenLocal()` line in the build.gradle and run sync gradle with project files. Making changes to library after dependencies have already been cached without incrementing version number may need deleting gradle cache if syncing gradle files doesn't work after publishing changes. Open gradle right sidebar in android studio, then right click on top level entry, then select "Refresh Gradle Dependencies", which will redownload/refresh all dependencies and will take a lot of time. Instead running `find ~/.gradle/caches/ -type d -name "*com.github.termux*" -prune -exec rm -rf "{}" \; -print` and then running gradle sync should be enough. Using "com.termux" instead of "com.github.termux" will require a DNS TXT record to be added from git.termux.com to https://github.com/termux at termux.com https://jitpack.io/docs/#custom-domain-name
Feature description
Please publish a release apk for every version , because fdroid is very slow in updating its repositiory.
I know we can use debug apk from github action but it has more size in compare to release version.
Thank you.
Reference implementation
The text was updated successfully, but these errors were encountered: