Skip to content

Commit ed9372b

Browse files
committed
final version. produces correct "output" folder. May be zipped, or packaged by installer
1 parent f24349f commit ed9372b

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

make.bat

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,29 @@ SET PATRONI_REF=https://github.com/zalando/patroni/archive/v1.5.6.zip
66

77
ECHO --- Start bootstrapping ---
88

9-
RMDIR /Q /S %MD% patroni
9+
RMDIR /Q /S %MD% patroni > nul
1010
MKDIR %MD%
11-
copy src\*.* %MD%\
11+
COPY src\*.* %MD%\
1212

1313
@ECHO on
1414

15-
16-
rem @ECHO --- Download ETCD ---
17-
rem powershell -Command "[Net.ServicePointManager]::SecurityProtocol = 'tls12, tls11, tls'; ((new-object net.webclient).DownloadFile('%ETCD_REF%', '%TEMP%\etcd.zip'))"
18-
rem powershell -Command "$shell = New-Object -ComObject Shell.Application; $zip_src = $shell.NameSpace('%TEMP%\etcd.zip'); $zip_dest = $shell.NameSpace((Resolve-Path '%CD%').Path); $zip_dest.CopyHere($zip_src.Items(), 1044)"
19-
rem MOVE etcd-* output\etcd
15+
@ECHO --- Download ETCD ---
16+
powershell -Command "[Net.ServicePointManager]::SecurityProtocol = 'tls12, tls11, tls'; ((new-object net.webclient).DownloadFile('%ETCD_REF%', '%TEMP%\etcd.zip'))"
17+
powershell -Command "$shell = New-Object -ComObject Shell.Application; $zip_src = $shell.NameSpace('%TEMP%\etcd.zip'); $zip_dest = $shell.NameSpace((Resolve-Path '%CD%').Path); $zip_dest.CopyHere($zip_src.Items(), 1044)"
18+
MOVE etcd-* output\etcd
2019

2120
@ECHO --- Download PATRONI ---
2221
powershell -Command "[Net.ServicePointManager]::SecurityProtocol = 'tls12, tls11, tls'; ((new-object net.webclient).DownloadFile('%PATRONI_REF%', '%TEMP%\patroni.zip'))"
2322
powershell -Command "$shell = New-Object -ComObject Shell.Application; $zip_src = $shell.NameSpace('%TEMP%\patroni.zip'); $zip_dest = $shell.NameSpace((Resolve-Path '%CD%').Path); $zip_dest.CopyHere($zip_src.Items(), 1044)"
2423
MOVE patroni-* patroni
2524

26-
rem CD patroni
27-
rem virtualenv.exe venv || EXIT /B 1
28-
rem CALL venv\Scripts\activate || EXIT /B 1
29-
rem pip install -r requirements.txt || EXIT /B 1
30-
rem pip install psycopg2-binary || EXIT /B 1
31-
rem CALL venv\Scripts\deactivate || EXIT /B 1
25+
CD patroni
26+
virtualenv.exe venv
27+
CALL venv\Scripts\activate || EXIT /B 1
28+
pip install -r requirements.txt || EXIT /B 1
29+
pip install psycopg2-binary || EXIT /B 1
30+
CALL venv\Scripts\deactivate || EXIT /B 1
31+
32+
MOVE venv ..\output\venv
33+
CD ..
34+
MOVE patroni output\patroni

0 commit comments

Comments
 (0)