Skip to content

Commit

Permalink
Create stand alone embedded-ide builder
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Ribelotta <[email protected]>
  • Loading branch information
martinribelotta committed Mar 26, 2017
1 parent d441284 commit e6cacdb
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions linux-x86_64/deploy-embedded-ide-standalone.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
#!/bin/bash

# dependiencies: hidapi, 7z, build-essential, wget,
# sudo apt-get install libhidapi-dev p7z build-essential wget git

VERSION=0.4.0
QT_VERSION=5.7
QTSDK_DIR=/opt/Qt/${QT_VERSION}/gcc_64/
OUTPATH=${PWD}/build-embedded-ide-${VERSION}-x86_64.AppImage
OUTFILE=${PWD}/embedded-ide-${VERSION}-x86_64.AppImage

FILE_EMBIDE=embedded-ide.tar.gz

URL_EMBIDE="https://github.com/martinribelotta/embedded-ide/archive/v${VERSION}.tar.gz"
URL_APPIMAGE="https://github.com/probonopd/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage"

log_file=build-$(date --rfc-3339=s|tr ' ' _)

exec &> >(tee -a "$log_file")

if true; then
echo "Initialize out with skeleton"
mkdir -p ${OUTPATH}
cp -fR skeleton/* ${OUTPATH}
echo "done"
fi

if true; then
echo "doenloading embedded-ide"
wget --no-check-certificate ${URL_EMBIDE} -O ${FILE_EMBIDE}
tar xf ${FILE_EMBIDE}
O=${PWD}
cd embedded-ide-${VERSION} &&
${QTSDK_DIR}/bin/qmake && make &&
cp build/embedded-ide ${OUTPATH}/bin
cd ${O}
fi

if true; then
mkdir -p ${OUTPATH}/lib
echo "copy qt libs to ${OUTPATH}"
for l in libQt5Core.so libQt5DBus.so libQt5Gui.so libQt5Network.so \
libQt5Svg.so libQt5Widgets.so libQt5XcbQpa.so libQt5Xml.so \
libcc1.so libicudata.so libicui18n.so libicuuc.so
do
cp -vP ${QTSDK_DIR}/lib/${l}* ${OUTPATH}/lib
done
cp -fPRv ${QTSDK_DIR}/plugins ${OUTPATH}
echo "copy qt libs done"
fi

APPIMAGE_EXE=$(basename ${URL_APPIMAGE})
wget --no-check-certificate ${URL_APPIMAGE} -O ${APPIMAGE_EXE}
chmod a+x ${APPIMAGE_EXE}
rm -fR ${OUTFILE}
echo "Building app image..."
./${APPIMAGE_EXE} ${OUTPATH} ${OUTFILE}

echo "Done all"
File renamed without changes.

0 comments on commit e6cacdb

Please sign in to comment.