mirror of
https://github.com/fankes/termux-app.git
synced 2025-09-06 10:45:23 +08:00
Install 64-bit arm packages on capable devices
This will only affect new installations. Existing users wishing to install 64-bit packages can re-install the app completely, or just 'rm -Rf $PREFIX' and exit all sessions, which will cause Termux to re-install all packages at next startup.
This commit is contained in:
@@ -179,7 +179,9 @@ final class TermuxInstaller {
|
|||||||
/** Get bootstrap zip url for this systems cpu architecture. */
|
/** Get bootstrap zip url for this systems cpu architecture. */
|
||||||
static URL determineZipUrl() throws MalformedURLException {
|
static URL determineZipUrl() throws MalformedURLException {
|
||||||
String arch = System.getProperty("os.arch");
|
String arch = System.getProperty("os.arch");
|
||||||
if (arch.startsWith("arm") || arch.equals("aarch64")) {
|
if (arch.startsWith("armv8")) {
|
||||||
|
arch = "aarch64";
|
||||||
|
} else if (arch.startsWith("arm")) {
|
||||||
// Handle different arm variants such as armv7l:
|
// Handle different arm variants such as armv7l:
|
||||||
arch = "arm";
|
arch = "arm";
|
||||||
} else if (arch.startsWith("x86")) { // "x86" on arcwelder, "x86_64" on 64-bit android.
|
} else if (arch.startsWith("x86")) { // "x86" on arcwelder, "x86_64" on 64-bit android.
|
||||||
|
Reference in New Issue
Block a user