mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
add snapcraft.yaml for building snap package
This commit is contained in:
parent
6145bc38dc
commit
9be3490eaf
1 changed files with 37 additions and 0 deletions
37
snap/snapcraft.yaml
Normal file
37
snap/snapcraft.yaml
Normal file
|
|
@ -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/
|
||||||
Loading…
Add table
Reference in a new issue