-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
📦 Add support for building different installers
Possible values: Off - Do not build installer Online - Build fully online installer Offline - build installer without contentpack Bundled - build installer with contentpack bundled
- Loading branch information
1 parent
3f4f411
commit 59ce704
Showing
4 changed files
with
47 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -535,7 +535,7 @@ endif () | |
# CPack | ||
# ----------------------- | ||
set(CPACK_PACKAGE_NAME "Rigs of Rods") | ||
set(CPACK_PACKAGE_FILE_NAME "rigs-of-rods-${CMAKE_PROJECT_VERSION}") | ||
set(CPACK_PACKAGE_FILE_NAME "rigs-of-rods-${CMAKE_PROJECT_VERSION}-${ROR_BUILD_INSTALLER}") | ||
set(CPACK_PACKAGE_DESCRIPTION "Rigs of Rods soft-body physics simulator") | ||
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Rigs of Rods is an open source vehicle simulator based on soft-body physics.") | ||
set(CPACK_PACKAGE_CONTACT "[email protected]") | ||
|
@@ -544,7 +544,7 @@ set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/tools/windows/license.rtf") | |
set(CPACK_PACKAGE_EXECUTABLES "RoR" "Rigs of Rods") | ||
|
||
|
||
if (WIN32 AND ROR_BUILD_INSTALLER) | ||
if (WIN32 AND NOT ROR_BUILD_INSTALLER STREQUAL "Off") | ||
set(CPACK_GENERATOR INNOSETUP) | ||
set(CPACK_ADD_REMOVE TRUE) | ||
set(CPACK_RESOURCE_FILE_README "${CMAKE_SOURCE_DIR}/tools/windows/AfterInstall.txt") | ||
|
@@ -559,17 +559,28 @@ if (WIN32 AND ROR_BUILD_INSTALLER) | |
|
||
set(CPACK_PACKAGE_INSTALL_DIRECTORY "${CPACK_PACKAGE_NAME}") | ||
|
||
cpack_add_component("Base_Game" DISPLAY_NAME "Game" GROUP "Main" REQUIRED TRUE) | ||
cpack_add_component("Base_Content" DISPLAY_NAME "Starter content" GROUP "Main") | ||
|
||
cpack_configure_downloads("http://prdownloads.sourceforge.net/rigs-of-rods/") | ||
|
||
if(ROR_BUILD_INSTALLER STREQUAL "Bundled") | ||
set(CPACK_INNOSETUP_SETUP_DiskSpanning True) | ||
endif() | ||
|
||
if(ROR_BUILD_INSTALLER STREQUAL "Online") | ||
cpack_add_component("Base_Game" DISPLAY_NAME "Game" GROUP "Main" REQUIRED TRUE DOWNLOADED TRUE) | ||
cpack_add_component("Base_Content" DISPLAY_NAME "Starter content" GROUP "Main" DOWNLOADED TRUE) | ||
else() | ||
cpack_add_component("Base_Game" DISPLAY_NAME "Game" GROUP "Main" REQUIRED TRUE) | ||
cpack_add_component("Base_Content" DISPLAY_NAME "Starter content" GROUP "Main") | ||
endif () | ||
|
||
dl_contentpack("http://forum.rigsofrods.org/resources/content-pack-trucks-heavy-equipment.490/download" "HeavyEquipment" "ef25dc781ad148359cbcec7a67281747") | ||
dl_contentpack("http://forum.rigsofrods.org/resources/content-pack-cars-light-vehicles.491/download" "LightVehicles" "583a3056d1e84744907d83a58c99623b") | ||
dl_contentpack("http://forum.rigsofrods.org/resources/content-pack-trailers-loads.492/download" "Loads" "c86e4d5c605f6c97efc4da25257061bb") | ||
dl_contentpack("http://forum.rigsofrods.org/resources/content-pack-air-sea.495/download" "AirSea" "d5510617dfbc64791e4006522a5110de") | ||
dl_contentpack("http://forum.rigsofrods.org/resources/content-pack-trains.494/download" "Trains" "0927db107a7d8a164f57c9b45d57f773") | ||
dl_contentpack("http://forum.rigsofrods.org/resources/content-pack-terrains.496/download" "Terrains" "48374d3f90045b6cd9a8271f1531f4b4") | ||
if(NOT ROR_BUILD_INSTALLER STREQUAL "Offline") | ||
dl_contentpack("http://forum.rigsofrods.org/resources/content-pack-trucks-heavy-equipment.490/download" "HeavyEquipment" "ef25dc781ad148359cbcec7a67281747") | ||
dl_contentpack("http://forum.rigsofrods.org/resources/content-pack-cars-light-vehicles.491/download" "LightVehicles" "583a3056d1e84744907d83a58c99623b") | ||
dl_contentpack("http://forum.rigsofrods.org/resources/content-pack-trailers-loads.492/download" "Loads" "c86e4d5c605f6c97efc4da25257061bb") | ||
dl_contentpack("http://forum.rigsofrods.org/resources/content-pack-air-sea.495/download" "AirSea" "d5510617dfbc64791e4006522a5110de") | ||
dl_contentpack("http://forum.rigsofrods.org/resources/content-pack-trains.494/download" "Trains" "0927db107a7d8a164f57c9b45d57f773") | ||
dl_contentpack("http://forum.rigsofrods.org/resources/content-pack-terrains.496/download" "Terrains" "48374d3f90045b6cd9a8271f1531f4b4") | ||
endif () | ||
else () | ||
set(CPACK_GENERATOR ZIP) | ||
endif () | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters