Ahoj.
Toto je "otrocký" prepis prvého skriptu. Nielen že je takmer isté, že nebude fungovať, mohol by dokonca škodiť (Varovanie!). Ale môžeš ho použiť ako základ pre ladenie

build-electrum-git.cmd:
@echo off
REM You probably need to update only this link
set ELECTRUM_GIT_URL=git://github.com/spesmilo/electrum.git
set BRANCH=master
set NAME_ROOT=electrum
REM These settings probably don't need any change
set PYHOME=c:\python27
PYTHON=%PYHOME%\python.exe -OO -B
REM Let's begin!
cd %~dp0
rem Toto nema ekvivalent (!!!): set -e
cd tmp
set T=electrum-git\__test__%RANDOM%
echo. %T%
if exist %T% goto :GIT_REPO_EXIST
REM GIT repository not found, clone it
echo Clone
git clone -b %BRANCH% %ELECTRUM_GIT_URL% electrum-git
goto :GIT_REPO_DONE
:GIT_REPO_EXIST
del %T%
REM GIT repository found, update it
echo Pull
cd electrum-git
git checkout master
git pull
cd ..
:GIT_REPO_DONE
cd electrum-git
set VERSION=
for /F "usebackq tokens=*" %%Z in (`git describe --tags`) do set VERSION=%%Z
echo Last commit: %VERSION%
cd ..
del /F /S /Q C:\electrum
xcopy electrum-git C:\electrum /S /Q /H /R /Y
copy /b electrum-git/LICENCE .
# add python packages (built with make_packages)
xcopy ../../../packages C:\electrum\ /S /Q /H /R /Y
# add locale dir
xcopy ../../../lib/locale C:\electrum\lib\ /S /Q /H /R /Y
# Build Qt resources
C:\Python27\Lib\site-packages\PyQt4\pyrcc4.exe C:\electrum\icons.qrc -o C:\electrum\lib\icons_rc.py
C:\Python27\Lib\site-packages\PyQt4\pyrcc4.exe C:\electrum\icons.qrc -o C:\electrum\gui\qt\icons_rc.py
cd ..
del /F /S /Q dist/
# build standalone version
$PYTHON C:\pyinstaller\pyinstaller.py --noconfirm --ascii -w deterministic.spec
# build NSIS installer
# $VERSION could be passed to the electrum.nsi script, but this would require some rewriting in the script iself.
C:\Program Files (x86)\NSIS\makensis.exe" /DPRODUCT_VERSION=%VERSION% electrum.nsi
cd dist
move electrum.exe %NAME_ROOT%-%VERSION%.exe
move electrum-setup.exe %NAME_ROOT%-%VERSION%-setup.exe
move electrum %NAME_ROOT%-%VERSION%
zip -r %NAME_ROOT%-%VERSION%.zip %NAME_ROOT%-%VERSION%
cd ..
# build portable version
copy /b portable.patch C:\electrum
pushd C:\electrum
patch < portable.patch
popd
$PYTHON C:\pyinstaller\pyinstaller.py --noconfirm --ascii -w deterministic.spec
cd dist
move electrum.exe %NAME_ROOT%-%VERSION%-portable.exe
cd ..
echo Done.
Druhý skript je python, nemyslím si, že by potreboval nejaké úpravy (nepoznám python).
Tretia vec je diff, tiež bez úprav.