create_sis.bat 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. REM
  2. REM DO NOT TRY TO GENERATE THE SIS FILE IF YOUR PATH CONTAINS SPACES.
  3. REM ENSYMBLE DOES NOT SUPPORT THEM ! COPY THIS PROJECT TO C:\
  4. REM BEFORE RUNNING THIS SCRIPT.
  5. REM
  6. @echo off
  7. IF "%1" EQU "" GOTO error
  8. SET PYTHON=C:\Python25\python.exe
  9. SET APPNAME=Milkshake
  10. SET CAPBLS=NetworkServices+LocalServices+ReadUserData+WriteUserData+UserEnvironment
  11. SET SRCDIR=src
  12. SET TMPDIR=src.tmp
  13. SET ICON=img\none.svg
  14. REM put you zip tool here
  15. SET ZIP="C:\Arquivos de programas\7-Zip\7z.exe"
  16. REM Path to module-repo, inside Python For S60
  17. SET PYS60DIR=C:\Arquivos de programas\PythonForS60
  18. SET OPTS=--verbose --version="%1" --appname="%APPNAME%" ^
  19. --extrasdir=extras --heapsize=4k,5M --caps=%CAPBLS% --icon="%ICON%"
  20. REM --icon="%ICON%"
  21. echo "Populating temp dir"
  22. if exist "%TMPDIR%" rmdir /s /q "%TMPDIR%"
  23. mkdir %TMPDIR%\extras\data\python\milkshakedir\plugins
  24. copy %SRCDIR%\lib\ %TMPDIR%\extras\data\python\milkshakedir\
  25. xcopy /S %SRCDIR%\plugins %TMPDIR%\extras\data\python\milkshakedir\plugins\
  26. copy %SRCDIR%\lib\milkshake.mif %TMPDIR%\extras\data\python\milkshakedir
  27. copy %SRCDIR%\default.py %TMPDIR%\
  28. if not exist .\module-repo\ xcopy /E "%PYS60DIR%\module-repo" .\module-repo\
  29. if not exist .\templates\ xcopy /E "%PYS60DIR%\templates" .\templates\
  30. if not exist ensymble.py xcopy /E "%PYS60DIR%\ensymble.py" .
  31. if not exist openssl.exe xcopy /E "%PYS60DIR%\openssl.exe" .
  32. %PYTHON% ensymble.py py2sis %OPTS% "%TMPDIR%" "%APPNAME%-%1.sis"
  33. echo "Zipping source files"
  34. %ZIP% a -r -tzip %APPNAME%-%1-src.zip src
  35. goto end
  36. :error
  37. echo Sintaxe: %0 version
  38. :end