-
Notifications
You must be signed in to change notification settings - Fork 1
/
appimagecraft.yml
50 lines (42 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
version: 1
project:
name: com.github.linuxdeploy.linuxdeploy-plugin-native-packages
version_command: cd "$PROJECT_ROOT" && git rev-parse --short HEAD
build:
null:
scripts:
post_build:
- |2
cat > "$BUILD_DIR"/ldnp.desktop <<\EOF
[Desktop Entry]
Name=ldnp
Type=Application
Icon=ldnp
Exec=ldnp
NoDisplay=true
Terminal=true
Categories=Utility;
EOF
- |2
cat > "$BUILD_DIR"/AppRun.sh <<\EOF
#! /bin/bash
set -eo pipefail
this_dir="$(dirname "$0")"
"$this_dir"/usr/bin/python -m ldnp "$@"
EOF
- chmod +x AppRun.sh
- touch "$BUILD_DIR"/ldnp.svg
appimage:
linuxdeploy:
plugins:
- conda
extra_args:
- -i "$BUILD_DIR"/ldnp.svg
- -d "$BUILD_DIR"/ldnp.desktop
- --custom-apprun "$BUILD_DIR"/AppRun.sh
environment:
PIP_REQUIREMENTS: .
CONDA_PYTHON_VERSION: 3.11
raw_environment:
- PIP_WORKDIR="$PROJECT_ROOT"
- OUTPUT=linuxdeploy-plugin-native_packages-"$ARCH".AppImage