Skip to content
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

[Feature]: Documentation on how to roll my own termux APK with additional packages and scripts pre-installed in the bootstrap.zip #3239

Closed
shaunmulligan opened this issue Feb 7, 2023 · 4 comments

Comments

@shaunmulligan
Copy link

Feature description

I would like to include termux into an androidOS I am building but would like to include several packages and scripts by default to run on first launch of termux. From what I understand there is a group of packages/scripts added to bootstrap.zip and that is pulled into the APK at build time.

It would be great if there was documentation on how to customize bootstrap.zip and then how to include it in the APK build.

Additional information

not that I'm aware of.

@shaunmulligan
Copy link
Author

shaunmulligan commented Feb 7, 2023

Also worth mentioning, I don't want to distribute this custom version of the APK via the play store. It will just be a preinstalled app in the OS built from source, so I am assuming I can keep the com.termux prefix and not have to create my own apt repo?

@shaunmulligan
Copy link
Author

perhaps it's enough to just change https://github.com/termux/termux-app/blob/master/app/build.gradle#L185 to point to a forked version of termux-packages releases and update the SHA256 for the checksum too? Does anyone know if that would work?

@shaunmulligan
Copy link
Author

Just found this https://github.com/termux/termux-packages/wiki/For-maintainers#build-termux-app in the wiki, which is basically what I think I'm after

@agnostic-apollo
Copy link
Member

agnostic-apollo commented Feb 7, 2023

Docs are already available at https://github.com/termux/termux-app#Forking

There are also some issue related to build-bootstrap.sh that need fixing like subpackages, etc.

termux/termux-packages#10462

termux/termux-packages#10296

termux/termux-packages#14692

@agnostic-apollo agnostic-apollo closed this as not planned Won't fix, can't repro, duplicate, stale Feb 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants