Skip to content

Commit

Permalink
Add arm64 binary (#127)
Browse files Browse the repository at this point in the history
* Add support for arm64 APT in Go apt-query binary.
  • Loading branch information
koppor committed Mar 1, 2024
1 parent 2555a37 commit a6c3917
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Binary file added apt_query-arm64
Binary file not shown.
8 changes: 7 additions & 1 deletion lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,13 @@ function get_normalized_package_list {
| sed 's/[,\]/ /g; s/\s\+/ /g; s/^\s\+//g; s/\s\+$//g' \
| sort -t' ')
local script_dir="$(dirname -- "$(realpath -- "${0}")")"
${script_dir}/apt_query normalized-list ${packages}

local architecture=$(dpkg --print-architecture)
if [ "${architecture}" == "arm64" ]; then
${script_dir}/apt_query-arm64 normalized-list ${packages}
else
${script_dir}/apt_query normalized-list ${packages}
fi
}

###############################################################################
Expand Down

0 comments on commit a6c3917

Please sign in to comment.