5b8e0851d4e7
Rename to leaf; draggable window; white icon
8 days ago
| 1 | APP := target/release/Leaf.app
|
a411cd0cb7b1
Add acorn, a minimal wgpu terminal emulator
9 days ago
| 2 |
|
| 3 | .PHONY: build run test app install icon clean
|
| 4 |
|
| 5 | build:
|
| 6 | cargo build --release
|
| 7 |
|
| 8 | run:
|
| 9 | cargo run --release
|
| 10 |
|
| 11 | test:
|
| 12 | cargo test
|
| 13 |
|
5b8e0851d4e7
Rename to leaf; draggable window; white icon
8 days ago
| 14 | # A macOS app bundle, so leaf can live in /Applications and the Dock.
|
a411cd0cb7b1
Add acorn, a minimal wgpu terminal emulator
9 days ago
| 15 | app: build
|
| 16 | rm -rf $(APP)
|
| 17 | mkdir -p $(APP)/Contents/MacOS $(APP)/Contents/Resources
|
5b8e0851d4e7
Rename to leaf; draggable window; white icon
8 days ago
| 18 | cp target/release/leaf $(APP)/Contents/MacOS/leaf
|
a411cd0cb7b1
Add acorn, a minimal wgpu terminal emulator
9 days ago
| 19 | cp macos/Info.plist $(APP)/Contents/Info.plist
|
5b8e0851d4e7
Rename to leaf; draggable window; white icon
8 days ago
| 20 | cp macos/Leaf.icns $(APP)/Contents/Resources/Leaf.icns
|
a411cd0cb7b1
Add acorn, a minimal wgpu terminal emulator
9 days ago
| 21 |
|
| 22 | install: app
|
5b8e0851d4e7
Rename to leaf; draggable window; white icon
8 days ago
| 23 | rm -rf /Applications/Leaf.app
|
| 24 | cp -R $(APP) /Applications/Leaf.app
|
| 25 | touch /Applications/Leaf.app
|
a411cd0cb7b1
Add acorn, a minimal wgpu terminal emulator
9 days ago
| 26 |
|
5b8e0851d4e7
Rename to leaf; draggable window; white icon
8 days ago
| 27 | # Regenerates macos/Leaf.icns from a font glyph, e.g.
|
a411cd0cb7b1
Add acorn, a minimal wgpu terminal emulator
9 days ago
| 28 | # make icon FONT=$$HOME/Downloads/Yarndings20-Regular.ttf GLYPH=h
|
| 29 | GLYPH ?= h
|
| 30 | icon:
|
| 31 | @test -n "$(FONT)" || (echo "usage: make icon FONT=path/to/font.ttf [GLYPH=h]" && exit 2)
|
5b8e0851d4e7
Rename to leaf; draggable window; white icon
8 days ago
| 32 | rm -rf target/Leaf.iconset
|
| 33 | swift macos/make-icon.swift "$(FONT)" "$(GLYPH)" target/Leaf.iconset
|
| 34 | iconutil -c icns target/Leaf.iconset -o macos/Leaf.icns
|
a411cd0cb7b1
Add acorn, a minimal wgpu terminal emulator
9 days ago
| 35 |
|
| 36 | clean:
|
| 37 | cargo clean
|