Add appimage support (#77)
This commit is contained in:
parent
2326072222
commit
460a3c22b3
48
.github/workflows/linux.yml
vendored
48
.github/workflows/linux.yml
vendored
|
@ -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
|
||||
|
|
2323
icon.svg
Normal file
2323
icon.svg
Normal file
File diff suppressed because it is too large
Load diff
After Width: | Height: | Size: 94 KiB |
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue