-
-
Notifications
You must be signed in to change notification settings - Fork 79
/
Makefile
31 lines (24 loc) · 908 Bytes
/
Makefile
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
format:
deno fmt scripts
check_format:
deno fmt --check scripts
test:
make test_unit
make test_ui
test_unit:
deno test
test_ui:
xcodebuild test -project Hush.xcodeproj -scheme 'Hush iOS' -destination 'platform=iOS Simulator,name=iPhone 8'
fetch_external:
deno run --allow-write=./data --allow-net scripts/fetch-external.js
blocklist:
deno run --allow-read=./data --allow-env=MINIFY scripts/build-blocklist.js
xcode:
ifeq ("$(CONFIGURATION_BUILD_DIR)","")
$(error CONFIGURATION_BUILD_DIR env is not set, make this command is run from Xcode)
endif
ifeq ("$(UNLOCALIZED_RESOURCES_FOLDER_PATH)","")
$(error UNLOCALIZED_RESOURCES_FOLDER_PATH env is not set, make this command is run from Xcode)
endif
mkdir -p "$(CONFIGURATION_BUILD_DIR)/$(UNLOCALIZED_RESOURCES_FOLDER_PATH)"
MINIFY=1 make blocklist --silent > "$(CONFIGURATION_BUILD_DIR)/$(UNLOCALIZED_RESOURCES_FOLDER_PATH)/blockerList.json"