-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
55 lines (46 loc) · 1.25 KB
/
Copy pathjustfile
File metadata and controls
55 lines (46 loc) · 1.25 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
default:
just --list
# devcontainer
build:
cmake -B build
cmake --build build
# devcontainer
build-exampleapp:
cmake -B build -D BUILD_EXAMPLE_APP=ON
cmake --build build
# devcontainer
run:
just build-exampleapp
./build/bin/example-app
# devcontainer
test:
just build
ctest --test-dir build --output-on-failure
# host
build-rpm:
#!/usr/bin/env bash
set -eou pipefail
mkdir -p ./output
rm -f ./output/*.rpm
podman run --rm -v "$PWD:/workspace:z" -w /workspace fedora:43 bash -lc '
set -eou pipefail
dnf install -y rpm-build
dnf builddep -y controllable.spec
export HOME=/root
VERSION=$(cat version.txt)
mkdir -p ~/rpmbuild/SOURCES
tar --transform "s|^\\.|controllable-$VERSION|" -czf ~/rpmbuild/SOURCES/$VERSION.tar.gz .
rpmbuild -bb controllable.spec
cp -v ~/rpmbuild/RPMS/*/*.rpm /workspace/output/
'
# host
build-flatpak: output
#!/usr/bin/env bash
set -eou pipefail
flatpak-builder --force-clean --repo=output/repo builddir .flatpak-manifest.json
flatpak build-bundle output/repo output/controllable.flatpak io.github.rfrench3.controllable
rm -r output/repo
rm -r builddir
[private]
output:
mkdir -p output