1
0
Fork 0
mirror of synced 2024-05-03 03:52:58 +12:00

Add appimage support (#77)

This commit is contained in:
Rafał Mikrut 2020-10-18 17:08:29 +02:00 committed by GitHub
parent 2326072222
commit 460a3c22b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 2374 additions and 3 deletions

View file

@ -214,3 +214,51 @@ jobs:
name: czkawka_gui_orbtk-${{ runner.os }}-${{ matrix.toolchain }}
path: target/release/czkawka_gui_orbtk
if: ${{ matrix.type == 'release' }}
linux-appimage-gui:
strategy:
matrix:
toolchain: [ stable ]
type: [ release ]
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
override: true
- uses: actions/cache@v2
with:
path: |
target
key: linux-appimage-gui-${{github.ref}}-${{github.sha}}
restore-keys: |
linux-appimage-gui-${{github.ref}}-${{github.sha}}
- name: Install Gtk,
run: sudo apt-get update; sudo apt install libgtk-3-dev librsvg2-dev wget -y
- name: Build GUI Release
run: cargo build --release --bin czkawka_gui
env:
CARGO_INCREMENTAL: 0
RUSTFLAGS: "-C debuginfo=0 -D warnings"
- name: Download appimage dependiences
run: |
wget -c "https://raw.githubusercontent.com/linuxdeploy/linuxdeploy-plugin-gtk/master/linuxdeploy-plugin-gtk.sh"
wget -c "https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage"
chmod +x linuxdeploy-plugin-gtk.sh
chmod +x linuxdeploy-x86_64.AppImage
mkdir -p AppDir/usr/bin
cp target/release/czkawka_gui AppDir/usr/bin
./linuxdeploy-x86_64.AppImage --appdir AppDir --plugin gtk --output appimage --icon-file icon.png --desktop-file pkgs/com.github.qarmin.czkawka.desktop
- name: Store Linux Appimage GUI
uses: actions/upload-artifact@v2
with:
name: czkawka_gui-appimage-${{ runner.os }}-${{ matrix.toolchain }}
path: Czkawka*.AppImage

BIN
icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

2323
icon.svg Normal file

File diff suppressed because it is too large Load diff

After

Width:  |  Height:  |  Size: 94 KiB

View file

@ -1,8 +1,8 @@
[Desktop Entry]
Version=1.0.0
Type=Application
Terminal=false
Exec=czkawka_gui
Name=Czkawka
Comment=Multi functional app to find duplicates, empty folders etc.
Icon=drive-multidisk
Comment=Multi functional app to clean OS which allow to find duplicates, empty folders, similar files etc.
Icon=icon
Categories=System;