mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
fix(snap): fix 7zip path in ubuntu package
This commit is contained in:
parent
478a7ff68c
commit
ac759d82eb
1 changed files with 15 additions and 1 deletions
|
|
@ -26,7 +26,7 @@ parts:
|
||||||
stage-snaps:
|
stage-snaps:
|
||||||
- jq
|
- jq
|
||||||
stage-packages:
|
stage-packages:
|
||||||
- 7zip
|
- 7zip-standalone
|
||||||
- chafa
|
- chafa
|
||||||
- fd-find
|
- fd-find
|
||||||
- ffmpeg
|
- ffmpeg
|
||||||
|
|
@ -58,3 +58,17 @@ parts:
|
||||||
- --prefix=/usr
|
- --prefix=/usr
|
||||||
build-attributes:
|
build-attributes:
|
||||||
- enable-patchelf
|
- enable-patchelf
|
||||||
|
|
||||||
|
# This is a bit of hack to work around a bug in latest snapcraft.
|
||||||
|
# This should be done in `override-prime` of the `yazi` part, but doing
|
||||||
|
# so seems to disable the automatic ELF patching, meaning none of the bins
|
||||||
|
# work correctly!
|
||||||
|
#
|
||||||
|
# Ubuntu's /usr/bin/7zz is a simple bash wrapper that just exec's
|
||||||
|
# /usr/lib/7zip/7zz - this just shortcuts that and places the actual
|
||||||
|
# executable at $SNAP/usr/bin/7zz.
|
||||||
|
fix-7z:
|
||||||
|
after: [yazi]
|
||||||
|
plugin: nil
|
||||||
|
override-prime: |
|
||||||
|
mv $CRAFT_PRIME/usr/lib/7zip/7zz $CRAFT_PRIME/usr/bin/7zz
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue