-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathappimagecraft.yml
52 lines (43 loc) · 1.31 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
51
52
version: 1
project:
name: com.github.theassassin.pyuploadtool
version_command: cd "$PROJECT_ROOT" && git rev-parse --short HEAD
build:
null:
scripts:
post_build:
- |2
cat > "$BUILD_DIR"/pyuploadtool.desktop <<\EOF
[Desktop Entry]
Name=pyuploadtool
Type=Application
Icon=pyuploadtool
Exec=pyuploadtool
NoDisplay=true
Terminal=true
Categories=Utility;
EOF
- |2
cat > "$BUILD_DIR"/AppRun.sh <<\EOF
#! /bin/bash
this_dir=$(dirname "$0")
# add own bin dir as fallback
# might come in handy if readelf binary is missing on the system (not sure if that's even possible, though)
# also makes using bundled shellcheck easier
export PATH="$PATH":"$this_dir"/usr/bin
# disable legacy cryptography
export CRYPTOGRAPHY_OPENSSL_NO_LEGACY=1
"$this_dir"/usr/bin/python -m pyuploadtool "$@"
EOF
- chmod +x AppRun.sh
- touch "$BUILD_DIR"/pyuploadtool.svg
appimage:
linuxdeploy:
plugins:
- conda
extra_args: -i "$BUILD_DIR"/pyuploadtool.svg -d "$BUILD_DIR"/pyuploadtool.desktop --custom-apprun "$BUILD_DIR"/AppRun.sh -e $(which shellcheck)
environment:
PIP_REQUIREMENTS: .
raw_environment:
- PIP_WORKDIR="$PROJECT_ROOT"
- OUTPUT=pyuploadtool-"$ARCH".AppImage