2022-11-18 20:33:11 +00:00
|
|
|
version: 1
|
|
|
|
script:
|
|
|
|
# Remove any previous build
|
|
|
|
- rm -rf $TARGET_APPDIR | true
|
|
|
|
# Make usr and icons dirs
|
|
|
|
- mkdir -p $TARGET_APPDIR/usr/src
|
|
|
|
- mkdir -p $TARGET_APPDIR/usr/bin
|
2022-11-20 14:50:10 +00:00
|
|
|
- mkdir -p $TARGET_APPDIR/usr/share/icons
|
|
|
|
- mkdir -p $TARGET_APPDIR/usr/share/applications
|
|
|
|
# copy logo
|
|
|
|
- cp src/resources/logo.png $TARGET_APPDIR/usr/share/icons/
|
2022-11-18 20:33:11 +00:00
|
|
|
# Copy the python application code into the AppDir
|
2022-11-20 14:50:10 +00:00
|
|
|
- cp bin/evaluate.py $TARGET_APPDIR/usr/bin/
|
2022-11-18 20:33:11 +00:00
|
|
|
- cp -r src/* $TARGET_APPDIR/usr/src/
|
2023-07-03 16:21:55 +00:00
|
|
|
- cp src/resources/pkm.vogel.nmreval.desktop $TARGET_APPDIR/usr/share/applications
|
2023-04-13 18:03:39 +00:00
|
|
|
# set current date as version info
|
|
|
|
- sed -i "s/CURRENT_DATE/$(date +'%Y-%m-%d')/" $TARGET_APPDIR/usr/src/nmreval/version.py
|
2022-11-18 20:33:11 +00:00
|
|
|
|
|
|
|
|
|
|
|
AppDir:
|
|
|
|
app_info:
|
|
|
|
id: pkm.vogel.nmreval
|
|
|
|
name: NMReval
|
2022-11-20 14:50:10 +00:00
|
|
|
icon: logo
|
2022-11-24 09:30:23 +00:00
|
|
|
version: _devel_
|
2022-11-18 20:33:11 +00:00
|
|
|
# Set the python executable as entry point
|
|
|
|
exec: usr/bin/python3
|
|
|
|
# Set the application main script path as argument. Use '$@' to forward CLI parameters
|
|
|
|
exec_args: "$APPDIR/usr/bin/evaluate.py $@"
|
|
|
|
|
|
|
|
apt:
|
|
|
|
arch: amd64
|
|
|
|
allow_unauthenticated: true
|
|
|
|
sources:
|
2023-08-02 17:58:02 +00:00
|
|
|
- sourceline: 'deb [arch=amd64] http://ftp.uni-mainz.de/debian bullseye main contrib non-free'
|
2022-11-18 20:33:11 +00:00
|
|
|
|
|
|
|
include:
|
2022-11-20 14:50:10 +00:00
|
|
|
# for /usr/bin/env
|
2023-04-23 17:55:53 +00:00
|
|
|
# - coreutils
|
|
|
|
# - dash
|
|
|
|
# - zsync
|
|
|
|
# - hicolor-icon-theme
|
2022-11-20 14:50:10 +00:00
|
|
|
- libatlas3-base
|
2023-05-10 15:09:11 +00:00
|
|
|
- gnuplot-nox
|
2023-08-02 17:58:02 +00:00
|
|
|
- python3-minimal
|
2022-11-18 20:33:11 +00:00
|
|
|
- python3-numpy
|
|
|
|
- python3-scipy
|
|
|
|
- python3-bsddb3
|
|
|
|
- python3-h5py
|
2023-01-05 14:27:33 +00:00
|
|
|
- python3-pyqt5
|
2022-11-18 20:33:11 +00:00
|
|
|
- python3-pyqtgraph
|
|
|
|
exclude:
|
2023-04-08 13:28:13 +00:00
|
|
|
# lots of qt stuff we do not use
|
|
|
|
- libqt5designer5
|
|
|
|
- libqt5help5
|
|
|
|
- libqt5network5
|
|
|
|
- libqt5sql5
|
|
|
|
- libqt5test5
|
|
|
|
- libqt5xml5
|
|
|
|
- qtbase5-dev-tools
|
|
|
|
- pyqt5-dev-tools
|
2022-11-25 21:19:41 +00:00
|
|
|
- libavahi-client3
|
|
|
|
- libavahi-common-data
|
|
|
|
- libavahi-common3
|
2023-04-08 13:28:13 +00:00
|
|
|
- libwacom2
|
|
|
|
- libwacom-common
|
2023-04-23 17:55:53 +00:00
|
|
|
|
|
|
|
files:
|
|
|
|
exclude:
|
|
|
|
- usr/share/man
|
|
|
|
- usr/share/doc/*/README.*
|
|
|
|
- usr/share/doc/*/changelog.*
|
|
|
|
- usr/share/doc/*/NEWS.*
|
2023-05-10 15:09:11 +00:00
|
|
|
- usr/share/doc/*/TODO.*
|
2022-11-18 20:33:11 +00:00
|
|
|
runtime:
|
2023-04-23 17:55:53 +00:00
|
|
|
# if needed, apparently replaces hardcoded location with APPDIR location
|
|
|
|
# path_mappings:
|
|
|
|
# - /usr/share/matplotlib/mpl-data:$APPDIR/usr/share/matplotlib/mpl-data
|
2022-11-18 20:33:11 +00:00
|
|
|
version: "continuous"
|
|
|
|
env:
|
|
|
|
PATH: '${APPDIR}/usr/bin:${PATH}'
|
|
|
|
# Set python home
|
|
|
|
# See https://docs.python.org/3/using/cmdline.html#envvar-PYTHONHOME
|
|
|
|
PYTHONHOME: '${APPDIR}/usr'
|
|
|
|
# Path to the site-packages dir or other modules dirs
|
|
|
|
# See https://docs.python.org/3/using/cmdline.html#envvar-PYTHONPATH
|
|
|
|
PYTHONPATH: '${APPDIR}/usr/lib/python3.9/site-packages:${APPDIR}/usr'
|
|
|
|
|
|
|
|
test:
|
|
|
|
fedora:
|
|
|
|
image: appimagecrafters/tests-env:fedora-30
|
|
|
|
command: ./AppRun
|
|
|
|
debian:
|
|
|
|
image: appimagecrafters/tests-env:debian-stable
|
|
|
|
command: ./AppRun
|
|
|
|
arch:
|
|
|
|
image: appimagecrafters/tests-env:archlinux-latest
|
|
|
|
command: ./AppRun
|
|
|
|
centos:
|
|
|
|
image: appimagecrafters/tests-env:centos-7
|
|
|
|
command: ./AppRun
|
|
|
|
ubuntu:
|
|
|
|
image: appimagecrafters/tests-env:ubuntu-xenial
|
|
|
|
command: ./AppRun
|
|
|
|
|
|
|
|
AppImage:
|
2023-02-06 19:38:04 +00:00
|
|
|
update-information: 'zsync|https://gitea.pkm.physik.tu-darmstadt.de/api/packages/IPKM/generic/NMReval/latest/NMReval-latest-x86_64.Appimage.zsync'
|
2022-11-23 11:36:09 +00:00
|
|
|
sign-key: 976AC9D78688B628B00D4944D319B98C2D6CE5D3
|
2022-11-18 20:33:11 +00:00
|
|
|
arch: x86_64
|