added libatlas3-base for weird fitting bug
added gnome-accessibility-themes for build environemnt of AppImage (fixes T232)
This commit is contained in:
parent
8485fa28bc
commit
1f81ca0a51
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,4 +1,5 @@
|
|||||||
__pycache__
|
__pycache__
|
||||||
|
appimage-build
|
||||||
AppDir
|
AppDir
|
||||||
*.AppImage
|
*.AppImage
|
||||||
NMReval*.zsync
|
NMReval*.zsync
|
||||||
|
@ -1,48 +0,0 @@
|
|||||||
#!/usr/bin/env python3
|
|
||||||
|
|
||||||
import re
|
|
||||||
import argparse
|
|
||||||
|
|
||||||
|
|
||||||
def merger(infiles, outfile):
|
|
||||||
header = ''
|
|
||||||
graphs = ''
|
|
||||||
counter = 0
|
|
||||||
for f in infiles:
|
|
||||||
headerflag = True
|
|
||||||
for line in f.readlines():
|
|
||||||
if re.match('@with [Gg][0-9]', line):
|
|
||||||
headerflag = False
|
|
||||||
# one graph per file, adjust graph number
|
|
||||||
line = '@with g{}\n'.format(counter)
|
|
||||||
if headerflag:
|
|
||||||
if graphs == '':
|
|
||||||
# save fonts, colors etc. of first file
|
|
||||||
header += line
|
|
||||||
elif re.match('@[Gg][0-9]', line):
|
|
||||||
# save graph specifications of following files
|
|
||||||
line = re.sub('@[Gg][0-9]', '@g{}'.format(counter), line)
|
|
||||||
header += line
|
|
||||||
else:
|
|
||||||
pass
|
|
||||||
else:
|
|
||||||
# save sets
|
|
||||||
if re.match('@target [Gg][0-9]', line):
|
|
||||||
line = re.sub('@target [Gg][0-9]',
|
|
||||||
'@target G{}'.format(counter), line)
|
|
||||||
graphs += line
|
|
||||||
counter += 1
|
|
||||||
outfile.write(header+graphs)
|
|
||||||
|
|
||||||
|
|
||||||
parser = argparse.ArgumentParser()
|
|
||||||
|
|
||||||
parser.add_argument('input', nargs='+', type=argparse.FileType('r'),
|
|
||||||
help='One or more input files')
|
|
||||||
parser.add_argument('--output', '-o', nargs='?', type=argparse.FileType('w'),
|
|
||||||
default='merger_grace.agr',
|
|
||||||
help='Output file (default=merged_grace.agr)')
|
|
||||||
|
|
||||||
args = parser.parse_args()
|
|
||||||
|
|
||||||
merger(args.input, args.output)
|
|
@ -5,19 +5,22 @@ script:
|
|||||||
# Make usr and icons dirs
|
# Make usr and icons dirs
|
||||||
- mkdir -p $TARGET_APPDIR/usr/src
|
- mkdir -p $TARGET_APPDIR/usr/src
|
||||||
- mkdir -p $TARGET_APPDIR/usr/bin
|
- mkdir -p $TARGET_APPDIR/usr/bin
|
||||||
|
- 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/
|
||||||
# Copy the python application code into the AppDir
|
# Copy the python application code into the AppDir
|
||||||
- cp -r bin/evaluate.py $TARGET_APPDIR/usr/bin/
|
- cp bin/evaluate.py $TARGET_APPDIR/usr/bin/
|
||||||
- cp -r src/* $TARGET_APPDIR/usr/src/
|
- cp -r src/* $TARGET_APPDIR/usr/src/
|
||||||
# Install application dependencies
|
- cp src/pkm.vogel.nmreval.desktop $TARGET_APPDIR/usr/share/applications
|
||||||
#- python3 -m pip install --ignore-installed --prefix=/usr --root=$TARGET_APPDIR -r ./requirements.txt
|
|
||||||
|
|
||||||
|
|
||||||
AppDir:
|
AppDir:
|
||||||
app_info:
|
app_info:
|
||||||
id: pkm.vogel.nmreval
|
id: pkm.vogel.nmreval
|
||||||
name: NMReval
|
name: NMReval
|
||||||
icon: utilities-terminal
|
icon: logo
|
||||||
version: 0.1.0
|
version: 0.2.0
|
||||||
# Set the python executable as entry point
|
# Set the python executable as entry point
|
||||||
exec: usr/bin/python3
|
exec: usr/bin/python3
|
||||||
# Set the application main script path as argument. Use '$@' to forward CLI parameters
|
# Set the application main script path as argument. Use '$@' to forward CLI parameters
|
||||||
@ -30,9 +33,12 @@ AppDir:
|
|||||||
- sourceline: 'deb [arch=amd64] http://deb.debian.org/debian/ bullseye main contrin non-free'
|
- sourceline: 'deb [arch=amd64] http://deb.debian.org/debian/ bullseye main contrin non-free'
|
||||||
|
|
||||||
include:
|
include:
|
||||||
|
# for /usr/bin/env
|
||||||
|
- coreutils
|
||||||
- dash
|
- dash
|
||||||
- python3
|
- gnome-accessibility-themes
|
||||||
- python3-pkg-resources
|
- libatlas3-base
|
||||||
|
- python3.9-minimal
|
||||||
- python3-pyqt5
|
- python3-pyqt5
|
||||||
- python3-numpy
|
- python3-numpy
|
||||||
- python3-matplotlib
|
- python3-matplotlib
|
||||||
@ -74,6 +80,6 @@ AppDir:
|
|||||||
command: ./AppRun
|
command: ./AppRun
|
||||||
|
|
||||||
AppImage:
|
AppImage:
|
||||||
update-information: 'NMReval-*.AppImage.zsync'
|
update-information: 'zsync|http://mirror.infra.pkm/nmreval/NMReval-latest.AppImage.zsync'
|
||||||
sign-key: None
|
sign-key: None
|
||||||
arch: x86_64
|
arch: x86_64
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
wget https://github.com/AppImageCrafters/appimage-builder/releases/download/v1.1.0/appimage-builder-1.1.0-x86_64.AppImage
|
BUILDER=appimage-builder-1.1.0-x86_64.AppImage
|
||||||
|
if [ -f $BUILDER ]; then
|
||||||
|
echo $BUILDER
|
||||||
|
else
|
||||||
|
wget https://github.com/AppImageCrafters/appimage-builder/releases/download/v1.1.0/$BUILDER
|
||||||
|
fi
|
||||||
chmod +x appimage-builder-1.1.0-x86_64.AppImage
|
chmod +x appimage-builder-1.1.0-x86_64.AppImage
|
||||||
./appimage-builder-1.1.0-x86_64.AppImage
|
./appimage-builder-1.1.0-x86_64.AppImage --skip-tests
|
||||||
|
Loading…
Reference in New Issue
Block a user