File tree 3 files changed +23
-7
lines changed
3 files changed +23
-7
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,17 @@ make -j$(nproc)
63
63
make install DESTDIR=AppDir
64
64
65
65
ARCH=" $( dpkg --print-architecture) "
66
- [[ " $ARCH " == " amd64" ]] && ARCH=x86_64
66
+
67
+ # "translate" to linuxdeploy/AppImage architecture
68
+ # note: linuxdeploy and AppImage differ in i386/i686, but we don't support that any more anyway
69
+ case " $ARCH " in
70
+ amd64)
71
+ ARCH=x86_64
72
+ ;;
73
+ arm64)
74
+ ARCH=aarch64
75
+ ;;
76
+ esac
67
77
68
78
# build release formats
69
79
wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-" $ARCH " .AppImage
Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ packages=(
68
68
libtool
69
69
patch
70
70
wget
71
+ curl
71
72
vim-common
72
73
desktop-file-utils
73
74
pkg-config
@@ -105,7 +106,7 @@ export DEBIAN_FRONTEND=noninteractive
105
106
106
107
apt-get -y --no-install-recommends install " ${packages[@]} "
107
108
108
- # install more recent CMake
109
+ # install more recent CMake and patchelf
109
110
cmake_arch=" $( dpkg --print-architecture) "
110
111
111
112
case " $cmake_arch " in
@@ -115,14 +116,17 @@ case "$cmake_arch" in
115
116
arm64)
116
117
cmake_arch=aarch64
117
118
;;
119
+ armhf)
120
+ patchelf_arch=armv7l
121
+ ;;
118
122
esac
119
123
120
- wget https://artifacts.assassinate-you.net/prebuilt-cmake/cmake-v3.29.6-ubuntu-focal-" ${cmake_arch} " .tar.gz -O - | \
124
+ patchelf_arch=" ${patchelf_arch:- $cmake_arch } "
125
+
126
+ curl -L https://artifacts.assassinate-you.net/prebuilt-cmake/cmake-v3.29.6-ubuntu-focal-" ${cmake_arch} " .tar.gz | \
121
127
tar xz --strip-components=1 -C /usr
122
128
123
- # install recent patchelf
124
- patchelf_arch=" $cmake_arch "
125
- wget https://github.com/NixOS/patchelf/releases/download/0.18.0/patchelf-0.18.0-" $patchelf_arch " .tar.gz -O- | tar xz -C/usr/local
129
+ curl -L https://github.com/NixOS/patchelf/releases/download/0.18.0/patchelf-0.18.0-" $patchelf_arch " .tar.gz | tar xz -C/usr/local
126
130
127
131
# g{cc,++}-multilib usually install these dependencies for us
128
132
# however, as the multilib stuff is not available for ARM, we have to install these dev packages ourselves
Original file line number Diff line number Diff line change 2
2
3
3
set -euo pipefail
4
4
5
- glibc_ok_version=" 2.4"
5
+ # 2.17 ensures compatibility with CentOS 7 and beyond
6
+ # cf. https://gist.github.com/wagenet/35adca1a032cec2999d47b6c40aa45b1
7
+ glibc_ok_version=" 2.17"
6
8
7
9
find_too_new_symbols () {
8
10
glibc_symbols=( " $( nm --dynamic --undefined-only --with-symbol-versions " $1 " | grep " GLIBC_" ) " )
You can’t perform that action at this time.
0 commit comments