forked from WesleyBranton/Custom-Scrollbar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
34 lines (29 loc) · 886 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
#!/bin/bash
# Clean old build files
echo "Starting build..."
echo -n "Cleaning old builds... "
rm -r -f "build"
echo "Done!"
# Create directories
echo -n "Creating directories... "
mkdir "build"
mkdir "build/firefox"
mkdir "build/chromium"
echo "Done!"
# Add warnings
touch "build/DO NOT EDIT THESE FILES DIRECTLY"
touch "build/EDIT THE FILES IN THE SRC DIRECTORY AND RUN BUILD AGAIN"
# Build Firefox
echo -n "Creating Firefox files... "
cp -r "src/." "build/firefox/"
rm -rf "build/firefox/images/components"
rm -f "build/firefox/manifest-chromium.json"
mv "build/firefox/manifest-firefox.json" "build/firefox/manifest.json"
echo "Done!"
# Build Chromium
echo -n "Creating Chromium files... "
cp -r "src/." "build/chromium/"
rm -f "build/chromium/manifest-firefox.json"
mv "build/chromium/manifest-chromium.json" "build/chromium/manifest.json"
echo "Done!"
echo "Build complete!"