-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathsnapcraft.yaml
More file actions
94 lines (87 loc) · 2.71 KB
/
Copy pathsnapcraft.yaml
File metadata and controls
94 lines (87 loc) · 2.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
name: samrewritten
title: SamRewritten
version: '1.4.4'
summary: Steam achievements and stats manager
description: Unlock achievements and stats on your Steam account
confinement: strict
base: core24
license: GPL-3.0-only
contact: https://github.com/PaulCombal/SamRewritten/issues
issues: https://github.com/PaulCombal/SamRewritten/issues
source-code: https://github.com/PaulCombal/SamRewritten
website: https://paulcombal.github.io/SamRewritten/
parts:
# This workaround stays until gnome extensions land in core26
rust-deps:
plugin: nil
build-packages:
- curl
override-build: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain stable
samrewritten:
plugin: rust
source: .
after: [rust-deps]
rust-channel: "none"
build-environment:
- RUSTUP_TOOLCHAIN: stable
build-packages:
- libpango1.0-dev
- libcairo2-dev
- libglib2.0-dev
- libssl-dev
- pkg-config
stage-packages:
- glib-networking
override-build: |
# Default GTK GUI build.
cargo build --release --no-default-features --features gui
install -Dm755 target/release/samrewritten "$CRAFT_PART_INSTALL/bin/samrewritten"
# Adwaita variant (GTK + libadwaita widgets).
cargo build --release --no-default-features --features adwaita
install -Dm755 target/release/samrewritten "$CRAFT_PART_INSTALL/bin/samrewritten-adw"
cargo build --release --no-default-features --features cli
install -Dm755 target/release/samrewritten "$CRAFT_PART_INSTALL/bin/samrewritten-cli"
# GSettings schema (used by both GUI variants).
install -Dm644 assets/org.samrewritten.SamRewritten.gschema.xml \
"${CRAFT_PART_INSTALL}/usr/share/glib-2.0/schemas/org.samrewritten.SamRewritten.gschema.xml"
glib-compile-schemas "${CRAFT_PART_INSTALL}/usr/share/glib-2.0/schemas/"
launcher:
plugin: nil
source: package
override-build: |
install -Dm755 sam-launcher.sh "$CRAFT_PART_INSTALL/bin/sam-launcher.sh"
slots:
dbus-samrewritten:
interface: dbus
bus: session
name: org.samrewritten.SamRewritten
apps:
samrewritten:
command-chain: [bin/sam-launcher.sh]
command: bin/samrewritten
extensions: [gnome]
plugs:
- network
- wayland
- x11
- home
slots:
- dbus-samrewritten
samrewritten-adw:
command-chain: [bin/sam-launcher.sh]
command: bin/samrewritten-adw
extensions: [gnome]
plugs:
- network
- wayland
- x11
- home
slots:
- dbus-samrewritten
samrewritten-cli:
command-chain: [bin/sam-launcher.sh]
command: bin/samrewritten-cli
plugs:
- network
- home