Skip to content

Commit d2fb085

Browse files
committed
Add console editor to the installation package, resolves #1
1 parent 98c5f90 commit d2fb085

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

installer/patroni.iss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ Source: "..\patroni-win-x64\python-install.exe"; DestDir: "{app}"
3939
Source: "..\patroni-win-x64\*.bat"; DestDir: "{app}"
4040
Source: "..\patroni-win-x64\*.yml"; DestDir: "{app}"
4141
Source: "..\patroni-win-x64\etcd\*"; DestDir: "{app}\etcd"; Flags: ignoreversion createallsubdirs recursesubdirs
42+
Source: "..\patroni-win-x64\micro\*"; DestDir: "{app}\micro"; Flags: ignoreversion createallsubdirs recursesubdirs
4243
Source: "..\patroni-win-x64\patroni\*"; DestDir: "{app}\patroni"; Flags: ignoreversion createallsubdirs recursesubdirs
4344

4445
[Icons]

make.bat

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
SET MD=patroni-win-x64
33
SET ETCD_REF=https://github.com/etcd-io/etcd/releases/download/v3.3.22/etcd-v3.3.22-windows-amd64.zip
44
SET PATRONI_REF=https://github.com/zalando/patroni/archive/v1.6.5.zip
5+
SET MICRO_REF=https://github.com/zyedidia/micro/releases/download/v2.0.6/micro-2.0.6-win64.zip
56

67
@ECHO --- Start bootstrapping ---
78

@@ -21,6 +22,12 @@ powershell -Command "Expand-Archive '%TEMP%\etcd.zip' '%CD%'"
2122
MOVE etcd-* %MD%\etcd
2223
@ECHO --- ETCD downloaded ---
2324

25+
@ECHO --- Download MICRO ---
26+
curl %MICRO_REF% --location --output %TEMP%\micro.zip
27+
powershell -Command "Expand-Archive '%TEMP%\micro.zip' '%CD%'"
28+
MOVE micro-* %MD%\micro
29+
@ECHO --- MICRO downloaded ---
30+
2431
@ECHO --- Download PATRONI ---
2532
curl %PATRONI_REF% --location --output %TEMP%\patroni.zip
2633
powershell -Command "Expand-Archive '%TEMP%\patroni.zip' '%CD%'"

src/patronictl.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
SETLOCAL
44

5-
REM Set here yuour favourite editor
6-
SET EDITOR=notepad.exe
5+
REM Set here your console [sic!] favorite editor
6+
SET EDITOR=micro\micro.exe
77

88
python.exe patroni\patronictl.py -c postgres-win0.yml %*

0 commit comments

Comments
 (0)