Bug #624 Add readme for building Desura package

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@5792 30fe4595-0a0c-4342-8851-515496e4dcbd
This commit is contained in:
mungewell 2014-06-26 01:17:13 +00:00
parent 8099765bf8
commit 8b7e7639b9
2 changed files with 52 additions and 0 deletions

View File

@ -0,0 +1,20 @@
diff --git a/src/main/CMakeLists.txt b/src/main/CMakeLists.txt
index 576c304..725f164 100644
--- a/src/main/CMakeLists.txt
+++ b/src/main/CMakeLists.txt
@@ -30,6 +30,15 @@ ENDIF(MSVC)
SD_ADD_EXECUTABLE(${_TARGET_NAME} ${_SOURCES})
+# Force RPATH to use relative paths on Linux
+IF(UNIX)
+ IF(CMAKE_SIZEOF_VOID_P EQUAL 8)
+ SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-rpath,$ORIGIN/../lib64/games/speed-dreams-2/lib")
+ ELSE()
+ SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-rpath,$ORIGIN/../lib/games/speed-dreams-2/lib")
+ ENDIF()
+ENDIF()
+
ADD_SDLIB_LIBRARY(${_TARGET_NAME} portability tgf tgfclient tgfdata)
# Needed when using the "MinGW Makefiles" CMake generator (but not with the "MSYS Makefiles" one !)

View File

@ -0,0 +1,32 @@
Desura Packages Windows (easy)
--
1). Use 'base' binary installer to install to an empty directory.
2). Delete (or move) the 'unistall' file.
3). VPoint the Desura client to this directory, and make MCF
4). Upload to Desura website and publish
5). Install HQ and More-HQ package
6). Point the Desura client to this directory, and make MCF
7). Upload to Desura website and publish
Desura Packages Linux (complicated)
--
Unfortunately the initial release of SpeedDreams on Linux was done where the
launch command was set to 'speeddreams' in the root of the install, this can
not be changed and therefore requires a script to work around it.
The 'fix_rpath' patch should first be applied to the source tree, this works
around a problem with the binaries being relocated.
The 'build_desura_package.sh' takes a destination directory as an argument
and will configure, compile and install SpeedDreams into that directory for
either 32 or 64bit architecture (depending on host).
so from the root of the source tree
--
$ patch -p1 < fix_rpatch.patch
$ build_desura_package.sh ../desura-target
--
The point the Desura client at that directory, make an MCF and upload. This
needs to be done twice, once for 32bit and once for 64bit