Use linuxdeploy

This commit is contained in:
Dheepak Krishnamurthy 2020-10-28 14:00:00 -06:00
parent 01057816ec
commit 7daa0437df
2 changed files with 9 additions and 67 deletions

View file

@ -1,64 +0,0 @@
version: 1
script:
- rm -rf AppDir || true
- mkdir -p AppDir/bin
- cp target/release/taskwarrior-tui AppDir/bin/taskwarrior-tui
AppDir:
path: ./AppDir
app_info:
id: org.taskwarrior-tui.taskwarrior-tui
name: taskwarrior-tui
icon: taskwarrior-tui
version: 0.1.0
exec: $APPDIR/usr/bin/taskwarrior-tui
exec_args: $@
apt:
arch: amd64
sources:
- sourceline: 'deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse'
key_url: 'http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3b4fe6acc0b21f32'
include: []
exclude: []
runtime:
env:
PATH: '${APPDIR}/usr/bin:${PATH}'
files:
exclude:
- usr/share/man
- usr/share/doc/*/README.*
- usr/share/doc/*/changelog.*
- usr/share/doc/*/NEWS.*
- usr/share/doc/*/TODO.*
test:
fedora:
image: appimagecrafters/tests-env:fedora-30
command: ./AppRun
use_host_x: true
debian:
image: appimagecrafters/tests-env:debian-stable
command: ./AppRun
use_host_x: true
arch:
image: appimagecrafters/tests-env:archlinux-latest
command: ./AppRun
use_host_x: true
centos:
image: appimagecrafters/tests-env:centos-7
command: ./AppRun
use_host_x: true
ubuntu:
image: appimagecrafters/tests-env:ubuntu-xenial
command: ./AppRun
use_host_x: true
AppImage:
update-information: None
sign-key: None
arch: x86_64

View file

@ -182,9 +182,15 @@ jobs:
command: build
args: --release
- name: Build AppImage
uses: AppImageCrafters/build-appimage-action@master
with:
recipe: .github/appimage-builder.yml
run: |
wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage
chmod +x linuxdeploy-x86_64.AppImage
chmod +x appimagetool-x86_64.AppImage
mkdir -p AppDir/bin
cp target/release/taskwarrior-tui AppDir/bin/taskwarrior-tui
./linuxdeploy-x86_64.AppImage --appdir AppDir
./appimagetool-x86_64.AppImage AppDir/
snap:
name: Push to snap