diff --git a/packaging/desura/fix_rpath.patch b/packaging/desura/fix_rpath.patch new file mode 100644 index 000000000..7d93d8fd7 --- /dev/null +++ b/packaging/desura/fix_rpath.patch @@ -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 !) diff --git a/packaging/desura/readme.txt b/packaging/desura/readme.txt new file mode 100644 index 000000000..85e320688 --- /dev/null +++ b/packaging/desura/readme.txt @@ -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