aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorAlexVallat <github@alex.vallat.name>2015-03-01 09:49:26 +0000
committerAlexVallat <github@alex.vallat.name>2015-03-01 09:49:26 +0000
commitb2f578a517a6d26f07219b26de13b6f88c5123f8 (patch)
tree06ad958013be32a906d53f9522b94e9783191587 /tools
parentb58cefbdbee21ece0087afc87385054777917361 (diff)
downloaduBlock-b2f578a517a6d26f07219b26de13b6f88c5123f8.zip
uBlock-b2f578a517a6d26f07219b26de13b6f88c5123f8.tar.gz
uBlock-b2f578a517a6d26f07219b26de13b6f88c5123f8.tar.bz2
Windows build environment
Diffstat (limited to 'tools')
-rw-r--r--tools/make-firefox.bat38
1 files changed, 38 insertions, 0 deletions
diff --git a/tools/make-firefox.bat b/tools/make-firefox.bat
new file mode 100644
index 0000000..804b4d1
--- /dev/null
+++ b/tools/make-firefox.bat
@@ -0,0 +1,38 @@
+rem This script assumes a Windows environment
+@echo off
+echo "*** uBlock.firefox: Copying files"
+
+set DES="%~dp0..\dist\build\uBlock.firefox"
+rd /s /q %DES%
+mkdir %DES%
+
+pushd %~dp0..
+xcopy /S /I assets %DES%\assets
+del %DES%\assets\*.sh
+xcopy /S /I src\css %DES%\css
+xcopy /S /I src\img %DES%\img
+xcopy /S /I src\js %DES%\js
+xcopy /S /I src\lib %DES%\lib
+xcopy /S /I src\_locales %DES%\_locales
+xcopy src\*.html %DES%\
+move %DES%\img\icon_128.png %DES%\icon.png
+xcopy platform\firefox\vapi-*.js %DES%\js\
+xcopy platform\firefox\bootstrap.js %DES%\
+xcopy platform\firefox\frame*.js %DES%\
+xcopy platform\firefox\chrome.manifest %DES%\
+xcopy platform\firefox\install.rdf %DES%\
+xcopy LICENSE.txt %DES%\
+
+echo "*** uBlock.firefox: Generating meta..."
+c:\python34\python "%~dp0\make-firefox-meta.py" %DES%\
+
+
+if "%1"=="all" (
+ echo "*** uBlock.firefox: Creating package..."
+ pushd %DES%\
+ "%ProgramW6432%\7-Zip\7z.exe" a -tzip -mx9 -bd ..\uBlock.firefox.xpi *
+ popd
+)
+
+echo "*** uBlock.firefox: Package done."
+popd \ No newline at end of file