※上記の広告は60日以上更新のないWIKIに表示されています。更新することで広告が下部へ移動します。

@rem make exe
 
@echo.
@set /p INP="remove build folder ? (y/n) "
@if "%INP%" == "y" goto REMOVEFOLDER
@goto MKEXEJOB
 
:REMOVEFOLDER
@echo ---------------------------------------- remove folder
rmdir /s /q build
rmdir /s /q dist
@echo.
 
:MKEXEJOB
@echo.
@echo ---------------------------------------- make exe
python setup.py py2exe
 
@echo.
@echo ---------------------------------------- file copy
@rem pause
@rem mkdir .\dist\pyglet
@rem xcopy C:\Python26\Lib\site-packages\pyglet .\dist\pyglet /e
@rem mkdir .\dist\ctypes
@rem xcopy C:\Python26\Lib\ctypes .\dist\ctypes /e
@rem copy C:\Python26\Lib .\dist
 
@echo.
@set /p INP="copy file to target folder ? (y/n) "
@if "%INP%" == "y" goto COPYFILES
@goto END
 
:COPYFILES
del /q D:\pub\exe_test\test_pyglet\
del /q D:\pub\exe_test\test_pyglet\res\
xcopy .\dist\* D:\pub\exe_test\test_pyglet /E /Y
 
:END