Skip to content

Commit 1bd2315

Browse files
Add AppImage build support for aarch64
1 parent 2395a4b commit 1bd2315

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
@@ -381,7 +381,7 @@ class BuildCommand extends Command {
381381
Build.getExecutable('sudo apt-get install -y libkeybinder-3.0-dev'),
382382
);
383383
await Build.exec(Build.getExecutable('sudo apt install -y locate'));
384-
if (arch == Arch.amd64) {
384+
if (arch == Arch.amd64 || arch == Arch.arm64) {
385385
await Build.exec(Build.getExecutable('sudo apt install -y rpm patchelf'));
386386
await Build.exec(Build.getExecutable('sudo apt install -y libfuse2'));
387387

@@ -470,7 +470,7 @@ class BuildCommand extends Command {
470470
final targetMap = {Arch.arm64: 'linux-arm64', Arch.amd64: 'linux-x64'};
471471
final targets = [
472472
'deb',
473-
if (arch == Arch.amd64) 'appimage',
473+
'appimage',
474474
if (arch == Arch.amd64) 'rpm',
475475
].join(',');
476476
final defaultTarget = targetMap[arch];

0 commit comments

Comments
 (0)