File tree 10 files changed +10
-16
lines changed
10 files changed +10
-16
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ This is an (as of yet experimental) plugin for linuxdeploy. Its job is to bundle
6
6
7
7
This plugin requires the following dependencies in order to work properly:
8
8
9
- - ` patchelf ` command
10
9
- ` file ` command
11
10
- ` find ` command
12
11
- ` pkg-config ` or ` pkgconf ` command
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ ARG APPDIR=/AppDir
6
6
ARG TZ=UTC
7
7
RUN ln -snf "/usr/share/zoneinfo/$TZ" "/etc/localtime" && echo "$TZ" > /etc/timezone
8
8
RUN apt-get update && \
9
- apt-get install -y wget patchelf librsvg2-dev file findutils pkg-config libgtk-3-0 libgtk-3-dev gtk-3-examples
9
+ apt-get install -y wget librsvg2-dev file findutils pkg-config libgtk-3-0 libgtk-3-dev gtk-3-examples
10
10
COPY . .
11
11
ADD "https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage" .
12
12
RUN chmod +x *.sh *.AppImage
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ FROM docker.io/fedora:latest AS build-stage
2
2
WORKDIR /linuxdeploy
3
3
ENV APPIMAGE_EXTRACT_AND_RUN=1
4
4
ARG APPDIR=/AppDir
5
- RUN dnf install -y wget patchelf librsvg2-devel file findutils pkgconfig gtk3 gtk3-devel
5
+ RUN dnf install -y wget librsvg2-devel file findutils pkgconfig gtk3 gtk3-devel
6
6
COPY . .
7
7
ADD "https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage" .
8
8
RUN chmod +x *.sh *.AppImage
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ FROM docker.io/opensuse/leap:15 AS build-stage
2
2
WORKDIR /linuxdeploy
3
3
ENV APPIMAGE_EXTRACT_AND_RUN=1
4
4
ARG APPDIR=/AppDir
5
- RUN zypper install -y wget patchelf librsvg2-devel file findutils pkg-config gtk3 gtk3-devel
5
+ RUN zypper install -y wget librsvg2-devel file findutils pkg-config gtk3 gtk3-devel
6
6
COPY . .
7
7
ADD "https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage" .
8
8
RUN chmod +x *.sh *.AppImage
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ ARG APPDIR=/AppDir
6
6
ARG TZ=UTC
7
7
RUN ln -snf "/usr/share/zoneinfo/$TZ" "/etc/localtime" && echo "$TZ" > /etc/timezone
8
8
RUN apt-get update && \
9
- apt-get install -y wget patchelf librsvg2-dev file findutils pkg-config libgtk-3-0 libgtk-3-dev gtk-3-examples
9
+ apt-get install -y wget librsvg2-dev file findutils pkg-config libgtk-3-0 libgtk-3-dev gtk-3-examples
10
10
COPY . .
11
11
ADD "https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage" .
12
12
RUN chmod +x *.sh *.AppImage
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ ARG APPDIR=/AppDir
7
7
ARG TZ=UTC
8
8
RUN ln -snf "/usr/share/zoneinfo/$TZ" "/etc/localtime" && echo "$TZ" > /etc/timezone
9
9
RUN apt-get update && \
10
- apt-get install -y wget patchelf librsvg2-dev file findutils pkg-config && \
10
+ apt-get install -y wget librsvg2-dev file findutils pkg-config && \
11
11
apt-get install -y -t experimental libgtk-4-1 libgtk-4-dev gtk-4-examples
12
12
COPY . .
13
13
ADD "https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage" .
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ FROM docker.io/fedora:latest AS build-stage
2
2
WORKDIR /linuxdeploy
3
3
ENV APPIMAGE_EXTRACT_AND_RUN=1
4
4
ARG APPDIR=/AppDir
5
- RUN dnf install -y wget patchelf librsvg2-devel file findutils pkgconfig gtk4 gtk4-devel gtk4-devel-tools
5
+ RUN dnf install -y wget librsvg2-devel file findutils pkgconfig gtk4 gtk4-devel gtk4-devel-tools
6
6
COPY . .
7
7
ADD "https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage" .
8
8
RUN chmod +x *.sh *.AppImage
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ FROM docker.io/opensuse/tumbleweed:latest AS build-stage
3
3
WORKDIR /linuxdeploy
4
4
ENV APPIMAGE_EXTRACT_AND_RUN=1
5
5
ARG APPDIR=/AppDir
6
- RUN zypper install -y wget patchelf librsvg2-devel file findutils pkg-config gtk4 gtk4-devel
6
+ RUN zypper install -y wget librsvg2-devel file findutils pkg-config gtk4 gtk4-devel
7
7
COPY . .
8
8
ADD "https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage" .
9
9
RUN chmod +x *.sh *.AppImage
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ ARG APPDIR=/AppDir
6
6
ARG TZ=UTC
7
7
RUN ln -snf "/usr/share/zoneinfo/$TZ" "/etc/localtime" && echo "$TZ" > /etc/timezone
8
8
RUN apt-get update && \
9
- apt-get install -y wget patchelf librsvg2-dev file findutils pkg-config libgtk-4-1 libgtk-4-dev gtk-4-examples
9
+ apt-get install -y wget librsvg2-dev file findutils pkg-config libgtk-4-1 libgtk-4-dev gtk-4-examples
10
10
COPY . .
11
11
ADD "https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage" .
12
12
RUN chmod +x *.sh *.AppImage
Original file line number Diff line number Diff line change @@ -133,11 +133,6 @@ if ! command -v find &>/dev/null && ! type find &>/dev/null; then
133
133
exit 1
134
134
fi
135
135
136
- if ! command -v patchelf & > /dev/null && ! type patchelf & > /dev/null; then
137
- echo -e " $0 : patchelf not found.\nInstall patchelf then re-run the plugin."
138
- exit 1
139
- fi
140
-
141
136
if [ -z " $LINUXDEPLOY " ]; then
142
137
echo -e " $0 : LINUXDEPLOY environment variable is not set.\nDownload a suitable linuxdeploy AppImage, set the environment variable and re-run the plugin."
143
138
exit 1
296
291
297
292
env LINUXDEPLOY_PLUGIN_MODE=1 " $LINUXDEPLOY " --appdir=" $APPDIR " " ${LIBRARIES[@]} "
298
293
294
+ # Create symbolic links as a workaround
295
+ # Details: https://github.com/linuxdeploy/linuxdeploy-plugin-gtk/issues/24#issuecomment-1030026529
299
296
echo " Manually setting rpath for GTK modules"
300
297
PATCH_ARRAY=(
301
298
" $gtk3_immodulesdir "
@@ -304,8 +301,6 @@ PATCH_ARRAY=(
304
301
)
305
302
for directory in " ${PATCH_ARRAY[@]} " ; do
306
303
while IFS= read -r -d ' ' file; do
307
- # shellcheck disable=SC2016
308
- patchelf --set-rpath ' $ORIGIN' " $APPDIR /$file "
309
304
ln $verbose -s " ${file/ \/ usr\/ lib\/ / } " " $APPDIR /usr/lib"
310
305
done < <( find " $directory " -name ' *.so' -print0)
311
306
done
You can’t perform that action at this time.
0 commit comments