-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathbuild.bat
34 lines (29 loc) · 947 Bytes
/
build.bat
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
@echo off
:: Clean old build files
echo Starting build...
echo | set /p output="Cleaning old builds... "
rmdir "build" /s/q
echo Done!
:: Create directories
echo | set /p output="Creating directories... "
mkdir "build"
mkdir "build\firefox"
mkdir "build\chromium"
echo Done!
:: Add warnings
echo. > "build\DO NOT EDIT THESE FILES DIRECTLY"
echo. > "build\EDIT THE FILES IN THE SRC DIRECTORY AND RUN BUILD AGAIN"
:: Build Firefox
echo | set /p output="Creating Firefox files... "
xcopy "src" "build\firefox" /s/e/y/q > nul
rmdir "build\firefox\images\components" /q/s
del "build\firefox\manifest-chromium.json" /f/q
rename "build\firefox\manifest-firefox.json" "manifest.json"
echo Done!
:: Build Chromium
echo | set /p output="Creating Chromium files... "
xcopy "src" "build\chromium" /s/e/y/q > nul
del "build\chromium\manifest-firefox.json" /f/q
rename "build\chromium\manifest-chromium.json" "manifest.json"
echo Done!
echo Build complete!