-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (21 loc) · 705 Bytes
/
Copy pathMakefile
File metadata and controls
26 lines (21 loc) · 705 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
APP_NAME = VoiceInput
BUILD_DIR = .build/release
APP_BUNDLE = $(APP_NAME).app
.PHONY: build run install clean
build:
swift build -c release
rm -rf $(APP_BUNDLE)
mkdir -p $(APP_BUNDLE)/Contents/MacOS
mkdir -p $(APP_BUNDLE)/Contents/Resources
cp $(BUILD_DIR)/$(APP_NAME) $(APP_BUNDLE)/Contents/MacOS/
cp Resources/Info.plist $(APP_BUNDLE)/Contents/
codesign --force --deep --sign - --identifier com.voiceinput.app --entitlements Resources/VoiceInput.entitlements $(APP_BUNDLE)
run: build
open $(APP_BUNDLE)
install: build
rm -rf /Applications/$(APP_BUNDLE)
cp -r $(APP_BUNDLE) /Applications/
@echo "Installed to /Applications/$(APP_BUNDLE)"
clean:
swift package clean
rm -rf $(APP_BUNDLE)