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/
|
2022-11-20 14:50:10 +00:00
|
|
|
- cp src/pkm.vogel.nmreval.desktop $TARGET_APPDIR/usr/share/applications
|
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
|
|
|
|
version: 0.2.0
|
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:
|
|
|
|
- sourceline: 'deb [arch=amd64] http://deb.debian.org/debian/ bullseye main contrin non-free'
|
|
|
|
|
|
|
|
include:
|
2022-11-20 14:50:10 +00:00
|
|
|
# for /usr/bin/env
|
|
|
|
- coreutils
|
2022-11-18 20:33:11 +00:00
|
|
|
- dash
|
2022-11-20 14:50:10 +00:00
|
|
|
- gnome-accessibility-themes
|
|
|
|
- libatlas3-base
|
|
|
|
- python3.9-minimal
|
2022-11-18 20:33:11 +00:00
|
|
|
- python3-pyqt5
|
|
|
|
- python3-numpy
|
|
|
|
- python3-matplotlib
|
|
|
|
- python3-scipy
|
|
|
|
- python3-bsddb3
|
|
|
|
- python3-h5py
|
|
|
|
- python3-pyqtgraph
|
|
|
|
- python3-tk
|
|
|
|
exclude:
|
|
|
|
- usr/share/man
|
|
|
|
- usr/share/doc
|
|
|
|
|
|
|
|
runtime:
|
|
|
|
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:
|
2022-11-20 14:50:10 +00:00
|
|
|
update-information: 'zsync|http://mirror.infra.pkm/nmreval/NMReval-latest.AppImage.zsync'
|
2022-11-18 20:33:11 +00:00
|
|
|
sign-key: None
|
|
|
|
arch: x86_64
|