Skip to content

Deploy as AppImage #557

Description

@FilePhil

Please extend the release packages of Artsian with an AppImages version.
AppImages can be run on all common Linux distributions and made the usage very easy.

I tried to create a AppImage by using the pkg2appimage Tool.

But I can't get it to run.

In the process a "AppDir" folder is created with a unpacked version of the deb-package.
I can launch Artisan by executing the artisan file in the folder "./artisan.AppDir/usr/share/artisan/".

To build the Appimage I used the snipped provided by pkg2appimage.

wget -c https://github.com/$(wget -q https://github.com/AppImage/pkg2appimage/releases -O - | grep "pkg2appimage-.*-x86_64.AppImage" | head -n 1 | cut -d '"' -f 2)
chmod +x ./pkg2appimage-*.AppImage
./pkg2appimage-*.AppImage artisan.yml

To create the AppImage you need a yml file to specify the needed packages and modifications.
I have adopted one of the example recipes.
It pulls the latest release version of the deb-package and converts it into a AppImage.

artisan.yml

app: artisan

ingredients:
  dist: trusty
  sources:
    - deb http://archive.ubuntu.com/ubuntu/ trusty main universe
  script:
    - DEB=$(wget -q https://github.com/artisan-roaster-scope/artisan/releases/ -O - | grep deb | grep href |  head -n 2 | tail -n 1 | cut -d '"' -f 2)
    - wget -c "https://github.com/$DEB"
    - VER1=$(ls artisan-linux-*.deb | cut -d '-' -f 3 | sed -e 's|.deb||g')
    - mv "artisan-linux-${VER1}.deb" "artisan_linux_${VER1}_amd64.deb"

script:
  - cp ./usr/share/applications/artisan.desktop artisan.desktop
  - sed -i -e 's|^Exec=.*|Exec=artisan|g' artisan.desktop

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions