Commit 344414be
344414be8c0cMergedon zach-1de969
zach · 1 month ago · 7 files · +2 added · ~5 modified
Details
- Commit
- 344414be8c0c
- Parent
- df74dca0d99d
MakefilemodifiedView file
@@ -1,6 +1,6 @@
11
APP := target/release/Acorn.app22
3-
.PHONY: build run test app install clean3+
.PHONY: build run test app install icon clean44
55
build:66
cargo build --release@@ -14,13 +14,24 @@
1414
# A macOS app bundle, so acorn can live in /Applications and the Dock.1515
app: build1616
rm -rf $(APP)17-
mkdir -p $(APP)/Contents/MacOS17+
mkdir -p $(APP)/Contents/MacOS $(APP)/Contents/Resources1818
cp target/release/acorn $(APP)/Contents/MacOS/acorn1919
cp macos/Info.plist $(APP)/Contents/Info.plist20+
cp macos/Acorn.icns $(APP)/Contents/Resources/Acorn.icns2021
2122
install: app2223
rm -rf /Applications/Acorn.app2324
cp -R $(APP) /Applications/Acorn.app25+
touch /Applications/Acorn.app26+
27+
# Regenerates macos/Acorn.icns from a font glyph, e.g.28+
# make icon FONT=$$HOME/Downloads/Yarndings20-Regular.ttf GLYPH=h29+
GLYPH ?= h30+
icon:31+
@test -n "$(FONT)" || (echo "usage: make icon FONT=path/to/font.ttf [GLYPH=h]" && exit 2)32+
rm -rf target/Acorn.iconset33+
swift macos/make-icon.swift "$(FONT)" "$(GLYPH)" target/Acorn.iconset34+
iconutil -c icns target/Acorn.iconset -o macos/Acorn.icns2435
2536
clean:2637
cargo cleanREADME.mdmodifiedView file
Loading diff…
macos/Acorn.icnsaddedView file
Loading diff…
macos/Info.plistmodifiedView file
Loading diff…
macos/make-icon.swiftaddedView file
Loading diff…
src/input.rsmodifiedView file
Loading diff…
src/main.rsmodifiedView file
Loading diff…