-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
79 lines (58 loc) · 1.89 KB
/
Makefile
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
.PHONY: mizer test benchmarks build-headless build build-release run clean flatpak artifact
mizer: test build-headless build
test:
cargo nextest run --workspace
benchmarks:
cargo bench --no-default-features --benches --workspace
oscillator_nodes_benchmarks:
cargo bench --no-default-features --bench oscillator_nodes
fixtures_benchmarks:
cargo bench --no-default-features -p mizer-fixtures --bench fixtures
build-headless:
cargo build --release --no-default-features --features build-ffmpeg -p mizer
build:
cd crates/ui && make
cargo build -p mizer
build-release:
cd crates/ui && make release
cargo build --no-default-features --features ui --features build-ffmpeg --release -p mizer
run: build
cargo run -p mizer
clean:
rm -rf artifact
rm -f mizer.zip
rm -f mizer.flatpak
artifact:
rm -rf artifact || true
cargo run -p mizer-package
package-headless:
cargo run -p mizer-package --no-default-features
build-docker:
docker build -t mizer:latest .
mizer.zip: artifact
cd artifact && zip -r ../mizer.zip *
Mizer.dmg: artifact
./scripts/sign-macos-app.sh
./scripts/notarize-macos-app.sh
./scripts/package-dmg.sh
Mizer_unsigned.dmg: mizer.zip
create-dmg --volname Mizer \
--volicon "artifact/Mizer.app/Contents/Resources/AppIcon.icns" \
--window-pos 200 120 \
--window-size 800 400 \
--icon-size 100 \
--icon "Mizer.app" 200 190 \
--hide-extension "Mizer.app" \
--app-drop-link 600 185 \
Mizer_unsigned.dmg \
artifact
build-in-docker:
./.ci/test-local.sh
flatpak:
flatpak-builder --install-deps-from=flathub --force-clean .flatpak flatpak/me.maxjoehnk.Mizer.yml
flatpak-install:
flatpak-builder --install-deps-from=flathub --user --install --force-clean .flatpak flatpak/me.maxjoehnk.Mizer.yml
mizer.flatpak: flatpak-install
flatpak build-bundle ~/.local/share/flatpak/repo mizer.flatpak me.maxjoehnk.Mizer
bdd-tests: mizer.zip
cd tests && pipenv run behave