Hi, I tried to compile Rust app in Snap, but it shows this error
+ cargo install --locked --path . --root /root/parts/czkawka/install --force
error: found a virtual manifest at `/root/parts/czkawka/build/Cargo.toml` instead of a package manifest
Failed to build 'czkawka'.
because command to compile my app is no cargo build
but cargo build --bin czkawka_bin
My current snapcraft file:
name: czkawka # you probably want to 'snapcraft register <name>'
base: core20 # the base snap is the execution environment for this snap
version: '1.5.0' # just for humans, typically '1.2+git' or '1.3.2'
summary: Czkawka - fast OS cleaner written in Rust # 79 char long summary
description: |
Czkawka is very fast and feature rich cleaner which finds file duplicates, empty folders and files, si>
grade: stable # must be 'stable' to release into candidate/stable channels
confinement: devmode # use 'strict' once you have the right plugs and slots
parts:
czkawka:
plugin: rust
source: https://github.com/qarmin/czkawka.git
source-tag: 1.5.0
build-packages:
- libgtk-3-dev
stage-packages:
- libgtk-3-dev
override-build: |
# cargo build --bin czkawka_gui
snapcraftctl build
ls -alR
apps:
czkawka:
command: bin/czkawka_gui
plugs:
- home
- removable-media