diff --git a/CMakeLists.txt b/CMakeLists.txt index 1a001a4832..7adc1f6f77 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,6 +24,7 @@ endif(WIN32) # External version not yet supported, WIP # option(UseInternalJpeg "Whether to use the included libjpeg instead of a locally installed one" ON) # option(UseInternalPng "Whether to use the included libpng instead of a locally installed one" ON) +option(PackageDir "Where to place the installer/package." "${CMAKE_SOURCE_DIR}/package") # Custom CMake Modules needed set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMakeModules" ${CMAKE_MODULE_PATH}) @@ -65,4 +66,22 @@ add_subdirectory(${SPDir}) if(BuildJK2SPGame) add_subdirectory("${JK2SPDir}/game") endif(BuildJK2SPGame) -add_subdirectory(${MPDir}) \ No newline at end of file +add_subdirectory(${MPDir}) + +# CPack for installer creation +# TODO: Which version are we? +set(CPACK_PACKAGE_PACKAGE_MAJOR "0") +set(CPACK_PACKAGE_VERSION_MINOR "1") +set(CPACK_PACKAGE_VERSION_PATCH "0") +# I'm just not appending the version for now +set(CPACK_PACKAGE_FILE_NAME "OpenJK-${CMAKE_SYSTEM_NAME}-${Architecture}") + +set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "An improved Jedi Academy") +set(CPACK_PACKAGE_VENDOR "JA Coders") # TODO: What are we called? +set(CPACK_RESOURCE_FILE_README "${CMAKE_SOURCE_DIR}/README.md") +set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/LICENSE.txt") +set(CPACK_PACKAGE_DIRECTORY ${PACKAGE_DIR}) +set(CPACK_BINARY_ZIP ON) # always create at least a zip file +set(CPACK_INCLUDE_TOPLEVEL_DIRECTORY 0) # prevent additional directory in zip + +include(CPack) \ No newline at end of file diff --git a/README.md b/README.md index 0f4de7cca2..e04a53afdd 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,18 @@ ## SORRY FOR THE HISTORY CHANGES! ## For legal reasons we had to make changes to the history. This likely broke every forker's repo. See [here](http://git-scm.com/docs/git-rebase.html#_recovering_from_upstream_rebase) for how to fix if you've changed anything, or just delete your github fork and local folder and start over if you haven't. -## JACoders "OpenJK" project ## +# JACoders "OpenJK" project # IRC: irc.arloria.net / #JACoders ([webchat](http://www.arloria.net/tiramisu/tiramisu.swf?channels=#jacoders)) The purpose of this project is to maintain and improve the Jedi Academy and Jedi Outcast games, developed by Raven Software. This project will not attempt to rebalance or otherwise modify core gameplay aspects. +## Installation ## + +First, install Jedi Academy. + +Then point the OpenJK installer to the GameData folder in the Jedi Academy install, e.g. just point it to your "Jedi Academy/GameData" folder. If you've downloaded an archive, just unpack it to GameData. + ## Maintainers (in alphabetical order) ## * eezstreet * Ensiform @@ -62,7 +68,7 @@ This project will not attempt to rebalance or otherwise modify core gameplay asp * Removed CD Key Code * Removed demo restriction code. * Removed Anti-Tamper Code. -* Shift-Escape will now also open the console as an alternate (ie: keyboard doesn't support the normal console key) +* Shift-Escape will now also open the console as an alternate (e.g.: keyboard doesn't support the normal console key) * Removed shift key requirement to open console ## Developer Notes ## @@ -72,6 +78,7 @@ This project will not attempt to rebalance or otherwise modify core gameplay asp * rd-dedicated (Stripped down renderer for use with dedicated server) * rd-raspberry (OpenGL ES compliant renderer for use with Raspberry Pi - feel free to maintain!) * rd-strawberry (Maintainer: Xycaleth) +* rd-vader (Maintainer: mrwonko) ### Engine "hax" ### * If your mod intends to use engine "hax" to figure out the nedaddr types (NA_IP, etc) NA_BAD is now 0 and NA_BOT is now 1 instead of vice versa.