forked from dragotin/kraft
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appimagecraft.yml
34 lines (29 loc) · 1.03 KB
/
appimagecraft.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
version: 1
project:
name: de.volle_kraft_voraus.kraft.desktop
version_command: git describe --tags
build:
cmake:
scripts:
post_build:
# make sure weasyprint can be launched from a path next to the kraft binary
# this simplifies the lookup greatly
# also, if we create the file now (i.e., before linuxdeploy runs), it won't be overwritten by the python plugin
- |
cat > "$BUILD_DIR"/AppDir/usr/bin/weasyprint <<\EOF
#! /bin/bash
set -eo pipefail
own_path="$(dirname "$(readlink -f "$0")")"
exec "$own_path"/../conda/bin/python -m weasyprint "$@"
EOF
chmod +x "$BUILD_DIR"/AppDir/usr/bin/weasyprint
appimage:
linuxdeploy:
plugins:
- qt
- conda
- https://github.com/linuxdeploy/misc-plugins/raw/master/grantlee5/linuxdeploy-plugin-grantlee5.sh
environment:
UPD_INFO: "gh-releases-zsync|dragotin|kraft|latest|Kraft-*x86_64.AppImage.zsync"
PIP_REQUIREMENTS: "weasyprint reportlab pypdf2"
GRANTLEE5_PLUGINS_DIR: "/usr/lib64/grantlee/5.2/"