Tahoma Linux builds via Travis (#113)

* Tahoma Linux builds via Travis

* Update Linux Travis to install Qt 5.9

* Correct Tahoma appdata
This commit is contained in:
manongjohn 2020-08-06 23:40:23 -04:00 committed by GitHub
parent e736578c26
commit 4967add412
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 93 additions and 6 deletions

View file

@ -3,7 +3,7 @@ pushd thirdparty/tiff-4.0.3
CFLAGS="-fPIC" CXXFLAGS="-fPIC" ./configure --disable-jbig && make CFLAGS="-fPIC" CXXFLAGS="-fPIC" ./configure --disable-jbig && make
popd popd
cd toonz && mkdir build && cd build cd toonz && mkdir build && cd build
source /opt/qt514/bin/qt514-env.sh source /opt/qt59/bin/qt59-env.sh
cmake ../sources \ cmake ../sources \
-DWITH_SYSTEM_SUPERLU:BOOL=OFF -DWITH_SYSTEM_SUPERLU:BOOL=OFF
# according to https://docs.travis-ci.com/user/ci-environment/#Virtualization-environments # according to https://docs.travis-ci.com/user/ci-environment/#Virtualization-environments

View file

@ -0,0 +1,48 @@
#!/bin/bash
source /opt/qt59/bin/qt59-env.sh
echo ">>> Temporary install of Tahoma"
export BUILDDIR=$(pwd)/toonz/build
cd $BUILDDIR
sudo make install
echo ">>> Creating appDir"
mkdir -p appdir/usr
echo ">>> Copy and configure Tahoma installation in appDir"
cp -r /opt/tahoma/* appdir/usr
cp appdir/usr/share/applications/*.desktop appdir
cp appdir/usr/share/icons/hicolor/*/apps/*.png appdir
mv appdir/usr/lib/tahoma/* appdir/usr/lib
rmdir appdir/usr/lib/tahoma
echo ">>> Creating Tahoma directory"
mkdir Tahoma
echo ">>> Copying stuff to Tahoma/tahomastuff"
mv appdir/usr/share/tahoma/stuff Tahoma/tahomastuff
chmod -R 777 Tahoma/tahomastuff
rmdir appdir/usr/share/tahoma
echo ">>> Creating Tahoma/Tahoma.AppImage"
wget -c "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
chmod a+x linuxdeployqt*.AppImage
export LD_LIBRARY_PATH=appdir/usr/lib/tahoma
./linuxdeployqt*.AppImage appdir/usr/bin/Tahoma -bundle-non-qt-libs -verbose=0 -always-overwrite \
-executable=appdir/usr/bin/lzocompress \
-executable=appdir/usr/bin/lzodecompress \
-executable=appdir/usr/bin/tcleanup \
-executable=appdir/usr/bin/tcomposer \
-executable=appdir/usr/bin/tconverter \
-executable=appdir/usr/bin/tfarmcontroller \
-executable=appdir/usr/bin/tfarmserver
./linuxdeployqt*.AppImage appdir/usr/bin/Tahoma -appimage
mv Tahoma*.AppImage Tahoma/Tahoma.AppImage
echo ">>> Creating Tahoma Linux package"
tar zcf Tahoma-linux.tar.gz Tahoma

View file

@ -1,8 +1,8 @@
sudo add-apt-repository --yes ppa:beineri/opt-qt-5.14.1-xenial sudo add-apt-repository --yes ppa:beineri/opt-qt597-xenial
sudo add-apt-repository --yes ppa:achadwick/mypaint-testing sudo add-apt-repository --yes ppa:achadwick/mypaint-testing
sudo add-apt-repository --yes ppa:litenstein/opencv3-xenial sudo add-apt-repository --yes ppa:litenstein/opencv3-xenial
sudo apt-get update sudo apt-get update
sudo apt-get install -y cmake liblzo2-dev liblz4-dev libfreetype6-dev libpng-dev libegl1-mesa-dev libgles2-mesa-dev libglew-dev freeglut3-dev qt514script libsuperlu-dev qt514svg qt514tools qt514multimedia wget libusb-1.0-0-dev libboost-all-dev liblzma-dev libjson-c-dev libmypaint-dev libjpeg-turbo8-dev libopencv-dev libglib2.0-dev qt514serialport sudo apt-get install -y cmake liblzo2-dev liblz4-dev libfreetype6-dev libpng-dev libegl1-mesa-dev libgles2-mesa-dev libglew-dev freeglut3-dev qt59script libsuperlu-dev qt59svg qt59tools qt59multimedia wget libusb-1.0-0-dev libboost-all-dev liblzma-dev libjson-c-dev libmypaint-dev libjpeg-turbo8-dev libopencv-dev libglib2.0-dev qt59serialport
# someone forgot to include liblz4.pc with the package, use the version from xenial, as it only depends on libc # someone forgot to include liblz4.pc with the package, use the version from xenial, as it only depends on libc
wget http://mirrors.kernel.org/ubuntu/pool/main/l/lz4/liblz4-1_0.0~r131-2ubuntu2_amd64.deb -O liblz4.deb wget http://mirrors.kernel.org/ubuntu/pool/main/l/lz4/liblz4-1_0.0~r131-2ubuntu2_amd64.deb -O liblz4.deb

View file

@ -1,3 +1,3 @@
install(FILES io.github.OpenToonz.appdata.xml DESTINATION ${CMAKE_INSTALL_PREFIX}/share/metainfo) install(FILES io.github.Tahoma.appdata.xml DESTINATION ${CMAKE_INSTALL_PREFIX}/share/metainfo)
install(FILES io.github.OpenToonz.desktop DESTINATION ${CMAKE_INSTALL_PREFIX}/share/applications) install(FILES io.github.Tahoma.desktop DESTINATION ${CMAKE_INSTALL_PREFIX}/share/applications)
install(FILES io.github.OpenToonz.png DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/256x256/apps) install(FILES io.github.Tahoma.png DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/256x256/apps)

View file

@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop">
<id>io.github.Tahoma</id>
<launchable type="desktop-id">io.github.Tahoma.desktop</launchable>
<name>Tahoma</name>
<metadata_license>CC0-1.0</metadata_license>
<project_license>BSD-3-Clause</project_license>
<developer_name>Tahoma</developer_name>
<summary>2D animation</summary>
<description>
<p>
This is software for producing 2D and stop motion animation.
</p>
<p>
Tahoma is based on OpenToonz which itself is based on "Toonz",
developed by Digital Video S.p.A. in Italy and customized by
Studio Ghibli.
</p>
</description>
<url type="homepage">https://tahoma2d.org</url>
<url type="bugtracker">https://github.com/turtletooth/tahoma/issues</url>
<screenshots>
<screenshot type="default">
<image>https://raw.githubusercontent.com/flathub/io.github.Tahoma/master/screenshot1.png</image>
</screenshot>
</screenshots>
<content_rating type="oars-1.1" />
<releases>
<release version="1.0" date="2020-01-31"></release>
</releases>
</component>

View file

@ -0,0 +1,8 @@
[Desktop Entry]
Type=Application
Name=Tahoma
Comment=2D animation
Icon=io.github.Tahoma
Exec=tahoma
Categories=Graphics;
Terminal=false

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB