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-09-07 07:46:51 +12:00
|
|
|
- git clone https://github.com/Dummerle/Rare --recurse-submodules
|
2021-08-12 08:07:22 +12:00
|
|
|
- cp -r Rare/rare AppDir/usr/src/rare
|
2021-09-07 07:15:31 +12:00
|
|
|
- cp -r Rare/legendary AppDir/usr/src/
|
2021-08-12 08:07:22 +12:00
|
|
|
- cp AppDir/usr/src/rare/__main__.py AppDir/usr/src/__main__.py
|
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
|
|
|
|
- python3 -m pip install --system --ignore-installed --prefix=/usr --root=AppDir -r Rare/requirements.txt
|
|
|
|
|
|
|
|
AppDir:
|
|
|
|
path: AppDir
|
|
|
|
app_info:
|
|
|
|
id: org.dummerle.rare
|
|
|
|
name: Rare
|
2021-08-18 03:35:02 +12:00
|
|
|
icon: Rare
|
2021-08-12 08:07:22 +12:00
|
|
|
version: 1.5.0
|
|
|
|
exec: usr/bin/python3
|
2021-08-17 06:41:33 +12:00
|
|
|
exec_args: $APPDIR/usr/src/__main__.py $@
|
2021-08-12 08:07:22 +12:00
|
|
|
apt:
|
|
|
|
arch: amd64
|
2021-08-17 06:41:33 +12:00
|
|
|
allow_unauthenticated: true
|
2021-08-12 08:07:22 +12:00
|
|
|
sources:
|
2021-08-17 06:41:33 +12:00
|
|
|
- sourceline: deb http://de.archive.ubuntu.com/ubuntu/ groovy main restricted
|
|
|
|
- sourceline: deb http://de.archive.ubuntu.com/ubuntu/ groovy-updates main restricted
|
|
|
|
- sourceline: deb http://de.archive.ubuntu.com/ubuntu/ groovy universe
|
|
|
|
- sourceline: deb http://de.archive.ubuntu.com/ubuntu/ groovy-updates universe
|
|
|
|
- sourceline: deb http://de.archive.ubuntu.com/ubuntu/ groovy multiverse
|
|
|
|
- sourceline: deb http://de.archive.ubuntu.com/ubuntu/ groovy-updates multiverse
|
|
|
|
- sourceline: deb http://de.archive.ubuntu.com/ubuntu/ groovy-backports main restricted
|
|
|
|
universe multiverse
|
|
|
|
- sourceline: deb http://security.ubuntu.com/ubuntu groovy-security main restricted
|
|
|
|
- sourceline: deb http://security.ubuntu.com/ubuntu groovy-security universe
|
|
|
|
- sourceline: deb http://security.ubuntu.com/ubuntu groovy-security multiverse
|
2021-08-12 08:07:22 +12:00
|
|
|
include:
|
|
|
|
- python3
|
|
|
|
- python3-pkg-resources
|
2021-08-17 06:41:33 +12:00
|
|
|
- python3-distutils
|
|
|
|
- python3-pyqt5
|
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
|
|
|
|
PYTHONPATH: '${APPDIR}/usr/lib/python3.8/site-packages'
|
|
|
|
|
|
|
|
|
2021-08-17 06:41:33 +12:00
|
|
|
files:
|
|
|
|
include: [ ]
|
|
|
|
exclude: [ ]
|
2021-08-12 08:07:22 +12:00
|
|
|
|
|
|
|
test:
|
|
|
|
fedora:
|
|
|
|
image: appimagecrafters/tests-env:fedora-30
|
|
|
|
command: ./AppRun
|
|
|
|
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
|
|
|
|
command: ./AppRun
|
|
|
|
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
|
|
|
|
command: ./AppRun
|
|
|
|
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
|
|
|
|
command: ./AppRun
|
|
|
|
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
|
|
|
|
command: ./AppRun
|
|
|
|
use_host_x: true
|
2021-08-17 06:41:33 +12:00
|
|
|
AppImage:
|
|
|
|
arch: x86_64
|
|
|
|
update-information: gh-releases-zsync|Dummerle|Rare|latest|Rare-*x86_64.AppImage.zsync
|