1
0
Fork 0
mirror of synced 2024-05-15 09:52:33 +12:00

Update snap file

This commit is contained in:
qarmin 2021-11-08 14:45:18 +01:00
parent 0d9f934141
commit 8f232285e5

View file

@ -1,5 +1,5 @@
name: czkawka # you probably want to 'snapcraft register <name>' name: czkawka # you probably want to 'snapcraft register <name>'
base: core18 # the base snap is the execution environment for this snap base: core20 # the base snap is the execution environment for this snap
version: '3.2.0' # just for humans, typically '1.2+git' or '1.3.2' version: '3.2.0' # just for humans, typically '1.2+git' or '1.3.2'
summary: Czkawka - fast data cleaner written in Rust # 79 char long summary summary: Czkawka - fast data cleaner written in Rust # 79 char long summary
description: | description: |
@ -10,26 +10,18 @@ confinement: strict # use 'strict' once you have the right plugs and slots
parts: parts:
czkawka: czkawka:
plugin: nil plugin: rust
source: https://github.com/qarmin/czkawka.git source: https://github.com/qarmin/czkawka.git
build-packages: build-packages:
- libgtk-3-dev
- libasound2-dev - libasound2-dev
- curl - curl
- gcc - gcc
- git - git
stage-packages: rust-path: ["czkawka_gui"]
- libgtk-3-dev
override-build: |
if ! command -v rustup 2>/dev/null; then
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path --profile=minimal
export PATH="${HOME}/.cargo/bin:${PATH}"
fi
cargo install --locked --path czkawka_gui --root "${SNAPCRAFT_PART_INSTALL}" --force
apps: apps:
czkawka: czkawka:
command: bin/czkawka_gui command: bin/czkawka_gui
extensions: [gnome-3-28] extensions: [gnome-3-38]
plugs: plugs:
- home - home
- removable-media - removable-media