1
- @ echo off
1
+ @ ECHO off
2
2
set ip = %1
3
3
4
4
set INSTALL = " install"
@@ -13,39 +13,41 @@ if "%ip%"==%INSTALL% (
13
13
)
14
14
15
15
if " %ip% " == %BUILD% (
16
- echo " Initiating gitconvex build for windows"
17
- echo " Cleaning up unwanted folders"
16
+ echo ⚒ Initiating gitconvex build for windows
17
+ echo 🗑 Cleaning up unwanted folders
18
18
rd /s /q ui
19
19
rd /s /q dist
20
20
rd /s /q build
21
- echo " Cloning UI package from github gitconvex-ui/master"
22
- git clone https://github.com/neel1996/gitconvex-ui.git ui/
21
+ echo ⏳ Cloning UI package from github gitconvex-ui/master
22
+ git clone -q https://github.com/neel1996/gitconvex-ui.git ui/
23
23
cd ui
24
- echo " Installing UI dependencies"
24
+ echo ⏳ Installing UI dependencies
25
25
del package-lock.json
26
- npm install
27
- echo " Building UI bundle"
26
+ npm install --silent
27
+ echo ⚒ Building UI bundle
28
28
set NODE_ENV = production
29
29
npm install tailwindcss postcss autoprefixer
30
30
npx tailwindcss build -o src/index.css -c src/tailwind.config.js
31
31
npm run build
32
- echo " Moving react bundle to gitconvex-ui"
32
+ echo 🔹 Moving react bundle to gitconvex-ui
33
33
move .\build gitconvex-ui
34
34
move .\gitconvex-ui ..\
35
35
cd ..
36
36
mkdir .\dist
37
- echo " Moving UI artifacts to dist folder"
37
+ echo 🔹 Moving UI artifacts to dist folder
38
38
move .\gitconvex-ui .\dist\
39
- echo " Moving etc content to dist"
40
- move .\etc .\dist\
41
- echo " Removing intermediary folder ui/"
39
+ echo 🔹 Copying etc content to dist
40
+ xcopy /E /I .\etc\ .\dist\etc\
41
+ copy .\etc\git2.dll .\dist\
42
+ echo 🔸 Removing intermediary folder ui/
42
43
rd /s /q ui
43
- echo " Building gitconvex bundle"
44
- go build -a - o ./dist
44
+ echo 🚀 Building gitconvex bundle
45
+ go build -o ./dist/gitconvex.exe
45
46
cd .\dist
46
47
rename gitconvex-server.exe gitconvex.exe
47
- echo " Run ./dist/gitconvex.exe to start gitconvex on port 9001"
48
- echo " Try ./dist/gitconvex.exe --port PORT_NUMBER to run gitconvex on the desired port"
48
+ echo ✅ Gitconvex Build Completed successfully!
49
+ echo 📬 Run ./dist/gitconvex.exe to start gitconvex on port 9001
50
+ echo 📬 Try ./dist/gitconvex.exe --port PORT_NUMBER to run gitconvex on the desired port
49
51
cd ..
50
52
)
51
53
0 commit comments