-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
53 lines (43 loc) · 1.41 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
44
45
46
47
48
49
50
51
52
53
_default:
@just --list
# Run podman build
build-local:
podman build . -t localhost/bitwigbox
# Create distrobox
create local="local":
#!/usr/bin/env bash
if [ $(distrobox list | grep -oP '(?<=| )bitwigbox(?= | )') ]; then
echo "Error: container already exists"
read -p "Do you want to force remove it (this will stop all currently open processess) (y/n)?"$'\n' -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]; then
echo "Removing container"
distrobox rm bitwigbox --force
else
echo "Aborting"
exit 1
fi
fi
echo "Creating container"
if [ "{{local}}" = "local" ]; then
distrobox create -n bitwigbox -i localhost/bitwigbox --yes --home ~/BitwigBox
else
echo "Error: non-local builds are not supported yet"
exit 1
# distrobox create -n bitwigbox -i ghcr.io/xynydev/bitwigbox --yes --home ~/BitwigBox
fi
# Export Bitwig Studio (or something else) to the app menu
export app="bitwig":
distrobox enter bitwigbox -- distrobox-export --app {{app}}
# Run Bitwig Studio
run:
distrobox enter bitwigbox -- /opt/bitwig-studio/BitwigStudio
# Run yabridgectl
yabridgectl *ARGS:
distrobox enter bitwigbox -- yabridgectl {{ARGS}}
# Run wine
wine *ARGS:
distrobox enter bitwigbox -- wine {{ARGS}}
# Run winecfg
winecfg *ARGS:
distrobox enter bitwigbox -- winecfg {{ARGS}}