From 9be3490eafa23545327a4005cae07fffd25a4212 Mon Sep 17 00:00:00 2001 From: Julian Chen Date: Wed, 17 Jan 2024 15:28:13 +0800 Subject: [PATCH] add snapcraft.yaml for building snap package --- snap/snapcraft.yaml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 snap/snapcraft.yaml diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml new file mode 100644 index 00000000..9a1880c9 --- /dev/null +++ b/snap/snapcraft.yaml @@ -0,0 +1,37 @@ +name: yazi +base: core22 +adopt-info: yazi +summary: Blazing fast terminal file manager +description: | + Yazi, which means "duck", is a terminal file manager written in Rust, based on non-blocking async I/O. + It aims to provide an efficient, user-friendly, and customizable file management experience. +license: MIT + +grade: stable +confinement: classic + +architectures: + - build-on: amd64 + build-for: amd64 +# - build-on: amd64 +# build-for: arm64 + + +apps: + yazi: + command: yazi + environment: + PATH: $SNAP/bin:$PATH + +parts: + yazi: + plugin: rust + source: https://github.com/sxyazi/yazi.git + override-build: | + craftctl default + craftctl set version=$(git describe --tags --abbrev=0) + cargo install fd-find --root $CRAFT_PART_INSTALL + cargo install ripgrep --root $CRAFT_PART_INSTALL + cargo install zoxide --root $CRAFT_PART_INSTALL + git clone --depth 1 https://github.com/junegunn/fzf.git fzf + fzf/install --bin && mv fzf/bin/fzf $CRAFT_PART_INSTALL/bin/