-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathjustfile
43 lines (31 loc) · 1.69 KB
/
justfile
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
registry_auth := "auth.json"
ostree_cache := "cache"
ostree_repo := "ostree-repo"
initialize := "--initialize"
images_dir := "images"
prep:
[ -d {{ostree_cache}} ] || mkdir -p {{ostree_cache}}
[ -d {{ostree_repo}} ] || ostree init --repo={{ostree_repo}}
[ -d {{images_dir}} ] || mkdir -p {{images_dir}}
clean-cache:
sudo rm -rf {{ ostree_cache }}
clean-variant variant:
rm -rf ./out/{{variant}}
clean-out:
rm -rf ./out
clean-repo:
rm -rf ./{{ostree_repo}}
clean-images:
rm -rf ./{{images_dir}}
clean: clean-cache clean-out clean-repo clean-images
compile variant: (clean-variant variant)
melody compile {{variant}}.yaml out/{{variant}}
compose-tree variant:
sudo rpm-ostree compose tree --cachedir={{ostree_cache}} --repo={{ostree_repo}} --unified-core out/{{variant}}/0.yaml
compose-image variant:
sudo rpm-ostree compose image --cachedir={{ostree_cache}} {{initialize}} out/{{variant}}/0.yaml {{images_dir}}/$(echo "{{variant}}" | tr / -)-{{arch()}}.tar
build-tree variant: prep (compile variant) (compose-tree variant)
build-image variant: prep (compile variant) (compose-image variant)
compile-all: (compile "ultramarine/base") (compile "ultramarine/flagship") (compile "ultramarine/gnome") (compile "ultramarine/pantheon") (compile "ultramarine/kde") (compile "tau/home")
build-all-tree: (build-tree "ultramarine/base") (build-tree "ultramarine/flagship") (build-tree "ultramarine/gnome") (build-tree "ultramarine/pantheon") (build-tree "ultramarine/kde") (build-tree "tau/home")
build-all-image: (build-image "ultramarine/base") (build-image "ultramarine/flagship") (build-image "ultramarine/gnome") (build-image "ultramarine/pantheon") (build-image "ultramarine/kde") (build-image "tau/home")