termux-play-store / termux-apps

Source for the Termux build on Google Play.
https://play.google.com/store/apps/details?id=com.termux
Other
84 stars 6 forks source link

[Bug]: I can't run the termux-play-store / termux-apps normally #32

Closed RainPlayer closed 4 months ago

RainPlayer commented 4 months ago

Problem description

hello, i have clone the termux-play-store/termux-apps source code from github, and run it in my android studio successfully. then i clone the termux-play-store/termux-packages sources code too, i want to build the bootstrap-aarch64.zip with the code, the steps are: 1、./scripts/run-docker.sh 2、 ./scripts/run-generate-bootstraps.sh --architectures aarch64

finally, it created bootstrap-aarch64.zip successfully. but when i put it into the termux-play-store/termux-apps project(replace the bootstrap-aarch64.zip download from the online, i have delete the download bootstrap-aarch64.zip code in the build.gradle.kts file), it can not run the termux-app normally. the error i will show in the picture.

I have noticed the difference bettwen the two bootstrap-aarch64.zip. the one download from the online was just 23.2MB, but the one i created was 27.4MB. actually, i don't care the size difference very much, but the bootstrap-aarch64.zip i created can't work normally. that's a big problem and i don't know why it happened.

PS: I don't change any code from the termux-play-store/termux-apps or termux-play-store/termux-packages. I hope receive your reply, thank you.

Steps to reproduce the behavior.

1、./scripts/run-docker.sh 2、 ./scripts/run-generate-bootstraps.sh --architectures aarch64 3、delete the download bootstrap-aarch64.zip code in the build.gradle.kts file) 3、replace the bootstrap-aarch64.zip with the one i created. Screenshot_20240723_153428

What is the expected behavior?

termux-play-store/termux-apps run normally and can excute linux command successfully.

System information

fornwall commented 4 months ago

I just pushed an update to scripts/generate-bootstraps.sh which should make that script work, please try it out again and let me know how it works!

The current bootstrap zips used in the app is created by another offline build script, but I'm planning to switch to using the bootstrap zips created by scripts/generate-bootstraps.sh in the next app release.

RainPlayer commented 4 months ago

I just pushed an update to scripts/generate-bootstraps.sh which should make that script work, please try it out again and let me know how it works!

The current bootstrap zips used in the app is created by another offline build script, but I'm planning to switch to using the bootstrap zips created by scripts/generate-bootstraps.sh in the next app release.

it works now. i want to build my custom package(like "com.mytermux") bootstrap-aarch64.zip, but there is no build-bootstraps.sh file. Thank you sincerely.