Commit 0ac67adb authored by Tom Pillot's avatar Tom Pillot
Browse files

Fix shared libraries path and add a desktop shortcut for Thymio Suite

parent 0ba9b7a1
...@@ -19,19 +19,32 @@ EOF ...@@ -19,19 +19,32 @@ EOF
# Download and build aseba # Download and build aseba
on_chroot << EOF on_chroot << EOF
cd /home/${FIRST_USER_NAME} cd /home/${FIRST_USER_NAME}
git clone --recursive https://github.com/mobsya/aseba.git git clone --recursive --depth 1 --branch 2.0.3 https://github.com/mobsya/aseba.git
cd aseba cd aseba
git submodule update --init
mkdir build && cd build mkdir build && cd build
export CMAKE_PREFIX_PATH=/usr/lib/qt5.12 export CMAKE_PREFIX_PATH=/usr/lib/qt5.12
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF .. cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF ..
make -j4 make -j4
make install make install
cd ../..
rm -rf aseba/
EOF EOF
# Aseba need english locales to work # Aseba needs english locales to work
on_chroot << EOF on_chroot << EOF
sed -i 's/^# *\(en_US.UTF-8\)/\1/' /etc/locale.gen && locale-gen sed -i 's/^# *\(en_US.UTF-8\)/\1/' /etc/locale.gen && locale-gen
EOF EOF
# Fix shared library path # Fix shared libraries path
sed -i 's/^Exec=/Exec=env LD_LIBRARY_PATH=\/usr\/lib\/qt5.12\/lib /' "${ROOTFS_DIR}/usr/local/share/applications/org.mobsya.ThymioSuite.desktop" sed -i 's/^Exec=/Exec=env LD_LIBRARY_PATH=\/usr\/lib\/qt5.12\/lib /' "${ROOTFS_DIR}/usr/local/share/applications/org.mobsya.ThymioSuite.desktop"
# Add a desktop shortcut for Thymio Suite
mkdir -p "${ROOTFS_DIR}/home/${FIRST_USER_NAME}/Desktop"
cat > "${ROOTFS_DIR}/home/${FIRST_USER_NAME}/Desktop/org.mobsya.ThymioSuite.desktop" << EOF
[Desktop Entry]
Type=Link
Name=Thymio Suite
Icon=org.mobsya.ThymioSuite
URL=/usr/local/share/applications/org.mobsya.ThymioSuite.desktop
EOF
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment