-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJustfile
More file actions
59 lines (44 loc) · 1012 Bytes
/
Copy pathJustfile
File metadata and controls
59 lines (44 loc) · 1012 Bytes
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
set shell := ["bash", "-euo", "pipefail", "-c"]
app := "CodexAPI"
app_bundle := app + ".app"
dist_dir := "dist"
# List available recipes.
default:
@just --list
# Run the app from SwiftPM.
run:
swift run {{app}}
# Build a debug binary.
build:
swift build
# Build a release binary.
release:
swift build -c release
# Run unit tests.
test:
swift test
# Build the menu-bar app bundle.
app:
scripts/build-app.sh
# Build and open the app bundle.
open-app: app
open -n {{app_bundle}}
# Stop any running app instance.
stop:
pkill -x {{app}} || true
# Rebuild and restart the app bundle.
restart: app
pkill -x {{app}} || true
sleep 1
open -n {{app_bundle}}
# Build a distributable zip under dist/.
package:
scripts/package-dist.sh
# Alias for package.
dist: package
# Print local proxy health.
health:
curl -sS -i http://127.0.0.1:1455/health
# Remove generated build, app, and distribution artifacts.
clean:
rm -rf .build {{app_bundle}} {{dist_dir}}