Skip to content

Commit dcad47a

Browse files
committed
add PES GUI 0.1
1 parent 89f65ac commit dcad47a

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

installer/patroni.iss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,14 @@ Name: "english"; MessagesFile: "compiler:Default.isl"
3737

3838
[Files]
3939
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
40-
Source: "..\doc\setup.md"; DestDir: "{app}\doc"; Flags: isreadme
4140
Source: "..\PES\*"; DestDir: "{app}"; Flags: ignoreversion createallsubdirs recursesubdirs
4241

4342
[Icons]
43+
Name: "{group}\PES GUI"; Filename: "{app}\pes\pes.exe"; WorkingDir: "{app}\pes"
4444
Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"
4545

4646
[Run]
4747
Filename: "powershell.exe"; Parameters: "-ExecutionPolicy Bypass -File ""{app}\install.ps1"""; WorkingDir: "{app}"; Flags: waituntilterminated
48+
Filename: "{app}\pes\pes.exe"; Description: "Launch PES GUI"; Flags: postinstall nowait skipifsilent
49+
50+

make.bat

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ SET MICRO_REF=https://github.com/zyedidia/micro/releases/download/v2.0.8/micro-2
66
SET WINSW_REF=https://github.com/winsw/winsw/releases/download/v2.10.3/WinSW.NET461.exe
77
SET VIP_REF=https://github.com/cybertec-postgresql/vip-manager/releases/download/v1.0-beta3/vip-manager_1.0_beta3-1_amd64.zip
88
SET PGSQL_REF=https://get.enterprisedb.com/postgresql/postgresql-13.0-1-windows-x64-binaries.zip
9+
SET PES_REF=https://github.com/cybertec-postgresql/PES/releases/download/v0.1/pes.zip
10+
911
SET SEVENZIP="C:\Program Files\7-Zip\7z.exe"
1012

1113
@ECHO --- Start bootstrapping ---
@@ -35,6 +37,16 @@ COPY src\etcd.yaml %MD%\etcd\
3537
DEL %TEMP%\etcd.zip
3638
@ECHO --- ETCD downloaded ---
3739

40+
@ECHO --- Download PES GUI ---
41+
curl %PES_REF% --location --output %TEMP%\pes.zip
42+
if exist %SEVENZIP% (
43+
%SEVENZIP% x "%TEMP%\pes.zip" -y -mmt -o"%MD%"
44+
) else (
45+
powershell -Command "Expand-Archive '%TEMP%\pes.zip' '%MD%'"
46+
)
47+
DEL %TEMP%\pes.zip
48+
@ECHO --- PES GUI downloaded ---
49+
3850
@ECHO --- Download MICRO ---
3951
curl %MICRO_REF% --location --output %TEMP%\micro.zip
4052
if exist %SEVENZIP% (

0 commit comments

Comments
 (0)