@ECHO OFF SET sevenZipCmd="C:\Program Files\7-zip\7z" RD /S /Q nicofox-master DEL /Q nicofox.xpi %sevenZipCmd% x nicofox-master.zip CD nicofox-master MD build MD build\content MD build\skin MD build\components MD build\modules MD build\defaults MD build\defaults\preferences MD build\locale COPY /Y install.rdf build\ COPY /Y chrome.manifest build\ COPY /Y LICENSE.md build\ COPY /Y content\*.js build\content\ COPY /Y content\*.xul build\content\ COPY /Y content\*.xml build\content\ COPY /Y content\*.swf build\content\ COPY /Y skin\*.css build\skin\ COPY /Y skin\*.png build\skin\ COPY /Y components\*.js build\components\ COPY /Y modules\*.jsm build\modules\ COPY /Y defaults\preferences\*.js build\defaults\preferences\ FOR /D %%d IN ( locale\* ) DO ( MD build\%%d COPY /Y %%d\*.dtd build\%%d\ COPY /Y %%d\*.properties build\%%d\ ) CD build %sevenZipCmd% a -r -tzip -mx=1 ..\nicofox.xpi * CD .. RD /S /Q build PAUSE