Skip to content

Commit ca904f0

Browse files
committed
Fix AppImage packaging
1 parent 30b0d69 commit ca904f0

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

Dockerfile

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,15 @@ COPY --from=xarbuilder /usr/local/lib/libxar.so.1 /usr/local/lib/libxar.so.1
5959
COPY --from=xarbuilder /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0 /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
6060

6161
# Install linux-appimage dependencies
62-
# Currently broken
63-
#RUN cd /opt \
64-
# && curl -LO https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage \
65-
# && chmod a+x appimagetool-x86_64.AppImage \
66-
# && ./appimagetool-x86_64.AppImage --appimage-extract \
67-
# && mv squashfs-root appimagetool \
68-
# && rm appimagetool-x86_64.AppImage
69-
#ENV PATH=/opt/appimagetool/usr/bin:$PATH
62+
# Fixed using https://github.com/AppImage/AppImageKit/issues/828
63+
RUN cd /opt \
64+
&& curl -LO https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage \
65+
&& chmod a+x appimagetool-x86_64.AppImage \
66+
&& sed 's|AI\x02|\x00\x00\x00|g' -i appimagetool-x86_64.AppImage \
67+
&& ./appimagetool-x86_64.AppImage --appimage-extract \
68+
&& mv squashfs-root appimagetool \
69+
&& rm appimagetool-x86_64.AppImage
70+
ENV PATH=/opt/appimagetool/usr/bin:$PATH
7071

7172
# Install linux-snap dependencies (based on https://hub.docker.com/r/snapcore/snapcraft/dockerfile)
7273
COPY --from=snapcraft /snap/core /snap/core

0 commit comments

Comments
 (0)