From 07169c97e4402c9704b0aaa727a824033e771818 Mon Sep 17 00:00:00 2001 From: nanotube Date: Sun, 11 Sep 2005 17:55:47 +0000 Subject: [PATCH] make bats more functional, to create releases automatically. --- make_exe.bat | 25 +++++++++++++++++++++++-- make_src_dist.bat | 16 ++++++++++++++++ 2 files changed, 39 insertions(+), 2 deletions(-) create mode 100644 make_src_dist.bat diff --git a/make_exe.bat b/make_exe.bat index 323ecda..b89d8fd 100644 --- a/make_exe.bat +++ b/make_exe.bat @@ -1,5 +1,8 @@ rem *** Used to create a Python exe - + +setlocal +set VERSION=0.4 + rem ***** get rid of all the old files in the build folder rd /S /Q build @@ -7,4 +10,22 @@ rem ***** create the exe c:\Python24\python setup.py py2exe rem **** pause so we can see the exit codes -pause "done...hit a key to exit" \ No newline at end of file +pause "done, press key to continue" + +rem **** rename dist directory to 'pykeylogger' +rename "dist" "pykeylogger" + +echo %VERSION% +pause "..." + +"C:\Program Files\WinRAR\WinRAR.exe" a -r "pykeylogger%VERSION%_win32.zip" "pykeylogger" + +pause "lets inspect the filename" + +mv "./pykeylogger%VERSION%_win32.zip" "../pykeylogger%VERSION%_win32.zip" + +rd /S /Q pykeylogger + +endlocal + +pause "done, press to key to exit" \ No newline at end of file diff --git a/make_src_dist.bat b/make_src_dist.bat new file mode 100644 index 0000000..64da6d6 --- /dev/null +++ b/make_src_dist.bat @@ -0,0 +1,16 @@ +rem *** Used to create a Python exe + +setlocal +set VERSION=0.4 + +"C:\Program Files\WinRAR\WinRAR.exe" a -r "pykeylogger%VERSION%_src.zip" "keylogger.pyw" "logwriter.py" "setup.py" "*.txt" "*.bat" "html" + +pause "lets inspect the filename" + +mv "./pykeylogger%VERSION%_src.zip" "../pykeylogger%VERSION%_src.zip" + +rd /S /Q pykeylogger + +endlocal + +pause "done, press to key to exit" \ No newline at end of file -- 2.45.1