Skip to content

Commit 2e3e543

Browse files
committed
Hard coded strings removed
1 parent ed9372b commit 2e3e543

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

make.bat

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
@ECHO off
22
SET MD=output
3+
SET PACKAGE_NAME=patroni-win-x64
34
SET ETCD_REF=https://github.com/etcd-io/etcd/releases/download/v3.3.13/etcd-v3.3.13-windows-amd64.zip
45
SET PATRONI_REF=https://github.com/zalando/patroni/archive/v1.5.6.zip
56

@@ -15,7 +16,7 @@ COPY src\*.* %MD%\
1516
@ECHO --- Download ETCD ---
1617
powershell -Command "[Net.ServicePointManager]::SecurityProtocol = 'tls12, tls11, tls'; ((new-object net.webclient).DownloadFile('%ETCD_REF%', '%TEMP%\etcd.zip'))"
1718
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
19+
MOVE etcd-* %MD%\etcd
1920

2021
@ECHO --- Download PATRONI ---
2122
powershell -Command "[Net.ServicePointManager]::SecurityProtocol = 'tls12, tls11, tls'; ((new-object net.webclient).DownloadFile('%PATRONI_REF%', '%TEMP%\patroni.zip'))"
@@ -29,6 +30,7 @@ pip install -r requirements.txt || EXIT /B 1
2930
pip install psycopg2-binary || EXIT /B 1
3031
CALL venv\Scripts\deactivate || EXIT /B 1
3132

32-
MOVE venv ..\output\venv
33+
MOVE venv ..\%MD%\venv
3334
CD ..
34-
MOVE patroni output\patroni
35+
MOVE patroni %MD%\patroni
36+
MOVE %MD% %PACKAGE_NAME%

0 commit comments

Comments
 (0)