Skip to content

Commit 29b258b

Browse files
author
qount25
committed
Choosing arch suffix for debian packages (it's not the same as in RPM!)
1 parent e26594f commit 29b258b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

lib/pgpm/deb/spec.rb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,14 @@ def full_pkg_name
5454
end
5555

5656
def arch
57-
"amd64"
57+
# https://memgraph.com/blog/ship-it-on-arm64-or-is-it-aarch64
58+
# Debian suffixes are "amd64" and "arm64". Here we translate:
59+
case Pgpm::Arch.host.name
60+
when "amd64", "x86_64"
61+
"amd64"
62+
when "aarch64", "arm64"
63+
"arm64"
64+
end
5865
end
5966

6067
# Whatever is returned from this method gets added to the "rules" file.

0 commit comments

Comments
 (0)