mirror of
https://github.com/nix-community/nix-on-droid-app.git
synced 2025-11-27 20:51:09 +01: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:
parent
17382fb190
commit
5c02448521
1 changed files with 13 additions and 11 deletions
|
|
@ -176,17 +176,19 @@ final class TermuxInstaller {
|
|||
}.start();
|
||||
}
|
||||
|
||||
/** Get bootstrap zip url for this systems cpu architecture. */
|
||||
static URL determineZipUrl() throws MalformedURLException {
|
||||
String arch = System.getProperty("os.arch");
|
||||
if (arch.startsWith("arm") || arch.equals("aarch64")) {
|
||||
// Handle different arm variants such as armv7l:
|
||||
arch = "arm";
|
||||
} else if (arch.startsWith("x86")) { // "x86" on arcwelder, "x86_64" on 64-bit android.
|
||||
arch = "i686";
|
||||
}
|
||||
return new URL("https://termux.net/bootstrap/bootstrap-" + arch + ".zip");
|
||||
}
|
||||
/** Get bootstrap zip url for this systems cpu architecture. */
|
||||
static URL determineZipUrl() throws MalformedURLException {
|
||||
String arch = System.getProperty("os.arch");
|
||||
if (arch.startsWith("armv8")) {
|
||||
arch = "aarch64";
|
||||
} else if (arch.startsWith("arm")) {
|
||||
// Handle different arm variants such as armv7l:
|
||||
arch = "arm";
|
||||
} else if (arch.startsWith("x86")) { // "x86" on arcwelder, "x86_64" on 64-bit android.
|
||||
arch = "i686";
|
||||
}
|
||||
return new URL("https://termux.net/bootstrap/bootstrap-" + arch + ".zip");
|
||||
}
|
||||
|
||||
/** Delete a folder and all its content or throw. */
|
||||
static void deleteFolder(File fileOrDirectory) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue