Provides automatic installation scripts for OpenRA with Tiberian Sun & Red Alert 2 + Dune 2 (Windows, Linux)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

134 lines
5.1 KiB

8 years ago
  1. --- a/Makefile
  2. +++ b/Makefile
  3. @@ -187,6 +187,15 @@
  4. PROGRAMS += mod_ts
  5. mod_ts: $(mod_ts_TARGET)
  6. +# Red Alert 2
  7. +mod_ra2_SRCS := $(shell find OpenRA.Mods.RA2/ -iname '*.cs')
  8. +mod_ra2_TARGET = mods/ra2/OpenRA.Mods.RA2.dll
  9. +mod_ra2_KIND = library
  10. +mod_ra2_DEPS = $(STD_MOD_DEPS) $(mod_common_TARGET)
  11. +mod_ra2_LIBS = $(COMMON_LIBS) $(STD_MOD_LIBS) $(mod_common_TARGET)
  12. +PROGRAMS += mod_ra2
  13. +mod_ra2: $(mod_ra2_TARGET)
  14. +
  15. check-scripts:
  16. @echo
  17. @echo "Checking for Lua syntax errors..."
  18. @@ -222,6 +231,9 @@
  19. @echo "Checking for code style violations in OpenRA.Mods.TS..."
  20. @mono --debug OpenRA.Utility.exe ra --check-code-style OpenRA.Mods.TS
  21. @echo
  22. + @echo "Checking for code style violations in OpenRA.Mods.RA2..."
  23. + @mono --debug OpenRA.Utility.exe ra --check-code-style OpenRA.Mods.RA2
  24. + @echo
  25. @echo "Checking for code style violations in OpenRA.Utility..."
  26. @mono --debug OpenRA.Utility.exe ra --check-code-style OpenRA.Utility
  27. @echo
  28. @@ -255,6 +267,9 @@
  29. @echo "Testing Tiberian Sun mod MiniYAML..."
  30. @mono --debug OpenRA.Utility.exe ts --check-yaml
  31. @echo
  32. + @echo "Testing Red Alert 2 mod MiniYAML..."
  33. + @mono --debug OpenRA.Utility.exe ra2 --check-yaml
  34. + @echo
  35. @echo "Testing Dune 2000 mod MiniYAML..."
  36. @mono --debug OpenRA.Utility.exe d2k --check-yaml
  37. @echo
  38. @@ -320,7 +335,7 @@
  39. package: all-dependencies core tools docs version
  40. -mods: mod_common mod_ra mod_cnc mod_d2k mod_ts
  41. +mods: mod_common mod_ra mod_cnc mod_d2k mod_ts mod_ra2
  42. all: dependencies core tools
  43. @@ -389,6 +404,10 @@
  44. @$(CP_R) mods/d2k "$(DATA_INSTALL_DIR)/mods/"
  45. @$(INSTALL_PROGRAM) $(mod_d2k_TARGET) "$(DATA_INSTALL_DIR)/mods/d2k"
  46. @$(CP_R) mods/modchooser "$(DATA_INSTALL_DIR)/mods/"
  47. + @$(CP_R) mods/ts "$(DATA_INSTALL_DIR)/mods/"
  48. + @$(INSTALL_PROGRAM) $(mod_ts_TARGET) "$(DATA_INSTALL_DIR)/mods/ts"
  49. + @$(CP_R) mods/ra2 "$(DATA_INSTALL_DIR)/mods/"
  50. + @$(INSTALL_PROGRAM) $(mod_ra2_TARGET) "$(DATA_INSTALL_DIR)/mods/ra2"
  51. @$(INSTALL_DATA) "global mix database.dat" "$(DATA_INSTALL_DIR)/global mix database.dat"
  52. @$(INSTALL_DATA) "GeoLite2-Country.mmdb.gz" "$(DATA_INSTALL_DIR)/GeoLite2-Country.mmdb.gz"
  53. --- a/make.ps1
  54. +++ b/make.ps1
  55. @@ -136,6 +136,8 @@
  56. echo "Testing mods..."
  57. echo "Testing Tiberian Sun mod MiniYAML..."
  58. ./OpenRA.Utility.exe ts --check-yaml
  59. + echo "Testing Red Alert 2 mod MiniYAML..."
  60. + ./OpenRA.Utility.exe ra2 --check-yaml
  61. echo "Testing Dune 2000 mod MiniYAML..."
  62. ./OpenRA.Utility.exe d2k --check-yaml
  63. echo "Testing Tiberian Dawn mod MiniYAML..."
  64. @@ -170,6 +172,8 @@
  65. ./OpenRA.Utility.exe cnc --check-code-style OpenRA.Mods.D2k
  66. echo "Checking for code style violations in OpenRA.Mods.TS..."
  67. ./OpenRA.Utility.exe cnc --check-code-style OpenRA.Mods.TS
  68. + echo "Checking for code style violations in OpenRA.Mods.RA2..."
  69. + ./OpenRA.Utility.exe cnc --check-code-style OpenRA.Mods.RA2
  70. echo "Checking for code style violations in OpenRA.Utility..."
  71. ./OpenRA.Utility.exe cnc --check-code-style OpenRA.Utility
  72. echo "Checking for code style violations in OpenRA.Test..."
  73. --- a/mods/all/mod.yaml
  74. +++ b/mods/all/mod.yaml
  75. @@ -20,6 +20,7 @@
  76. d2k:OpenRA.Mods.D2k.dll
  77. ./mods/cnc/OpenRA.Mods.Cnc.dll
  78. ./mods/ts/OpenRA.Mods.TS.dll
  79. + ./mods/ts/OpenRA.Mods.RA2.dll
  80. ChromeLayout:
  81. --- a/mods/ra2/mod.yaml
  82. +++ b/mods/ra2mod.yaml
  83. @@ -5,7 +5,7 @@
  84. Author: RA2 team
  85. RequiresMods:
  86. - modchooser: {DEV_VERSION}
  87. +
  88. Folders:
  89. .
  90. --- a/OpenRA.sln
  91. +++ b/OpenRA.sln
  92. @@ -17,6 +17,8 @@
  93. EndProject
  94. Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenRA.Mods.TS", "OpenRA.Mods.TS\OpenRA.Mods.TS.csproj", "{5457CBF5-4CE4-421E-A8BF-9FD6C9732E1D}"
  95. EndProject
  96. +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenRA.Mods.RA2", "OpenRA.Mods.RA2\OpenRA.Mods.RA2.csproj", "{7E1263D2-BA04-48D0-85DB-26C68B782608}"
  97. +EndProject
  98. Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenRA.Platforms.Default", "OpenRA.Platforms.Default\OpenRA.Platforms.Default.csproj", "{33D03738-C154-4028-8EA8-63A3C488A651}"
  99. EndProject
  100. Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenRA.Mods.Common", "OpenRA.Mods.Common\OpenRA.Mods.Common.csproj", "{FE6C8CC0-2F07-442A-B29F-17617B3B7FC6}"
  101. @@ -139,6 +141,10 @@
  102. {5457CBF5-4CE4-421E-A8BF-9FD6C9732E1D}.Debug|x86.Build.0 = Debug|x86
  103. {5457CBF5-4CE4-421E-A8BF-9FD6C9732E1D}.Release|x86.ActiveCfg = Release|x86
  104. {5457CBF5-4CE4-421E-A8BF-9FD6C9732E1D}.Release|x86.Build.0 = Release|x86
  105. + {7E1263D2-BA04-48D0-85DB-26C68B782608}.Debug|x86.ActiveCfg = Debug|x86
  106. + {7E1263D2-BA04-48D0-85DB-26C68B782608}.Debug|x86.Build.0 = Debug|x86
  107. + {7E1263D2-BA04-48D0-85DB-26C68B782608}.Release|x86.ActiveCfg = Release|x86
  108. + {7E1263D2-BA04-48D0-85DB-26C68B782608}.Release|x86.Build.0 = Release|x86
  109. {33D03738-C154-4028-8EA8-63A3C488A651}.Debug|x86.ActiveCfg = Debug|x86
  110. {33D03738-C154-4028-8EA8-63A3C488A651}.Debug|x86.Build.0 = Debug|x86
  111. {33D03738-C154-4028-8EA8-63A3C488A651}.Release|x86.ActiveCfg = Release|x86
  112. --- a/utility.cmd
  113. +++ b/utility.cmd
  114. @@ -16,6 +16,7 @@
  115. if /I "%mod%" EQU "ra" (goto help)
  116. if /I "%mod%" EQU "cnc" (goto help)
  117. if /I "%mod%" EQU "ts" (goto help)
  118. +if /I "%mod%" EQU "ra2" (goto help)
  119. if /I "%mod%" EQU "d2k" (goto help)
  120. echo.
  121. echo Unknown mod: %mod%