From 7daa0437df712c3c799a1526947e20280f80f383 Mon Sep 17 00:00:00 2001 From: Dheepak Krishnamurthy Date: Wed, 28 Oct 2020 14:00:00 -0600 Subject: [PATCH] Use linuxdeploy --- .github/appimage-builder.yml | 64 ------------------------------------ .github/workflows/ci.yml | 12 +++++-- 2 files changed, 9 insertions(+), 67 deletions(-) delete mode 100644 .github/appimage-builder.yml diff --git a/.github/appimage-builder.yml b/.github/appimage-builder.yml deleted file mode 100644 index d4622b4..0000000 --- a/.github/appimage-builder.yml +++ /dev/null @@ -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 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0cc8713..86d8537 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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