1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-10 01:22:25 +01:00

Distribute openrct2.d.ts and scripting.md

This commit is contained in:
Ted John
2020-02-24 17:50:39 +00:00
parent 177c1a16a7
commit ae0c2638e3
3 changed files with 14 additions and 2 deletions

View File

@@ -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.

View File

@@ -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"

View File

@@ -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"