MozillaZine

Talk:Windows build script

From MozillaZine Knowledge Base

works not for me on win2k pro sp4.

here is my version (changes ar bold):

Call :FOLDER "%CD%"

md build\chrome
cd chrome
7z a -tzip "%x%.jar" * -r -mx=9
move /Y "%x%.jar" ..\build\chrome
cd ..
copy install.* build
cd build
7z a -tzip "%x%.xpi" * -r -mx=9
move %x%.xpi ..
cd ..
rd build /s/q
GoTo :EOF

:FOLDER
Set x=%~n1
GoTo :EOF

hope, it helps, raik