-
Notifications
You must be signed in to change notification settings - Fork 11
/
update-dependencies.sh
executable file
·39 lines (35 loc) · 1.16 KB
/
update-dependencies.sh
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
#!/usr/bin/env bash
update-license-plist() {
if brew ls --versions "license-plist" >/dev/null; then
HOMEBREW_NO_AUTO_UPDATE=1 brew upgrade licenseplist
else
echo "warning: LicensePlist not installed, download from https://github.com/mono0926/LicensePlist"
exit -1
fi
}
generate-new-license-plist() {
if which license-plist >/dev/null; then
license-plist \
--output-path Cineaste/Settings.bundle \
--package-path Cineaste.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved \
--prefix Acknowledgements \
--single-page \
--force
else
echo "warning: LicensePlist not installed, download from https://github.com/mono0926/LicensePlist"
exit -1
fi
}
update-swiftlint() {
if brew ls --versions "swiftlint" >/dev/null; then
HOMEBREW_NO_AUTO_UPDATE=1 brew upgrade "swiftlint"
else
echo "warning: Swiftlint not installed, download from https://github.com/realm/SwiftLint"
exit -1
fi
}
bundle update
bundle exec fastlane snapshot update --force
update-swiftlint
update-license-plist
generate-new-license-plist