Skip to content

Commit

Permalink
Enabling launcher only on x86, i32, and amd64 systems
Browse files Browse the repository at this point in the history
  • Loading branch information
mattkae committed Jul 16, 2024
1 parent e4cc052 commit 5595548
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions snap/hooks/configure
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,9 @@ fi

# Start or stop the launcher
if [ "$(snapctl get launcher)" = "true" ]; then
if [ $(uname -m) = "arm" ]; then
echo "Cannot enable the launcher on an armhf system"
ARCH=$(uname -m)
if [[ "$ARCH" != x86_64* ]] && [[ "$ARCH" != i*86 ]] && [[ "$ARCH" != arm64 ]]; then
echo "Cannot enable the launcher on $ARCH system"
exit 1
fi

Expand Down

0 comments on commit 5595548

Please sign in to comment.