build: linux package
linux package
This commit is contained in:
+23
-26
@@ -4,45 +4,40 @@
|
|||||||
# )
|
# )
|
||||||
|
|
||||||
INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/bin/app/data
|
INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/bin/app/data
|
||||||
DESTINATION share/coati/.config/coati
|
DESTINATION coati/data
|
||||||
PATTERN "log/*" EXCLUDE
|
PATTERN "log/*" EXCLUDE
|
||||||
PATTERN "projects" EXCLUDE
|
PATTERN "projects/ingored" EXCLUDE
|
||||||
PATTERN "src" EXCLUDE
|
PATTERN "src" EXCLUDE
|
||||||
PATTERN "ApplicationSettings.xml" EXCLUDE
|
PATTERN "ApplicationSettings.xml" EXCLUDE
|
||||||
PATTERN "ApplicationSettings_distr.xml" EXCLUDE
|
PATTERN "ApplicationSettings_for_package.xml" EXCLUDE
|
||||||
PATTERN "ProjectSettings_template.xml" EXCLUDE
|
PATTERN "ProjectSettings_template.xml" EXCLUDE
|
||||||
PATTERN "ApplicationSettings_template.xml" EXCLUDE
|
PATTERN "ApplicationSettings_template.xml" EXCLUDE
|
||||||
)
|
)
|
||||||
|
|
||||||
INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/bin/app/data/src/tictactoe
|
INSTALL(FILES ${CMAKE_SOURCE_DIR}/bin/app/data/ApplicationSettings_for_package.xml
|
||||||
DESTINATION share/coati/.config/coati/data/projects
|
DESTINATION coati/data
|
||||||
)
|
|
||||||
|
|
||||||
INSTALL(FILES ${CMAKE_SOURCE_DIR}/bin/app/data/projects/tictactoe.xml
|
|
||||||
DESTINATION share/coati/.config/coati/data/projects/tictactoe
|
|
||||||
)
|
|
||||||
|
|
||||||
INSTALL(FILES ${CMAKE_SOURCE_DIR}/bin/app/data/ApplicationSettings_distr.xml
|
|
||||||
DESTINATION share/coati/.config/coati/data
|
|
||||||
RENAME ApplicationSettings.xml)
|
RENAME ApplicationSettings.xml)
|
||||||
|
|
||||||
INSTALL(FILES ${CMAKE_SOURCE_DIR}/setup/Linux/coati.desktop
|
INSTALL(FILES ${CMAKE_SOURCE_DIR}/setup/Linux/coati.desktop
|
||||||
DESTINATION share/applications
|
DESTINATION applications
|
||||||
)
|
)
|
||||||
INSTALL(FILES ${CMAKE_SOURCE_DIR}/bin/app/data/gui/icon/logo_1024_1024.png
|
INSTALL(FILES ${CMAKE_SOURCE_DIR}/bin/app/data/gui/icon/logo_1024_1024.png
|
||||||
DESTINATION share/icons
|
DESTINATION icons
|
||||||
RENAME coati.png)
|
RENAME coati.png)
|
||||||
|
|
||||||
|
INSTALL(FILES ${CMAKE_SOURCE_DIR}/web/coati_manual.pdf
|
||||||
|
DESTINATION coati)
|
||||||
|
|
||||||
INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/setup/Linux/lib
|
INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/setup/Linux/lib
|
||||||
DESTINATION share/coati
|
DESTINATION coati
|
||||||
)
|
)
|
||||||
INSTALL(FILES
|
INSTALL(FILES
|
||||||
${CMAKE_SOURCE_DIR}/setup/Linux/libqxcb.so
|
${CMAKE_SOURCE_DIR}/setup/Linux/libqxcb.so
|
||||||
DESTINATION share/coati/platforms
|
DESTINATION coati/platforms
|
||||||
)
|
)
|
||||||
INSTALL(PROGRAMS
|
INSTALL(PROGRAMS
|
||||||
${CMAKE_SOURCE_DIR}/setup/Linux/Coati.sh
|
${CMAKE_SOURCE_DIR}/setup/Linux/Coati.sh
|
||||||
DESTINATION share/coati
|
DESTINATION coati
|
||||||
)
|
)
|
||||||
INSTALL(PROGRAMS ${CMAKE_SOURCE_DIR}/setup/Linux/coati
|
INSTALL(PROGRAMS ${CMAKE_SOURCE_DIR}/setup/Linux/coati
|
||||||
DESTINATION bin/
|
DESTINATION bin/
|
||||||
@@ -52,21 +47,23 @@ INSTALL(PROGRAMS ${CMAKE_SOURCE_DIR}/setup/Linux/coati
|
|||||||
SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
|
SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
|
||||||
|
|
||||||
INSTALL(TARGETS ${APP_PROJECT_NAME}
|
INSTALL(TARGETS ${APP_PROJECT_NAME}
|
||||||
DESTINATION share/coati
|
DESTINATION coati
|
||||||
)
|
)
|
||||||
|
|
||||||
SET(CPACK_GENERATOR "DEB;TGZ")
|
# SET(CPACK_GENERATOR "DEB;TGZ")
|
||||||
|
SET(CPACK_GENERATOR "TGZ")
|
||||||
SET(CPACK_ARCHIVE_COMPONENT_INSTALL "ON")
|
SET(CPACK_ARCHIVE_COMPONENT_INSTALL "ON")
|
||||||
|
|
||||||
# DEBIAN PACKAGE
|
# DEBIAN PACKAGE
|
||||||
SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "Andreas Stallinger <astallinger@coati.io>")
|
# SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "Andreas Stallinger <astallinger@coati.io>")
|
||||||
SET(CPACK_DEBIAN_PACKAGE_ARCHITECTURE "amd64")
|
# SET(CPACK_DEBIAN_PACKAGE_ARCHITECTURE "amd64")
|
||||||
|
# SET(CPACK_DEBIAN_PACKAGE_HOMEPAGE "http://coati.io")
|
||||||
|
# SET(CPACK_DEBIAN_PACKAGE_SECTION "devel")
|
||||||
|
|
||||||
SET(CPACK_PACKAGE_NAME "Coati")
|
SET(CPACK_PACKAGE_NAME "Coati")
|
||||||
SET(CPACK_DEBIAN_PACKAGE_HOMEPAGE "http://coati.io")
|
SET(CPACK_PACKAGING_INSTALL_PREFIX "")
|
||||||
SET(CPACK_DEBIAN_PACKAGE_SECTION "devel")
|
|
||||||
SET(CPACK_PACKAGING_INSTALL_PREFIX "/usr/local")
|
|
||||||
SET(CPACK_PACKAGE_VERSION ${GIT_VERSION_NUMBER})
|
SET(CPACK_PACKAGE_VERSION ${GIT_VERSION_NUMBER})
|
||||||
SET(CPACK_PACKAGE_EXECUTABLES "Coati")
|
SET(CPACK_PACKAGE_EXECUTABLES "Coati")
|
||||||
SET(CPACK_STRIP_FILES "share/coati/Coati")
|
SET(CPACK_STRIP_FILES "coati/Coati")
|
||||||
|
|
||||||
INCLUDE(CPack)
|
INCLUDE(CPack)
|
||||||
|
|||||||
+1
-1
@@ -30,7 +30,7 @@ then
|
|||||||
elif [ "$1" = "package" ] || [ "$1" = "p" ]
|
elif [ "$1" = "package" ] || [ "$1" = "p" ]
|
||||||
then
|
then
|
||||||
ninja package -C build/Release Coati
|
ninja package -C build/Release Coati
|
||||||
mkdir -p distr && cp build/Release/Coati*.deb distr && cp build/Release/Coati*.tar.gz distr
|
mkdir -p distr && cp build/Release/Coati*.tar.gz distr #&& cp build/Release/Coati*.deb distr
|
||||||
echo "Packages copied into the distr folder"
|
echo "Packages copied into the distr folder"
|
||||||
else
|
else
|
||||||
echo "no arguments: first argument 'release' or 'debug', second argument 'test' for tests"
|
echo "no arguments: first argument 'release' or 'debug', second argument 'test' for tests"
|
||||||
|
|||||||
@@ -1,9 +1,11 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
COATI_PATH=`dirname "$0"`
|
||||||
|
|
||||||
if [ ! -d "${HOME}/.config/coati" ]; then
|
if [ ! -d "${HOME}/.config/coati" ]; then
|
||||||
# Control will enter here if $DIRECTORY doesn't exist.
|
# Control will enter here if $DIRECTORY doesn't exist.
|
||||||
cp -r /usr/local/share/coati/.config/coati ${HOME}/.config/coati
|
cp -r $COATI_PATH/coati/data ${HOME}/.config/coati
|
||||||
echo "First start of Coati from this user, copy default configfiles to ~/.config/coati"
|
echo "First start of Coati from this user, copy default configfiles to ~/.config/coati"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export LD_LIBRARY_PATH=/usr/local/share/coati/lib
|
export LD_LIBRARY_PATH=$COATI_PATH/coati/lib
|
||||||
cd ~/.config/coati && exec /usr/local/share/coati/Coati
|
cd ~/.config/coati && exec $COATI_PAT/coati/Coati
|
||||||
|
|||||||
@@ -113,13 +113,13 @@ ApplicationSettings::ApplicationSettings()
|
|||||||
|
|
||||||
std::vector<FilePath> ApplicationSettings::getRecentProjects() const
|
std::vector<FilePath> ApplicationSettings::getRecentProjects() const
|
||||||
{
|
{
|
||||||
std::vector<FilePath> recentProjects = getPathValues("user/recent_projects/recent_project");
|
std::vector<FilePath> loadedRecentProjects = getPathValues("user/recent_projects/recent_project");
|
||||||
std::vector<FilePath>::iterator iter = recentProjects.end();
|
std::vector<FilePath> recentProjects;
|
||||||
for( ; iter != recentProjects.begin(); iter--)
|
for(FilePath project : loadedRecentProjects)
|
||||||
{
|
{
|
||||||
if(!(*iter).exists())
|
if(project.exists())
|
||||||
{
|
{
|
||||||
recentProjects.erase(iter);
|
recentProjects.push_back(project);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return recentProjects;
|
return recentProjects;
|
||||||
|
|||||||
Reference in New Issue
Block a user