Created
May 17, 2020 09:46
-
-
Save somehibs/9fa6c713ee7f348227ec55d49d1f4809 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INSTALL_LIBGIT="YES" | |
echo "Cloning app" | |
git clone https://github.com/fritzing/fritzing-app | |
echo "Cloning parts" | |
git clone https://github.com/fritzing/fritzing-parts | |
echo "Downloading Qt installer" | |
wget http://download.qt.io/official_releases/online_installers/qt-unified-linux-x64-online.run | |
chmod 700 qt-unified-linux-x64-online.run | |
echo "Running Qt installer, please install it in the background" | |
./qt-unified-linux-x64-online.run& | |
if [[ $INSTALL_LIBGIT == "YES" ]]; then | |
echo "Cloning libgit2" | |
git clone https://github.com/libgit2/libgit2 | |
fi | |
echo "Installing essential build tools" | |
sudo apt-get install -y build-essential git cmake libssl-dev libudev-dev qt5-default libqt5serialport5-dev libqt5svg5-dev libboost-dev | |
if [[ $INSTALL_LIBGIT == "YES" ]]; then | |
echo "Installing libgit2" | |
pushd `pwd` | |
mkdir libgit2/build | |
cd libgit2/build | |
cmake -DBUILD_SHARED_LIBS=OFF .. | |
sudo cmake --build . --target install | |
popd | |
fi | |
echo "Building fritzing-app" | |
cd fritzing-app | |
qmake && make | |
echo "Build complete - status unknown, read it yourself" | |
./Fritzing& |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment