-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.bat
30 lines (23 loc) · 1.19 KB
/
build.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
SET CURL=tools\curl\bin\curl.exe
SET NSIS=tools\nsis\makensis.exe
SET NSSM=tools\nssm\win64\nssm.exe
SET ZIP=tools\7zip\7za.exe
SET VERSION=5.3.0
SET ELASTIC_SEARCH_VERSION=5.3.0
SET KIBANA_VERSION=5.3.0
rem ---------- Download packages ----------
if not exist "downloads" mkdir downloads
if not exist "downloads\elasticsearch-%ELASTIC_SEARCH_VERSION%.zip" %CURL% "https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-%ELASTIC_SEARCH_VERSION%.zip" -o downloads\elasticsearch-%ELASTIC_SEARCH_VERSION%.zip
if not exist "downloads\kibana-%KIBANA_VERSION%.zip" %CURL% "https://artifacts.elastic.co/downloads/kibana/kibana-%KIBANA_VERSION%-windows-x86.zip" -o downloads\kibana-%KIBANA_VERSION%.zip
rem --------------------------------------
rem ---------- Unzip packages ----------
rmdir /Q /S temp
mkdir temp
%ZIP% x -otemp downloads\elasticsearch-%ELASTIC_SEARCH_VERSION%.zip
%ZIP% x -otemp downloads\kibana-%KIBANA_VERSION%.zip
move temp\elasticsearch-%ELASTIC_SEARCH_VERSION% temp\elasticsearch
move temp\kibana-%KIBANA_VERSION%-windows-x86 temp\kibana
rem ------------------------------------
rem ---------- Run makensis ----------
if not exist "dist" mkdir dist
%NSIS% /Dversion="%VERSION%" elk.nsi