mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-12-24 12:46:45 +00:00
add linux aarch64 hwi
This commit is contained in:
parent
7dba141073
commit
d6a3824690
2 changed files with 4 additions and 1 deletions
|
@ -300,6 +300,7 @@ public class Hwi {
|
||||||
if(hwiExecutable == null || !hwiExecutable.exists()) {
|
if(hwiExecutable == null || !hwiExecutable.exists()) {
|
||||||
try {
|
try {
|
||||||
Platform platform = Platform.getCurrent();
|
Platform platform = Platform.getCurrent();
|
||||||
|
String osArch = System.getProperty("os.arch");
|
||||||
Set<PosixFilePermission> ownerExecutableWritable = PosixFilePermissions.fromString("rwxr--r--");
|
Set<PosixFilePermission> ownerExecutableWritable = PosixFilePermissions.fromString("rwxr--r--");
|
||||||
|
|
||||||
//A PyInstaller --onefile expands into a new directory on every run triggering OSX Gatekeeper checks.
|
//A PyInstaller --onefile expands into a new directory on every run triggering OSX Gatekeeper checks.
|
||||||
|
@ -307,7 +308,6 @@ public class Hwi {
|
||||||
//The check will still happen on first invocation, but will not thereafter
|
//The check will still happen on first invocation, but will not thereafter
|
||||||
//See https://github.com/bitcoin-core/HWI/issues/327 for details
|
//See https://github.com/bitcoin-core/HWI/issues/327 for details
|
||||||
if(platform == Platform.OSX) {
|
if(platform == Platform.OSX) {
|
||||||
String osArch = System.getProperty("os.arch");
|
|
||||||
InputStream inputStream;
|
InputStream inputStream;
|
||||||
if(osArch.equals("aarch64")) {
|
if(osArch.equals("aarch64")) {
|
||||||
inputStream = Hwi.class.getResourceAsStream("/native/osx/aarch64/" + HWI_VERSION_DIR + "-mac-aarch64-signed.zip");
|
inputStream = Hwi.class.getResourceAsStream("/native/osx/aarch64/" + HWI_VERSION_DIR + "-mac-aarch64-signed.zip");
|
||||||
|
@ -359,6 +359,9 @@ public class Hwi {
|
||||||
Files.createDirectories(getHwiHomeDir().toPath());
|
Files.createDirectories(getHwiHomeDir().toPath());
|
||||||
inputStream = Hwi.class.getResourceAsStream("/native/windows/x64/hwi.exe");
|
inputStream = Hwi.class.getResourceAsStream("/native/windows/x64/hwi.exe");
|
||||||
tempExecPath = Files.createTempFile(getHwiHomeDir().toPath(), HWI_VERSION_DIR, null);
|
tempExecPath = Files.createTempFile(getHwiHomeDir().toPath(), HWI_VERSION_DIR, null);
|
||||||
|
} else if(osArch.equals("aarch64")) {
|
||||||
|
inputStream = Hwi.class.getResourceAsStream("/native/linux/aarch64/hwi");
|
||||||
|
tempExecPath = Files.createTempFile(HWI_VERSION_DIR, null, PosixFilePermissions.asFileAttribute(ownerExecutableWritable));
|
||||||
} else {
|
} else {
|
||||||
inputStream = Hwi.class.getResourceAsStream("/native/linux/x64/hwi");
|
inputStream = Hwi.class.getResourceAsStream("/native/linux/x64/hwi");
|
||||||
tempExecPath = Files.createTempFile(HWI_VERSION_DIR, null, PosixFilePermissions.asFileAttribute(ownerExecutableWritable));
|
tempExecPath = Files.createTempFile(HWI_VERSION_DIR, null, PosixFilePermissions.asFileAttribute(ownerExecutableWritable));
|
||||||
|
|
BIN
src/main/resources/native/linux/aarch64/hwi
Executable file
BIN
src/main/resources/native/linux/aarch64/hwi
Executable file
Binary file not shown.
Loading…
Reference in a new issue