-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
66 lines (52 loc) · 1.85 KB
/
Makefile
File metadata and controls
66 lines (52 loc) · 1.85 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
57
58
59
60
61
62
63
64
65
66
init: fetch gen
fetch:
tuist clean
tuist install
gen:
tuist generate --no-open
sign:
@GIT_TOKEN=$$(git config user.password || git config --global user.password); \
if [ -z "$$GIT_TOKEN" ]; then \
echo "❌ Git token not found."; \
exit 1; \
fi; \
$(MAKE) download-privates token=$$GIT_TOKEN && \
fastlane sync
clean:
rm -rf **/**/**/*.xcodeproj
rm -rf **/**/*.xcodeproj
rm -rf **/*.xcodeproj
rm -rf *.xcworkspace
rm -rf **/**/**/Derived/
rm -rf **/**/Derived/
rm -rf **/Derived/
rm -rf Derived/
update_tuist:
sh ./Scripts/update_tuist.sh
open_plist:
open -a Xcode Plugins/EnvironmentPlugin/ProjectDescriptionHelpers/InfoPlist.swift
open_config:
open -a Xcode Plugins/EnvironmentPlugin/ProjectDescriptionHelpers/XCConfig.swift
clean_xcode_cache:
rm -rf ~/Library/Developer/Xcode/DerivedData/*
BASE_URL = https://raw.githubusercontent.com/Pepsi-Club/WhereMyBus-ignored/main
define download_file
@echo "📥 Downloading $(3) to $(1)"
mkdir -p $(1)
curl -sS -H "Authorization: token $(2)" -o $(1)/$(3) $(BASE_URL)/$(3)
endef
.PHONY: download-privates
download-privates: download-xcconfigs download-env download-googleinfo
download-xcconfigs:
$(call download_file, XCConfig, $(token),Secrets_Debug.xcconfig)
$(call download_file, XCConfig, $(token),Secrets_Release.xcconfig)
$(call download_file, XCConfig, $(token),App_Debug.xcconfig)
$(call download_file, XCConfig, $(token),App_Release.xcconfig)
$(call download_file, XCConfig, $(token),App_Common.xcconfig)
$(call download_file, XCConfig, $(token),Widget_Debug.xcconfig)
$(call download_file, XCConfig, $(token),Widget_Release.xcconfig)
download-env:
$(call download_file, fastlane, $(token),.env)
download-googleinfo:
$(call download_file, Projects/App/Resources, $(token),GoogleService-Info.plist)
$(call download_file, Projects/App/Resources, $(token),GoogleService-Info-debugging.plist)