]> git.sesse.net Git - casparcg/blobdiff - build-scripts/build-linux.sh
[logos] Included vector versions of the CasparCG logo.
[casparcg] / build-scripts / build-linux.sh
index 6fc4883fd794bc3f4b9d9e26b01d7b472f5cd5ce..961bb37a1c01e12e3e9391968d539d244d6e1b94 100755 (executable)
@@ -10,6 +10,10 @@ fail()
 [ -z "$BUILD_ARCHIVE_NAME" ] && fail "BUILD_ARCHIVE_NAME has to be set"
 [ -z "$BUILD_PARALLEL_THREADS" ] && fail "BUILD_PARALLEL_THREADS has to be set"
 
+# Unpack archived dependencies
+cd ../dependencies64 || fail "Could not enter ../dependencies64"
+tar xvJf large_files_linux.tar.xz || fail "Could not unpack large_files_linux.tar.xz"
+
 # Clean and enter shadow build folder
 echo Cleaning...
 if [ -e ../build ]; then
@@ -19,9 +23,9 @@ fi
 mkdir ../build || fail "Could not create ../build"
 cd ../build || fail "Could not enter ../build"
 
-# Run qmake
+# Run cmake
 echo Running cmake...
-cmake -G "Unix Makefiles" -A x64 -DCMAKE_BUILD_TYPE=RelWithDebInfo .. || fail "cmake failed"
+cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=RelWithDebInfo .. || fail "cmake failed"
 
 # Run make using the number of hardware threads in BUILD_PARALLEL_THREADS
 echo Building...
@@ -38,21 +42,28 @@ mkdir "$SERVER_FOLDER/lib" || fail "Could not create $SERVER_FOLDER/lib"
 
 # Copy compiled binaries
 echo Copying binaries...
-cp -fP shell/lib* "$SERVER_FOLDER/lib/" || fail "Could not copy server libraries"
-cp -f shell/casparcg "$SERVER_FOLDER/bin/" || fail "Could not copy server executable"
-cp -f shell/casparcg.config "$SERVER_FOLDER/" || fail "Could not copy server config"
+cp -f  shell/lib* "$SERVER_FOLDER/lib/" || fail "Could not copy server libraries"
+cp -f  shell/*.ttf "$SERVER_FOLDER/" || fail "Could not copy font(s)"
+cp -f  shell/casparcg "$SERVER_FOLDER/bin/" || fail "Could not copy server executable"
+cp -f  shell/casparcg.config "$SERVER_FOLDER/" || fail "Could not copy server config"
 cp -Rf shell/locales "$SERVER_FOLDER/bin/" || fail "Could not copy server CEF locales"
+cp -f  shell/*.pak "$SERVER_FOLDER/" || fail "Could not copy CEF resources"
 
 # Copy binary dependencies
 echo Copying binary dependencies...
-cp -RfP ../deploy/linux/* "$SERVER_FOLDER/" || fail "Could not copy binary dependencies"
-#cp -RfP ../deploy/examples/* "$SERVER_FOLDER/" || fail "Could not copy binary dependencies"
+cp -Rf ../deploy/linux/* "$SERVER_FOLDER/" || fail "Could not copy binary dependencies"
+cp -f  ../deploy/general/*.pdf "$SERVER_FOLDER/" || fail "Could not copy pdf"
+cp -Rf ../deploy/general/wallpapers "$SERVER_FOLDER/" || fail "Could not copy wallpapers"
+cp -Rf ../deploy/general/logos "$SERVER_FOLDER/" || fail "Could not copy logos"
+cp -Rf ../deploy/general/server/media "$SERVER_FOLDER/" || fail "Could not copy media"
+cp -Rf ../deploy/general/server/template "$SERVER_FOLDER/" || fail "Could not copy template"
+cp -Rf ../deploy/general/server/font "$SERVER_FOLDER/" || fail "Could not copy font"
 
 # Copy documentation
 echo Copying documentation...
-cp -f ../CHANGES.txt "$SERVER_FOLDER/" || fail "Could not copy CHANGES.txt"
-cp -f ../README.txt "$SERVER_FOLDER/" || fail "Could not copy README.txt"
-cp -f ../LICENSE.txt "$SERVER_FOLDER/" || fail "Could not copy LICENSE.txt"
+cp -f ../CHANGELOG "$SERVER_FOLDER/" || fail "Could not copy CHANGELOG"
+cp -f ../README "$SERVER_FOLDER/" || fail "Could not copy README"
+cp -f ../LICENSE "$SERVER_FOLDER/" || fail "Could not copy LICENSE"
 
 # Create tar.gz file
 echo Creating tag.gz...