-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
56 lines (49 loc) · 1.43 KB
/
Taskfile.yml
File metadata and controls
56 lines (49 loc) · 1.43 KB
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
version: "3"
dotenv:
- .env
vars:
APP_NAME: "AutoDock"
APP_PATH: ".build/bundler/{{.APP_NAME}}.app"
DMG_PATH: "dist/{{.APP_NAME}}.dmg"
ENTITLEMENTS: "./{{.APP_NAME}}.entitlements"
tasks:
build:
desc: "Build application"
cmds:
- "mint run swift-bundler bundle --universal -c release"
sign:
desc: "Code sign application"
cmds:
- 'xcrun codesign -f -o runtime --entitlements {{.ENTITLEMENTS}} --timestamp -s"$NAME" {{.APP_PATH}}'
verify:
desc: "Verify code signing"
cmds:
- "xcrun codesign -vvv --deep --strict {{.APP_PATH}}"
disk-image:
desc: "Create disk image for distribution"
cmds:
- "mkdir -p dist"
- "create-dmg --app-drop-link 0 0 {{.APP_NAME}}.dmg .build/bundler"
- "mv {{.APP_NAME}}.dmg {{.DMG_PATH}}"
notarize:
desc: "Notarize application"
cmds:
- "xcrun notarytool submit {{.DMG_PATH}} --keychain-profile $KEYCHAIN_PROFILE --wait"
- "xcrun stapler staple {{.DMG_PATH}}"
debug:
desc: "Run application in debug mode"
cmds:
- "mint run swift-bundler run"
format:
desc: "Format code"
cmds:
- "swiftformat ."
clean:
desc: "Clean build folders"
cmds:
- "rm -rf .build/"
- "rm -rf dist/"
store:credentials:
desc: "Store credentials from .env in Keychain"
cmds:
- "xcrun notarytool store-credentials $KEYCHAIN_PROFILE --apple-id $APPLE_ID --team-id $TEAM_ID --password $PASSWORD"