-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
39 lines (26 loc) · 866 Bytes
/
build.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
#!/bin/bash
# Update authors
echo "🖊 updating authors"
python3 scripts/update_authors.py
# Build DocC and dump it in a temporary build directory
xcodebuild docbuild -scheme swiftinsg -derivedDataPath tmp/ -destination 'platform=iOS Simulator,name=iPhone 12'
# Building complete
echo "🛠 build completed"
# Remove the old DocC from web
rm -rf Web/public/
# Move the doccarchive to the Web folder, rename it to public
mv tmp/Build/Products/Debug-iphonesimulator/swiftinsg.doccarchive Web/public/
# Building complete
echo "🕸 updated Web"
# Start clean up
echo "🧼 cleaning up"
# Delete temporary build directory
rm -rf tmp
echo "Remove Nav Bar"
python3 scripts/remove_nav.py
python3 scripts/welcome_header.py
# Update favicon
cp assets/favicon.ico Web/public/
rm Web/public/favicon.svg
# We're done!
echo "😴 we're done! time go back to sleep"