Skip to content

Instantly share code, notes, and snippets.

@somehibs
Created May 17, 2020 09:46
Show Gist options
  • Save somehibs/9fa6c713ee7f348227ec55d49d1f4809 to your computer and use it in GitHub Desktop.
Save somehibs/9fa6c713ee7f348227ec55d49d1f4809 to your computer and use it in GitHub Desktop.
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