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 Former-commit-id: 727eabf7470ccdc1e3f63a4d228a3ed34abea68a Former-commit-id: 0dd11ac623a694b9362634be6f932dda1ef48e25
This commit is contained in:
parent
e2569563b7
commit
03e7cebafc
2 changed files with 52 additions and 0 deletions
20
packaging/desura/fix_rpath.patch
Normal file
20
packaging/desura/fix_rpath.patch
Normal 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 !)
|
32
packaging/desura/readme.txt
Normal file
32
packaging/desura/readme.txt
Normal 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
|
Loading…
Reference in a new issue