set SEFAZ_VERSAO=0_9_10
set SEFAZ_PATH=C:\Users\Lourival\Documents\L2\Projetos\www.l2maker.com.br\publico\apis\sefaz\
set PATH=%PAHT%;"C:\Program Files (x86)\Java\jdk1.5.0_22\bin\"
cd "C:\Users\Lourival\Documents\L2\Projetos\www.l2maker.com.br\publico\apis\sefaz\Applet\tmp"
jar -xvf "%SEFAZ_PATH%\Maker.Commons\WEB-INF\lib\practicalxml-1.1.3.jar"
jar -xvf "%SEFAZ_PATH%\Maker.Commons\WEB-INF\lib\xmldsig.jar"
jar -xvf "%SEFAZ_PATH%\Maker.Commons\WEB-INF\lib\xmlsec.jar"
jar -xvf "%SEFAZ_PATH%\Maker.Commons\WEB-INF\lib\barcode4j.jar"
jar -xvf "%SEFAZ_PATH%\Maker.Commons\WEB-INF\lib\l2s-core.jar"
jar -xvf "%SEFAZ_PATH%\Maker.Commons\WEB-INF\lib\l2s-icp.jar"
jar -xvf "%SEFAZ_PATH%\Maker.Commons\WEB-INF\lib\l2s-sefaz.jar"

jar -cvfm "%SEFAZ_PATH%\Maker.Commons\apps\l2sSEFAZappV%SEFAZ_VERSAO%.jar" %SEFAZ_PATH%\Applet\MANIFEST.MF *
cd ..
copy "%SEFAZ_PATH%\Maker.Commons\apps\l2sSEFAZappV%SEFAZ_VERSAO%.jar" "%SEFAZ_PATH%\l2sSEFAZappV%SEFAZ_VERSAO%_SEM_ASSINATURA.jar"
jarsigner -keystore "%SEFAZ_PATH%\Applet\l2auto.pfx" -storepass l2s -storetype pkcs12 "%SEFAZ_PATH%\Maker.Commons\apps\l2sSEFAZappV%SEFAZ_VERSAO%.jar" "l2 software applets"
