You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any interest in adding an AppCSXCad AppImage build as a release action? I've had some library issues with it so having them available might make getting going a little easier. This is the one I'm using:
# Base image
FROM ubuntu:22.04 AS builder
ENV DEBIAN_FRONTEND=noninteractive
# Install all required packages
RUN apt-get update && apt-get install -y --no-install-recommends \
git wget build-essential cmake pkg-config \
libx11-dev x11-apps paraview \
libhdf5-dev libvtk7-dev libvtk7-qt-dev \
libboost-all-dev libcgal-dev libtinyxml-dev \
qtbase5-dev octave liboctave-dev \
gengetopt help2man groff pod2pdf bison flex libhpdf-dev libtool \
python3.10 python3-pip python3-dev python3-tk vim imagemagick\
fonts-dejavu-core \
&& rm -rf /var/lib/apt/lists/*
# Upgrade pip and install Python tools
RUN pip install --upgrade pip wheel setuptools==58.2.0 pyproject-toml
# Clone OpenEMS project
WORKDIR /root/
ARG BRANCH=master
ARG REPO=https://github.com/thliebig/OpenEMS-Project.git
RUN git clone --recursive --branch ${BRANCH} ${REPO}
# Build all components
WORKDIR /root/OpenEMS-Project/fparser
RUN cmake . && make -j$(nproc) && make install
WORKDIR /root/OpenEMS-Project/CSXCAD
RUN cmake . && make -j$(nproc) && make install
WORKDIR /root/OpenEMS-Project/QCSXCAD
RUN cmake . && make -j$(nproc) && make install
WORKDIR /root/OpenEMS-Project/AppCSXCAD
RUN cmake . && make -j$(nproc) && make install
# Download and prepare linuxdeployqt
WORKDIR /root/
RUN wget https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage && \
chmod 775 linuxdeployqt-continuous-x86_64.AppImage && \
./linuxdeployqt-continuous-x86_64.AppImage --appimage-extract && \
mv squashfs-root/ linuxdeployqt-continuous
# Setup AppImage structure
WORKDIR /root/appimage
RUN mkdir -p local/bin && cp /usr/local/bin/AppCSXCAD local/bin
# Generate a basic icon and desktop file
RUN convert -size 256x256 xc:white -gravity center \
-font DejaVu-Sans -pointsize 24 -annotate 0 "AppCSXCAD" appcsxcad.png
RUN echo "[Desktop Entry]\n\
Type=Application\n\
Name=AppCSXCAD\n\
Exec=AppRun %F\n\
Icon=appcsxcad\n\
Comment=View and edit OpenEMS Geometries\n\
Terminal=true\n\
Categories=Education;Science;" > default.desktop
# Use linuxdeploy to populate dependencies (this assumes Qt app)
RUN /root/linuxdeployqt-continuous/AppRun /root/appimage/local/bin/AppCSXCAD -appimage -bundle-non-qt-libs -verbose=2
# Copy final artifact to a known location
RUN mkdir -p /output && cp /root/appimage/*.AppImage /output/
# ---- Stage 2: Minimal stage that just contains the AppImage output ----
FROM scratch AS export-stage
COPY --from=builder /output /output
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Any interest in adding an AppCSXCad AppImage build as a release action? I've had some library issues with it so having them available might make getting going a little easier. This is the one I'm using:
docker build -f Dockerfile -t appcsxcad-appimage --output type=local,dest=./ .Beta Was this translation helpful? Give feedback.
All reactions