Skip to content

Commit 9811e77

Browse files
Add AppImage build support for aarch64
1 parent 672eacc commit 9811e77

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

setup.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ class BuildCommand extends Command {
390390
Build.getExecutable('sudo apt-get install -y libkeybinder-3.0-dev'),
391391
);
392392
await Build.exec(Build.getExecutable('sudo apt install -y locate'));
393-
if (arch == Arch.amd64) {
393+
if (arch == Arch.amd64 || arch == Arch.arm64) {
394394
await Build.exec(Build.getExecutable('sudo apt install -y rpm patchelf'));
395395
await Build.exec(Build.getExecutable('sudo apt install -y libfuse2'));
396396

@@ -481,7 +481,7 @@ class BuildCommand extends Command {
481481
final targetMap = {Arch.arm64: 'linux-arm64', Arch.amd64: 'linux-x64'};
482482
final targets = [
483483
'deb',
484-
if (arch == Arch.amd64) 'appimage',
484+
'appimage',
485485
if (arch == Arch.amd64) 'rpm',
486486
].join(',');
487487
final defaultTarget = targetMap[arch];

0 commit comments

Comments
 (0)