-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAppImageBuilder.yml
More file actions
102 lines (93 loc) · 3.08 KB
/
AppImageBuilder.yml
File metadata and controls
102 lines (93 loc) · 3.08 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# SPDX-License-Identifier: FSFAP
# Copyright (C) 2022-2026 Colin B. Macdonald
#
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright
# notice and this notice are preserved. This file is offered as-is,
# without any warranty.
# How to build this
# -----------------
#
# See the associated .Containerfile, which is run and the .AppImage extracted
# by our CI job `linux_client_appimage` (in `.gitlab-ci.yml`).
#
# Has been tested manually on:
# * Ubuntu 18.04, Ubuntu 20.04 and Fedora 35.
version: 1
script:
- rm -rf AppDir | true
- mkdir -p AppDir/usr/src
# some unsuccessful coaxing for a old fragile appstreamcli
# mv src/org.plomgrading.PlomClient.metainfo.xml src/org.plomgrading.PlomClient.appdata.xml
# sed -i -e "s/metainfo.xml/appdata.xml/" src/setup.py
# TODO: maybe work from the .tar.gz instead or remove lots of stuff
# cp -ra src AppDir/usr/
- mkdir -p AppDir/usr/share/icons/hicolor/128x128/apps
- cp src/org.plomgrading.PlomClient.png AppDir/usr/share/icons/hicolor/128x128/apps
- python3 -m pip install --upgrade pip
- python3 -m pip install --ignore-installed --prefix=/usr --root=AppDir -r src/requirements.txt.old_python38
# TODO: should we have --no-deps or not?
- python3 -m pip install --ignore-installed --prefix=/usr --root=AppDir --no-deps src/
AppDir:
path: ./AppDir
app_info:
id: org.plomgrading.PlomClient
name: PlomClient
icon: org.plomgrading.PlomClient
# Note version hardcoded here!
version: 0.21.0.dev0
exec: usr/bin/python3
exec_args: -m plomclient.client $@
files:
include: []
exclude:
- usr/share/man
- usr/share/doc/*/README.*
- usr/share/doc/*/changelog.*
- usr/share/doc/*/NEWS.*
- usr/share/doc/*/TODO.*
- usr/bin/run-mailcap
- usr/lib/mime/debian-view
- usr/sbin/update-mime
apt:
arch: amd64
sources:
- sourceline: 'deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse'
key_url: 'http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3b4fe6acc0b21f32'
include:
- python3
# with: 103MiB, without: 88MiB
# python3-dev
# TODO: not sure if needed
# python3-pkg-resources
# Otherwise QT_WPA_PLATFORM=xcb fails
- libxcb-cursor0
exclude: []
runtime:
env:
PYTHONHOME: '${APPDIR}/usr'
PYTHONPATH: '${APPDIR}/usr/lib/python3.8/site-packages'
test:
fedora-30:
image: appimagecrafters/tests-env:fedora-30
command: ./AppRun
use_host_x: true
debian-stable:
image: appimagecrafters/tests-env:debian-stable
command: ./AppRun
use_host_x: true
archlinux-latest:
image: appimagecrafters/tests-env:archlinux-latest
command: ./AppRun
use_host_x: true
centos-7:
image: appimagecrafters/tests-env:centos-7
command: ./AppRun
use_host_x: true
ubuntu-xenial:
image: appimagecrafters/tests-env:ubuntu-xenial
command: ./AppRun
use_host_x: true
AppImage:
arch: x86_64
update-information: guess