Skip to content

Commit 288dcf7

Browse files
authored
Update snap to core22 (#55)
1 parent c28c518 commit 288dcf7

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

snap/snapcraft.yaml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: image-sieve
22
title: ImageSieve
3-
base: core20
3+
base: core22
44
summary: Tool to sort out images and archive them in a target folder
55
description: |
66
ImageSieve aims to help in the process of sorting through images taken by several
@@ -18,24 +18,32 @@ icon: snap/gui/ImageSieve.png
1818
apps:
1919
image-sieve:
2020
command: bin/image_sieve
21-
extensions: [gnome-3-38]
21+
extensions: [gnome]
2222
plugs:
2323
- home
2424
- removable-media
2525
- network
2626

2727
parts:
28+
install-rust:
29+
plugin: nil
30+
override-build: |
31+
if ! command -v rustup 2>/dev/null; then
32+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path --profile=minimal
33+
export PATH="${HOME}/.cargo/bin:${PATH}"
34+
fi
2835
image-sieve:
2936
plugin: rust
37+
after: [install-rust]
3038
source: .
3139
override-pull: |
32-
snapcraftctl pull
40+
craftctl default
3341
ver=""
3442
ver=$(git describe --tags --abbrev=0 | sed 's/v//') || true
3543
if [ -z $ver ]
3644
then ver="0.0.0"
3745
fi
38-
snapcraftctl set-version $ver
46+
craftctl set version=$ver
3947
build-packages:
4048
- cmake
4149
- git
@@ -49,6 +57,8 @@ parts:
4957
- libavutil-dev
5058
- libswscale-dev
5159
- libclang-dev
60+
- rustc
61+
- cargo
5262

5363
deps:
5464
plugin: nil

0 commit comments

Comments
 (0)