-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsnapcraft.yaml
More file actions
35 lines (31 loc) · 891 Bytes
/
snapcraft.yaml
File metadata and controls
35 lines (31 loc) · 891 Bytes
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
name: dloom
base: core24
summary: Manage symlinks for user dotfiles
description: dloom is a CLI tool that links and unlinks configuration files (or "dotfiles") to a development machine.
adopt-info: dloom
grade: devel
confinement: classic
platforms:
amd64:
arm64:
parts:
dloom:
plugin: go
source: .
source-type: local
build-snaps:
- go/1.26/stable
build-packages:
- git
- make
build-environment:
- CGO_ENABLED: "0"
override-build: |
version="$(git -C "$CRAFT_PROJECT_DIR" describe --long --tags --always --match='v*.*.*' 2>/dev/null || git -C "$CRAFT_PROJECT_DIR" rev-parse --short=12 HEAD 2>/dev/null || printf 'dev')"
version="${version#v}"
craftctl set version="$version"
make build VERSION="$version"
install -Dm755 bin/dloom "$CRAFT_PART_INSTALL/bin/dloom"
apps:
dloom:
command: bin/dloom