-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
61 lines (44 loc) · 1.43 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
.PHONY: rust-format rust-lint quicktype
BUILD_IMAGE = ghcr.io/zamm-dev/zamm:v0.2.1-build
CURRENT_DIR = $(shell pwd)
build: svelte rust
cargo tauri build $(ARGS)
mac: svelte rust
cargo tauri build --target universal-apple-darwin --verbose
copy-docker-deps:
mv -n /tmp/forks/async-openai/* ./forks/async-openai/
mv -n /tmp/forks/rvcr/* ./forks/rvcr/
mv -n /tmp/dependencies/forks/neodrag/packages/svelte/dist ./forks/neodrag/packages/svelte/
mv -n /tmp/dependencies/node_modules ./
mv -n /tmp/dependencies/src-svelte/node_modules ./src-svelte/
build-docker:
docker run --rm -v $(CURRENT_DIR):/zamm -w /zamm $(BUILD_IMAGE) make copy-docker-deps build ARGS=$(ARGS)
icon:
yarn tauri icon src-tauri/icons/icon.png
docker:
docker build . -t $(BUILD_IMAGE)
docker push $(BUILD_IMAGE)
e2e-test: svelte rust
yarn e2e-test
test: svelte rust
cd src-svelte && make test
cd src-tauri && make test
yarn e2e-test
quicktype:
yarn quicktype src-tauri/api/sample-call-schema.json -s schema -o src-tauri/src/sample_call.rs --visibility public --derive-debug
yarn quicktype src-tauri/api/sample-call-schema.json -s schema -o src-svelte/src/lib/sample-call.ts
rust-format:
cd src-tauri && make format
rust-lint:
cd src-tauri && make lint
rust:
cd src-tauri && make
svelte-format:
cd src-svelte && make format
svelte-lint:
cd src-svelte && make lint
svelte:
cd src-svelte && make
clean:
cd src-svelte && make clean
cd src-tauri && make clean