-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (29 loc) · 732 Bytes
/
Copy pathMakefile
File metadata and controls
36 lines (29 loc) · 732 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
.PHONY: build
build:
swift build -c release --disable-sandbox
.PHONY: build/universal
build/universal:
swift build -c release --disable-sandbox --arch arm64 --arch x86_64
.PHONY: clean
clean:
swift package clean
rm -rf ./.release/
rm -rf ./.smoke/
.PHONY: format
format:
swiftformat .
.PHONY: reopen
reopen:
osascript -e 'tell app "Xcode" to quit' && open ./Package.swift
.PHONY: smoke
smoke: build
./scripts/smoke.sh
.PHONY: tarball
tarball: build/universal
mkdir -p ./.release/
tar -cvzf ./.release/macOS-universal.tar.gz -C ./.build/apple/Products/Release cs
cd ./.release/ && shasum -a 256 macOS-universal.tar.gz > checksums.txt
cd ./.release/ && shasum -a 256 -c checksums.txt
.PHONY: test
test:
swift test