diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index e7ac5bd..c738543 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -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 diff --git a/icon.png b/icon.png new file mode 100644 index 0000000..c782306 Binary files /dev/null and b/icon.png differ diff --git a/icon.svg b/icon.svg new file mode 100644 index 0000000..d78a59f --- /dev/null +++ b/icon.svg @@ -0,0 +1,2323 @@ + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pkgs/com.github.qarmin.czkawka.desktop b/pkgs/com.github.qarmin.czkawka.desktop index 724cc5f..7e29e3f 100644 --- a/pkgs/com.github.qarmin.czkawka.desktop +++ b/pkgs/com.github.qarmin.czkawka.desktop @@ -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;