-
Notifications
You must be signed in to change notification settings - Fork 331
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for snap packages (#531)
- Loading branch information
Showing
2 changed files
with
40 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: yazi | ||
base: core22 | ||
adopt-info: yazi | ||
summary: Blazing fast terminal file manager written in Rust, based on async I/O. | ||
description: | | ||
Yazi 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: | ||
- amd64 | ||
# - 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/ |