-
Notifications
You must be signed in to change notification settings - Fork 10
/
install.sh
executable file
·45 lines (37 loc) · 1.08 KB
/
install.sh
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash
#============================================================================
# AirspaceConverter
# Since : 9/12/2017
# Author : Alberto Realis-Luc <[email protected]>
# Web : https://www.alus.it/AirspaceConverter
# Copyright : (C) 2016-2024 Alberto Realis-Luc
# License : GNU GPL v3
#
# This script is part of AirspaceConverter project
#============================================================================
# First compile
./build.sh
# Abort if build failed
if [ "$?" -ne 0 ]; then
exit 1
fi
if [ "$(uname)" == "Darwin" ]; then
echo "Installing everything on macOS..."
# Install shared library and CLI
make install
# Install GUI
cd macOS
./install.sh
cd ..
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
echo "Installing everything on Linux ..."
# Install shared library and CLI
sudo make install
# Install GUI
sudo cp ./Release/airspaceconverter-gui /usr/bin
sudo chmod 0755 /usr/bin/airspaceconverter-gui
else
echo "ERROR: this script is only for Linux or macOS ..."
exit 1
fi
echo "Full installation done."