add image for building appimages

This commit is contained in:
2022-02-22 11:36:44 +01:00
parent 1191a7a5e6
commit b12e6f3d90
6 changed files with 122 additions and 2 deletions

30
appimage/Dockerfile Normal file
View File

@@ -0,0 +1,30 @@
FROM fedora:latest
ENV RUST_VERSION=1.58.1
RUN dnf install gtk4-devel gcc libadwaita-devel -y
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
RUN . ~/.cargo/env
RUN ls $HOME/.cargo/env
ENV PATH=/root/.cargo/bin:$PATH
RUN rustup install ${RUST_VERSION}
ENV APPIMAGE_VERSION=13
ENV APPIMAGE_EXTRACT_AND_RUN=1
RUN cargo install cargo-appimage
RUN dnf install wget -y
RUN wget https://github.com/AppImage/AppImageKit/releases/download/$APPIMAGE_VERSION/appimagetool-x86_64.AppImage
RUN chmod +x appimagetool-x86_64.AppImage
RUN ./appimagetool-x86_64.AppImage --appimage-extract
RUN ls
RUN ln -nfs /squashfs-root/usr/bin/appimagetool /usr/bin/appimagetool
RUN dnf install file desktop-file-utils appstream -y
WORKDIR /mnt
CMD ["/bin/bash"]