Add portable packaging: AppImage for Linux, zip for Windows
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
5 files changed
+210
-5
No files matched your search
@@ -58,4 +58,35 @@ ENV QT_LINUX_DIR=${QT_INSTALL_DIR}/${QT_VERSION}/gcc_64
|
||||
ENV QT_WINDOWS_DIR=${QT_INSTALL_DIR}/${QT_VERSION}/mingw_64
|
||||
ENV MINGW_SYSROOT=/opt/mingw-sysroot
|
||||
|
||||
# ── linuxdeploy + Qt plugin (for AppImage packaging) ────────────────────────
|
||||
RUN wget -q https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage \
|
||||
-O /usr/local/bin/linuxdeploy && \
|
||||
chmod +x /usr/local/bin/linuxdeploy && \
|
||||
wget -q https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-x86_64.AppImage \
|
||||
-O /usr/local/bin/linuxdeploy-plugin-qt && \
|
||||
chmod +x /usr/local/bin/linuxdeploy-plugin-qt
|
||||
|
||||
# ── FUSE not available in Docker — extract AppImage tools ────────────────────
|
||||
RUN cd /tmp && \
|
||||
/usr/local/bin/linuxdeploy --appimage-extract && \
|
||||
mv squashfs-root /opt/linuxdeploy && \
|
||||
ln -sf /opt/linuxdeploy/AppRun /usr/local/bin/linuxdeploy && \
|
||||
/usr/local/bin/linuxdeploy-plugin-qt --appimage-extract && \
|
||||
mv squashfs-root /opt/linuxdeploy-plugin-qt && \
|
||||
ln -sf /opt/linuxdeploy-plugin-qt/AppRun /usr/local/bin/linuxdeploy-plugin-qt
|
||||
|
||||
# ── appimagetool (for final AppImage creation) ──────────────────────────────
|
||||
RUN wget -q https://github.com/AppImage/appimagetool/releases/download/continuous/appimagetool-x86_64.AppImage \
|
||||
-O /tmp/appimagetool && \
|
||||
chmod +x /tmp/appimagetool && \
|
||||
cd /tmp && /tmp/appimagetool --appimage-extract && \
|
||||
mv squashfs-root /opt/appimagetool && \
|
||||
ln -sf /opt/appimagetool/AppRun /usr/local/bin/appimagetool && \
|
||||
rm /tmp/appimagetool
|
||||
|
||||
# ── file utility (needed by linuxdeploy for ELF detection) ──────────────────
|
||||
RUN apt-get update -qq && \
|
||||
apt-get install -y --no-install-recommends file patchelf zip && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
WORKDIR /build
|
||||
Reference in new issue
Block a user