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:
@@ -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.
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user