2021-08-12 08:07:22 +12:00
|
|
|
# appimage-builder recipe see https://appimage-builder.readthedocs.io for details
|
|
|
|
version: 1
|
|
|
|
|
|
|
|
script:
|
|
|
|
# Remove any previous build
|
2021-08-18 02:54:55 +12:00
|
|
|
- rm -rf AppDir Rare | true
|
2021-08-12 08:07:22 +12:00
|
|
|
# Make usr and icons dirs
|
|
|
|
- mkdir -p AppDir/usr/src
|
|
|
|
- mkdir -p AppDir/usr/share/icons/hicolor/256x256/apps/
|
2021-12-16 08:14:44 +13:00
|
|
|
# Copy source files
|
2021-12-09 05:53:26 +13:00
|
|
|
- cp -r rare AppDir/usr/src/rare
|
2021-12-16 08:14:44 +13:00
|
|
|
- mv AppDir/usr/src/rare/__main__.py AppDir/usr/src/
|
|
|
|
# copy Logo
|
2021-08-18 03:35:02 +12:00
|
|
|
- cp AppDir/usr/src/rare/resources/images/Rare.png AppDir/usr/share/icons/hicolor/256x256/apps/
|
2021-08-12 08:07:22 +12:00
|
|
|
# Install application dependencies
|
2022-08-30 11:21:14 +12:00
|
|
|
- python3 -m pip install --ignore-installed --prefix=/usr --root=AppDir pypresence qtawesome legendary-gl typing_extensions
|
2021-08-12 08:07:22 +12:00
|
|
|
|
|
|
|
AppDir:
|
|
|
|
path: AppDir
|
|
|
|
app_info:
|
2022-08-30 11:21:14 +12:00
|
|
|
id: io.github.dummerle.rare
|
2021-08-12 08:07:22 +12:00
|
|
|
name: Rare
|
2021-08-18 03:35:02 +12:00
|
|
|
icon: Rare
|
2023-03-31 11:16:04 +13:00
|
|
|
version: 1.9.91
|
2021-08-12 08:07:22 +12:00
|
|
|
exec: usr/bin/python3
|
2021-12-11 12:19:36 +13:00
|
|
|
exec_args: $APPDIR/usr/src/__main__.py $@
|
2021-12-12 13:46:38 +13:00
|
|
|
apt:
|
|
|
|
arch: amd64
|
|
|
|
allow_unauthenticated: true
|
|
|
|
sources:
|
2022-08-30 11:21:14 +12:00
|
|
|
- sourceline: 'deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy main restricted universe multiverse'
|
|
|
|
key_url: 'http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3b4fe6acc0b21f32'
|
2021-12-12 13:46:38 +13:00
|
|
|
|
2021-12-16 08:14:44 +13:00
|
|
|
include:
|
|
|
|
- python3
|
|
|
|
- python3-distutils
|
|
|
|
- python3-pyqt5
|
2021-12-19 12:06:05 +13:00
|
|
|
- python3-pyqt5.qtsvg
|
2021-12-16 08:14:44 +13:00
|
|
|
- python3-requests
|
2021-08-12 08:07:22 +12:00
|
|
|
|
|
|
|
runtime:
|
|
|
|
env:
|
|
|
|
# Set python home
|
|
|
|
# See https://docs.python.org/3/using/cmdline.html#envvar-PYTHONHOME
|
|
|
|
PYTHONHOME: '${APPDIR}/usr'
|
|
|
|
# Path to the site-packages dir or other modules dirs
|
|
|
|
# See https://docs.python.org/3/using/cmdline.html#envvar-PYTHONPATH
|
2021-12-19 12:06:05 +13:00
|
|
|
PYTHONPATH: '${APPDIR}/usr/lib/python3.8/site-packages:${APPDIR}/usr/lib/python3.9/site-packages'
|
2021-08-12 08:07:22 +12:00
|
|
|
|
|
|
|
test:
|
|
|
|
fedora:
|
|
|
|
image: appimagecrafters/tests-env:fedora-30
|
2021-12-11 12:18:57 +13:00
|
|
|
command: ./AppRun --test-start
|
2021-08-12 08:07:22 +12:00
|
|
|
use_host_x: true
|
2021-08-17 06:41:33 +12:00
|
|
|
debian-stable:
|
2021-08-12 08:07:22 +12:00
|
|
|
image: appimagecrafters/tests-env:debian-stable
|
2021-12-11 12:18:57 +13:00
|
|
|
command: ./AppRun --test-start
|
2021-08-12 08:07:22 +12:00
|
|
|
use_host_x: true
|
2021-08-17 06:41:33 +12:00
|
|
|
archlinux-latest:
|
2021-08-12 08:07:22 +12:00
|
|
|
image: appimagecrafters/tests-env:archlinux-latest
|
2021-12-11 12:18:57 +13:00
|
|
|
command: ./AppRun --test-start
|
2021-08-12 08:07:22 +12:00
|
|
|
use_host_x: true
|
2021-08-17 06:41:33 +12:00
|
|
|
centos-7:
|
2021-08-12 08:07:22 +12:00
|
|
|
image: appimagecrafters/tests-env:centos-7
|
2021-12-11 12:18:57 +13:00
|
|
|
command: ./AppRun --test-start
|
2021-08-12 08:07:22 +12:00
|
|
|
use_host_x: true
|
2021-08-17 06:41:33 +12:00
|
|
|
ubuntu-xenial:
|
2021-08-12 08:07:22 +12:00
|
|
|
image: appimagecrafters/tests-env:ubuntu-xenial
|
2021-12-16 08:14:44 +13:00
|
|
|
command: ./AppRun --test-start
|
2021-08-12 08:07:22 +12:00
|
|
|
use_host_x: true
|
2021-12-08 11:07:30 +13:00
|
|
|
|
2021-08-17 06:41:33 +12:00
|
|
|
AppImage:
|
|
|
|
arch: x86_64
|
2021-12-08 11:07:30 +13:00
|
|
|
update-information: gh-releases-zsync|Dummerle|Rare|latest|Rare*.AppImage.zsync
|