File tree 3 files changed +9
-5
lines changed
3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,10 @@ build-ui:
14
14
build-server :
15
15
mkdir -p ./dist
16
16
go build -o ./dist
17
+
18
+ install_deps :
19
+ if [[ " $( shell uname) " == " Darwin" ]]; then cd ./lib/macos_amd64 && ./install_deps && cd .. ; else cd ./lib/linux_x86_64 && ./install_deps && cd ..; fi
20
+
17
21
build :
18
22
echo " Initiating gitconvex build"
19
23
echo " Cleaning up old directories"
39
43
echo " Building final go source with UI bundle" && \
40
44
go build -v -a -o ./dist && \
41
45
echo " Gitconvex build completed!" && \
42
- mv ./dist/gitconvex-server ./dist/gitconvex
43
- echo " Copying etc files to dist "
44
- cp -rp ./etc ./dist/
46
+ mv ./dist/gitconvex-server ./dist/gitconvex
47
+ echo " Installing libs "
48
+ $( MAKE ) install_deps
45
49
echo " Use ./dist/gitconvex to start Gitconvex on port 9001"
46
50
echo " Try ./dist/gitconvex --port PORT_NUMBER to run gitconvex on the desired port"
47
51
test :
Original file line number Diff line number Diff line change 4
4
# Make sure you run the script as sudo
5
5
6
6
# Extract libs from tar
7
- echo " Extracting the lib folder..."
7
+ echo " Extracting the lib folder for Linux ..."
8
8
tar -xzf linux_x86_64.tar.gz
9
9
10
10
# OpenSSL
Original file line number Diff line number Diff line change 4
4
# Make sure you run the script as sudo
5
5
6
6
# Extract libs from tar
7
- echo " Extracting the lib folder..."
7
+ echo " Extracting the lib folder for MacOS ..."
8
8
tar -xzf macos_amd64.tar.gz
9
9
10
10
# OpenSSL
You can’t perform that action at this time.
0 commit comments