-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.app1
145 lines (106 loc) · 5.88 KB
/
Makefile.app1
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
# Makefile.app1
# @Created: Fri, Jul 19, 2024 at 1:14:29 PM
build-all: \
build \
build-extras \
build-apps-first-party
build-apps-first-party: \
build-automator \
build-calendar \
build-console \
install-control-center \
build-dock \
build-finder \
build-notification-center \
build-preview \
install-safari \
build-system-settings \
build-terminal
# 1st Party Apps Library
build-automator:
$(SUDO) ./scripts/build-lib.sh apps/1st-party/Automator/2.10/automator
$(SUDO) ./scripts/build-lib.sh apps/1st-party/Automator/2.10/dec-automator-applescript
install-automator: build-automator
mkdir -p /Applications/AppleScript
# cp -n plist.template ~/applescript-core/config-system.plist || true
osascript scripts/setup-applescript-apps-path.applescript
uninstall-automator:
@echo "TODO"
# TODO:
build-calendar:
$(SUDO) ./scripts/build-lib.sh "apps/1st-party/Calendar/11.0/dec-calendar-view"
$(SUDO) ./scripts/build-lib.sh "apps/1st-party/Calendar/11.0/calendar-event"
$(SUDO) ./scripts/build-lib.sh "apps/1st-party/Calendar/11.0/calendar"
install-calendar: build-calendar
osascript ./scripts/enter-user-country.applescript
build-console:
$(SUDO) ./scripts/build-lib.sh "apps/1st-party/Console/v1.1/console"
build-finder:
$(SUDO) ./scripts/build-lib.sh apps/1st-party/Finder/12.5/finder
build-home:
$(SUDO) ./scripts/build-lib.sh apps/1st-party/Home/7.0/home
build-mail:
$(SUDO) ./scripts/build-lib.sh apps/1st-party/Mail/16.0/mail
build-preview:
$(SUDO) ./scripts/build-lib.sh core/decorators/dec-preview-markup
$(SUDO) ./scripts/build-lib.sh apps/1st-party/Preview/v11/preview
build-safari: build-dock
# $(SUDO) osacompile -o "$(SCRIPT_LIBRARY_PATH)/core/safari.scpt" "scripts/stub.applescript"
$(SUDO) ./scripts/build-lib.sh apps/1st-party/Safari/16.0/safari-javascript
$(SUDO) ./scripts/build-lib.sh apps/1st-party/Safari/18.0/safari-tab
$(SUDO) ./scripts/build-lib.sh apps/1st-party/Safari/17.5/dec-safari-tab-finder
$(SUDO) ./scripts/build-lib.sh apps/1st-party/Safari/17.4.1/dec-safari-ui-noncompact
$(SUDO) ./scripts/build-lib.sh apps/1st-party/Safari/16.0/dec-safari-ui-compact
$(SUDO) ./scripts/build-lib.sh apps/1st-party/Safari/16.0/dec-safari-side-bar
$(SUDO) ./scripts/build-lib.sh apps/1st-party/Safari/17.5/dec-safari-tab-group
$(SUDO) ./scripts/build-lib.sh apps/1st-party/Safari/17.4.1/dec-safari-keychain
$(SUDO) ./scripts/build-lib.sh apps/1st-party/Safari/17.4.1/dec-safari-inspector
$(SUDO) ./scripts/build-lib.sh apps/1st-party/Safari/17.5/dec-safari-preferences
$(SUDO) ./scripts/build-lib.sh apps/1st-party/Safari/18.0/dec-safari-profile
$(SUDO) ./scripts/build-lib.sh apps/1st-party/Safari/18.0/safari
install-safari: build-safari
osascript ./scripts/allow-apple-events-in-safari.applescript
plutil -replace 'FIND_RETRY_MAX' -integer 90 ~/applescript-core/config-system.plist
plutil -replace 'FIND_RETRY_SLEEP' -integer 1 ~/applescript-core/config-system.plist
build-safari-technology-preview: # Broken
osacompile -o "$(HOME)/Library/Script Libraries/core/safari-technology-preview.scpt" "scripts/stub.applescript"
./scripts/build-lib.sh apps/1st-party/Safari Technology Preview/r168/dec-safari-technology-preview-javascript
./scripts/build-lib.sh apps/1st-party/Safari Technology Preview/r168/safari-technology-preview
install-safari-technology-preview: build-safari-technology-preview
osascript ./scripts/allow-apple-events-in-safari-technology-preview.applescript
build-script-editor:
make build-lib SOURCE="apps/1st-party/Script Editor/2.11/dec-script-editor-content"
make build-lib SOURCE="apps/1st-party/Script Editor/2.11/script-editor"
build-system-settings:
./scripts/factory-insert.sh SystemSettingsInstance core/dec-system-settings-sonoma
$(SUDO) ./scripts/build-lib.sh "apps/1st-party/System Settings/15.0/macOS Sonoma/dec-system-settings-sonoma"
$(SUDO) ./scripts/build-lib.sh "apps/1st-party/System Settings/15.0/dec-system-settings_accessibility_voice-control"
$(SUDO) ./scripts/build-lib.sh "apps/1st-party/System Settings/15.0/dec-system-settings_accessibility_voice-control_voice-commands"
$(SUDO) ./scripts/build-lib.sh "apps/1st-party/System Settings/15.0/dec-system-settings_passwords"
$(SUDO) ./scripts/build-lib.sh "apps/1st-party/System Settings/15.0/system-settings"
build-terminal:
$(SUDO) osacompile -o "$(SCRIPT_LIBRARY_PATH)/core/terminal.scpt" "scripts/stub.applescript"
ifeq ($(OS_NAME), sonoma)
$(SUDO) ./scripts/build-lib.sh apps/1st-party/Terminal/2.14.x/dec-terminal-output
$(SUDO) ./scripts/build-lib.sh apps/1st-party/Terminal/2.14.x/dec-terminal-path
$(SUDO) ./scripts/build-lib.sh apps/1st-party/Terminal/2.14.x/dec-terminal-prompt
$(SUDO) ./scripts/build-lib.sh apps/1st-party/Terminal/2.14.x/dec-terminal-run
$(SUDO) ./scripts/build-lib.sh apps/1st-party/Terminal/2.14.x/terminal-tab
$(SUDO) ./scripts/build-lib.sh apps/1st-party/Terminal/2.14.x/terminal
else ifeq ($(OS_NAME), ventura)
$(SUDO) ./scripts/build-lib.sh apps/1st-party/Terminal/2.13.x/dec-terminal-output
$(SUDO) ./scripts/build-lib.sh apps/1st-party/Terminal/2.13.x/dec-terminal-path
$(SUDO) ./scripts/build-lib.sh apps/1st-party/Terminal/2.13.x/dec-terminal-prompt
$(SUDO) ./scripts/build-lib.sh apps/1st-party/Terminal/2.13.x/dec-terminal-run
$(SUDO) ./scripts/build-lib.sh apps/1st-party/Terminal/2.13.x/terminal
else ifeq ($(OS_NAME), monterey)
$(SUDO) ./scripts/build-lib.sh apps/1st-party/Terminal/2.12.x/dec-terminal-output
$(SUDO) ./scripts/build-lib.sh apps/1st-party/Terminal/2.12.x/dec-terminal-path
$(SUDO) ./scripts/build-lib.sh apps/1st-party/Terminal/2.12.x/dec-terminal-prompt
$(SUDO) ./scripts/build-lib.sh apps/1st-party/Terminal/2.12.x/dec-terminal-run
$(SUDO) ./scripts/build-lib.sh apps/1st-party/Terminal/2.12.x/terminal
endif
$(SUDO) ./scripts/build-lib.sh libs/sftp/dec-terminal-prompt-sftp
build-xcode:
$(SUDO) osacompile -o "$(SCRIPT_LIBRARY_PATH)/core/xcode.scpt" "scripts/stub.applescript"
$(SUDO) ./scripts/build-lib.sh apps/3rd-party/Xcode/15.4/xcode