From ae0c2638e3cdd31fe4f3fb1ac4eb63c5c257890a Mon Sep 17 00:00:00 2001 From: Ted John Date: Mon, 24 Feb 2020 17:50:39 +0000 Subject: [PATCH] Distribute openrct2.d.ts and scripting.md --- CMakeLists.txt | 4 +++- distribution/windows/install.nsi | 8 ++++++++ scripts/build-portable | 4 +++- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 99c2549ed2..1f0a901263 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -291,7 +291,9 @@ endif () # Don't recurse, grab all *.txt and *.md files file(GLOB DOC_FILES "${ROOT_DIR}/distribution/*.txt") list(APPEND DOC_FILES "${ROOT_DIR}/contributors.md" - "${ROOT_DIR}/licence.txt") + "${ROOT_DIR}/licence.txt" + "${ROOT_DIR}/distribution/scripting.md" + "${ROOT_DIR}/distribution/openrct2.d.ts") # CMake does not allow specifying a dependency chain which includes built-in # targets, like `install`, so we have to trick it and execute dependency ourselves. diff --git a/distribution/windows/install.nsi b/distribution/windows/install.nsi index 51ecaa085d..f3a16029d7 100644 --- a/distribution/windows/install.nsi +++ b/distribution/windows/install.nsi @@ -170,6 +170,12 @@ Section "!OpenRCT2" Section1 File ..\..\contributors.md Push "$INSTDIR\contributors.md" Call unix2dos + File ..\scripting.md + Push "$INSTDIR\scripting.md" + Call unix2dos + File ..\openrct2.d.ts + Push "$INSTDIR\openrct2.d.ts" + Call unix2dos ; Copy executable File /oname=${OPENRCT2_EXE} ${BINARY_DIR}\${OPENRCT2_EXE} @@ -240,6 +246,8 @@ Section "Uninstall" Delete "$INSTDIR\licence.txt" Delete "$INSTDIR\readme.txt" Delete "$INSTDIR\contributors.md" + Delete "$INSTDIR\scripting.md" + Delete "$INSTDIR\openrct2.d.ts" Delete "$INSTDIR\${OPENRCT2_EXE}" Delete "$INSTDIR\${OPENRCT2_COM}" Delete "$INSTDIR\INSTALL.LOG" diff --git a/scripts/build-portable b/scripts/build-portable index 7d50b86650..8e2912b15b 100755 --- a/scripts/build-portable +++ b/scripts/build-portable @@ -23,7 +23,9 @@ if [[ "$OSTYPE" == "cygwin" || "$OSTYPE" == "msys" ]]; then ../contributors.md \ ../licence.txt \ ../distribution/changelog.txt \ - ../distribution/readme.txt + ../distribution/readme.txt \ + ../distribution/scripting.md \ + ../distribution/openrct2.d.ts destination=$(cygpath -w $(readlink -f $destination)) printf '\033[0;32m%s\033[0m\n' "${destination} created successfully"