Home

Awesome

Description

GitHub Action for creating AppImage releases from .tar.gz packages. It generates AppImage file based on source .tar.gz under git tag latest.

The GitHub repo needs to have app.desktop file in the root and GitHub action set. See examples at:

It can be used as GitHub action, but bash script can be used as standalone outside of GitHub.

GitHub Action Usage

See action.yml

    steps:
      - uses: actions/checkout@v2
      - name: Build
        id: build
        uses: valicm/appimage-bash@v1.1
        with:
          version_url: 'https://dl.pstmn.io/download/latest/linux64'
          version_file: 'app/resources/app/package.json'
          version_bash: 'jq -r  .version'
          version_icon: 'icon_128x128.png'

Action Inputs

Standalone usage

The bash script can be used as standalone for building AppImage packages. It relies on app.desktop file having specific properties from where you can define download url, icon, etc..

app.desktop properties:

Specification of these properties are same as of action inputs above.

Standalone usage

Get build.sh

wget https://raw.githubusercontent.com/valicm/appimage-bash/main/build.sh chmod +x build.sh

Create app.desktop

[Desktop Entry]
Version=1.0
Type=Application
Name=PhpStorm
Exec=phpstorm.sh %f
Icon=Phpstorm
Comment=PhpStorm
Categories=Development;IDE;
Terminal=false
StartupNotify=true
StartupWMClass=jetbrains-phpstorm

VersionUrl=https://data.services.jetbrains.com/products/download?code=PS&platform=linux
VersionFile=product-info.json
VersionBash=jq -r  .version
VersionIcon=phpstorm.svg
VersionDirectory=opt/phpstorm

Execute

bash build.sh

License

The scripts and documentation in this project are released under the MIT License