[snap] migrate base to core22 (#7841)
This fixes build failure due to incompatible Python runtime. Signed-off-by: 林博仁(Buo-ren Lin) <buo.ren.lin@gmail.com>
This commit is contained in:
1866
snap/local/scriptlets/selective-checkout
Executable file
1866
snap/local/scriptlets/selective-checkout
Executable file
File diff suppressed because it is too large
Load Diff
@@ -15,7 +15,7 @@
|
|||||||
# https://forum.snapcraft.io/c/snapcraft
|
# https://forum.snapcraft.io/c/snapcraft
|
||||||
name: gallery-dl
|
name: gallery-dl
|
||||||
license: GPL-2.0
|
license: GPL-2.0
|
||||||
base: core18
|
base: core22
|
||||||
summary: Download image-galleries and -collections from several image hosting sites
|
summary: Download image-galleries and -collections from several image hosting sites
|
||||||
description: |
|
description: |
|
||||||
`gallery-dl` is a command-line program to download image-galleries and -collections from several image hosting sites (see [Supported Sites][1]). It is a cross-platform tool with many configuration options and powerful filenaming capabilities.
|
`gallery-dl` is a command-line program to download image-galleries and -collections from several image hosting sites (see [Supported Sites][1]). It is a cross-platform tool with many configuration options and powerful filenaming capabilities.
|
||||||
@@ -26,21 +26,8 @@ adopt-info: gallery-dl
|
|||||||
confinement: strict
|
confinement: strict
|
||||||
grade: stable
|
grade: stable
|
||||||
|
|
||||||
|
# Configuration access
|
||||||
plugs:
|
plugs:
|
||||||
# For `xdg-open` command access for opening OAuth authentication webpages
|
|
||||||
desktop:
|
|
||||||
|
|
||||||
# Storage access
|
|
||||||
home:
|
|
||||||
removable-media: # Non-A/C
|
|
||||||
|
|
||||||
# Network access
|
|
||||||
network:
|
|
||||||
|
|
||||||
# For network service for receiving OAuth callback tokens
|
|
||||||
network-bind:
|
|
||||||
|
|
||||||
# Configuration access
|
|
||||||
config-gallery-dl:
|
config-gallery-dl:
|
||||||
interface: personal-files
|
interface: personal-files
|
||||||
read:
|
read:
|
||||||
@@ -63,42 +50,28 @@ parts:
|
|||||||
organize:
|
organize:
|
||||||
'*': bin/
|
'*': bin/
|
||||||
|
|
||||||
# Check out the tagged release revision if it isn't promoted to the stable channel
|
|
||||||
# https://forum.snapcraft.io/t/selective-checkout-check-out-the-tagged-release-revision-if-it-isnt-promoted-to-the-stable-channel/10617
|
|
||||||
selective-checkout:
|
|
||||||
source: https://github.com/Lin-Buo-Ren/selective-checkout.git
|
|
||||||
source-tag: v2.0.0
|
|
||||||
plugin: dump
|
|
||||||
build-packages:
|
|
||||||
# Scriptlet dependencies
|
|
||||||
- curl
|
|
||||||
- git
|
|
||||||
- jq
|
|
||||||
- sed
|
|
||||||
stage:
|
|
||||||
- scriptlets/selective-checkout
|
|
||||||
prime:
|
|
||||||
- -*
|
|
||||||
|
|
||||||
gallery-dl:
|
gallery-dl:
|
||||||
after:
|
|
||||||
- selective-checkout
|
|
||||||
|
|
||||||
source: .
|
source: .
|
||||||
override-pull: |
|
override-pull: |
|
||||||
snapcraftctl pull
|
craftctl default
|
||||||
$SNAPCRAFT_STAGE/scriptlets/selective-checkout
|
${CRAFT_PROJECT_DIR}/snap/local/scriptlets/selective-checkout
|
||||||
|
|
||||||
plugin: python
|
plugin: python
|
||||||
build-packages:
|
build-packages:
|
||||||
- make
|
- make
|
||||||
|
|
||||||
|
# selective-checkout scriptlet dependencies
|
||||||
|
- curl
|
||||||
|
- git
|
||||||
|
- jq
|
||||||
|
- sed
|
||||||
python-packages:
|
python-packages:
|
||||||
- youtube_dl
|
- youtube_dl
|
||||||
override-build: |
|
override-build: |
|
||||||
# build manpages and bash completion
|
# build manpages and bash completion
|
||||||
make man completion
|
make man completion
|
||||||
|
|
||||||
snapcraftctl build
|
craftctl default
|
||||||
|
|
||||||
ffmpeg:
|
ffmpeg:
|
||||||
plugin: nil
|
plugin: nil
|
||||||
@@ -108,14 +81,23 @@ parts:
|
|||||||
|
|
||||||
apps:
|
apps:
|
||||||
gallery-dl:
|
gallery-dl:
|
||||||
adapter: full
|
|
||||||
command-chain:
|
command-chain:
|
||||||
- bin/gallery-dl-launch
|
- bin/gallery-dl-launch
|
||||||
command: bin/gallery-dl
|
command: bin/gallery-dl
|
||||||
completer: share/bash-completion/completions/gallery-dl
|
completer: share/bash-completion/completions/gallery-dl
|
||||||
|
plugs:
|
||||||
|
# For `xdg-open` command access for opening OAuth authentication webpages
|
||||||
|
- desktop
|
||||||
|
# Storage access
|
||||||
|
- home
|
||||||
|
- removable-media
|
||||||
|
# Network access
|
||||||
|
- network
|
||||||
|
# For network service for receiving OAuth callback tokens
|
||||||
|
- network-bind
|
||||||
environment:
|
environment:
|
||||||
LANG: C.UTF-8
|
LANG: C.UTF-8
|
||||||
LC_ALL: C.UTF-8
|
LC_ALL: C.UTF-8
|
||||||
|
|
||||||
# Satisfy FFmpeg's libpulsecommon dependency
|
# Satisfy FFmpeg's libpulsecommon dependency
|
||||||
LD_LIBRARY_PATH: $LD_LIBRARY_PATH:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/pulseaudio
|
LD_LIBRARY_PATH: $LD_LIBRARY_PATH:$SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/pulseaudio
|
||||||
|
|||||||
Reference in New Issue
Block a user