Fix newlines in misc other files.
This commit is contained in:
174
.gitignore
vendored
174
.gitignore
vendored
@@ -1,88 +1,88 @@
|
|||||||
# Visual Studio
|
# Visual Studio
|
||||||
Release
|
Release
|
||||||
bin
|
bin
|
||||||
obj
|
obj
|
||||||
*.ncb
|
*.ncb
|
||||||
*.vcproj*
|
*.vcproj*
|
||||||
*.suo
|
*.suo
|
||||||
*.user
|
*.user
|
||||||
*.sln.cache
|
*.sln.cache
|
||||||
*.manifest
|
*.manifest
|
||||||
*.CodeAnalysisLog.xml
|
*.CodeAnalysisLog.xml
|
||||||
*.lastcodeanalysissucceeded
|
*.lastcodeanalysissucceeded
|
||||||
_ReSharper.*/
|
_ReSharper.*/
|
||||||
/.vs
|
/.vs
|
||||||
|
|
||||||
# movies
|
# movies
|
||||||
*.vqa
|
*.vqa
|
||||||
|
|
||||||
# archives
|
# archives
|
||||||
*.mix
|
*.mix
|
||||||
|
|
||||||
# binaries
|
# binaries
|
||||||
mods/*/*.dll
|
mods/*/*.dll
|
||||||
mods/*/*.mdb
|
mods/*/*.mdb
|
||||||
mods/*/*.pdb
|
mods/*/*.pdb
|
||||||
/*.dll
|
/*.dll
|
||||||
/*.dll.config
|
/*.dll.config
|
||||||
/*.so
|
/*.so
|
||||||
/*.dylib
|
/*.dylib
|
||||||
/*.pdb
|
/*.pdb
|
||||||
/*.mdb
|
/*.mdb
|
||||||
/*.exe
|
/*.exe
|
||||||
thirdparty/download/*
|
thirdparty/download/*
|
||||||
*.mmdb.gz
|
*.mmdb.gz
|
||||||
|
|
||||||
# backup files by various editors
|
# backup files by various editors
|
||||||
*~
|
*~
|
||||||
*.orig
|
*.orig
|
||||||
\#*
|
\#*
|
||||||
.*.sw?
|
.*.sw?
|
||||||
|
|
||||||
# Monodevelop
|
# Monodevelop
|
||||||
*.pidb
|
*.pidb
|
||||||
*.userprefs
|
*.userprefs
|
||||||
|
|
||||||
# Mac OS X
|
# Mac OS X
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|
||||||
# XCode
|
# XCode
|
||||||
packaging/osx/launcher/build/
|
packaging/osx/launcher/build/
|
||||||
packaging/osx/launcher/OpenRA.xcodeproj/*.pbxuser
|
packaging/osx/launcher/OpenRA.xcodeproj/*.pbxuser
|
||||||
packaging/osx/launcher/OpenRA.xcodeproj/*.perspectivev3
|
packaging/osx/launcher/OpenRA.xcodeproj/*.perspectivev3
|
||||||
packaging/osx/launcher/OpenRA.xcodeproj/*.mode1v3
|
packaging/osx/launcher/OpenRA.xcodeproj/*.mode1v3
|
||||||
temp.c
|
temp.c
|
||||||
temp.o
|
temp.o
|
||||||
temp.s
|
temp.s
|
||||||
OpenRA.Launcher.Mac/build/
|
OpenRA.Launcher.Mac/build/
|
||||||
OpenRA.Launcher.Mac/OpenRA.xcodeproj/*.pbxuser
|
OpenRA.Launcher.Mac/OpenRA.xcodeproj/*.pbxuser
|
||||||
OpenRA.Launcher.Mac/OpenRA.xcodeproj/*.perspectivev3
|
OpenRA.Launcher.Mac/OpenRA.xcodeproj/*.perspectivev3
|
||||||
OpenRA.Launcher.Mac/OpenRA.xcodeproj/*.mode1v3
|
OpenRA.Launcher.Mac/OpenRA.xcodeproj/*.mode1v3
|
||||||
*.resources
|
*.resources
|
||||||
|
|
||||||
# auto-generated documentation
|
# auto-generated documentation
|
||||||
DOCUMENTATION.md
|
DOCUMENTATION.md
|
||||||
WEAPONS.md
|
WEAPONS.md
|
||||||
Lua-API.md
|
Lua-API.md
|
||||||
Settings.md
|
Settings.md
|
||||||
*.html
|
*.html
|
||||||
openra.6
|
openra.6
|
||||||
update.log
|
update.log
|
||||||
|
|
||||||
# StyleCop
|
# StyleCop
|
||||||
*.Cache
|
*.Cache
|
||||||
StyleCopViolations.xml
|
StyleCopViolations.xml
|
||||||
|
|
||||||
# SublimeText
|
# SublimeText
|
||||||
*.sublime-project
|
*.sublime-project
|
||||||
*.sublime-workspace
|
*.sublime-workspace
|
||||||
|
|
||||||
# NUnit
|
# NUnit
|
||||||
/TestResult.xml
|
/TestResult.xml
|
||||||
/lib/
|
/lib/
|
||||||
|
|
||||||
# Support directory
|
# Support directory
|
||||||
/Support
|
/Support
|
||||||
|
|
||||||
# IntelliJ files
|
# IntelliJ files
|
||||||
.idea
|
.idea
|
||||||
|
|||||||
2
AUTHORS
2
AUTHORS
@@ -44,7 +44,7 @@ Also thanks to:
|
|||||||
* Chris Grant (Unit158)
|
* Chris Grant (Unit158)
|
||||||
* clem
|
* clem
|
||||||
* Cody Brittain (Generalcamo)
|
* Cody Brittain (Generalcamo)
|
||||||
* Constantin Helmig (CH4Code)
|
* Constantin Helmig (CH4Code)
|
||||||
* D2k Sardaukar
|
* D2k Sardaukar
|
||||||
* D'Arcy Rush (r34ch)
|
* D'Arcy Rush (r34ch)
|
||||||
* Daniel Derejvanik (Harisson)
|
* Daniel Derejvanik (Harisson)
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<configuration>
|
<configuration>
|
||||||
<runtime>
|
<runtime>
|
||||||
<loadFromRemoteSources enabled="true" />
|
<loadFromRemoteSources enabled="true" />
|
||||||
</runtime>
|
</runtime>
|
||||||
</configuration>
|
</configuration>
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<configuration>
|
<configuration>
|
||||||
<runtime>
|
<runtime>
|
||||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<configuration>
|
<configuration>
|
||||||
<runtime>
|
<runtime>
|
||||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1" appliesTo="v1.0.3705">
|
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1" appliesTo="v1.0.3705">
|
||||||
<dependentAssembly>
|
<dependentAssembly>
|
||||||
<assemblyIdentity name="Microsoft.Build.Framework" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
<assemblyIdentity name="Microsoft.Build.Framework" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||||
<bindingRedirect oldVersion="0.0.0.0-100.0.0.0" newVersion="12.0.0.0" />
|
<bindingRedirect oldVersion="0.0.0.0-100.0.0.0" newVersion="12.0.0.0" />
|
||||||
</dependentAssembly>
|
</dependentAssembly>
|
||||||
</assemblyBinding>
|
</assemblyBinding>
|
||||||
</runtime>
|
</runtime>
|
||||||
</configuration>
|
</configuration>
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
|
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
|
||||||
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpCodeStyle/DEFAULT_PRIVATE_MODIFIER/@EntryValue">Implicit</s:String>
|
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpCodeStyle/DEFAULT_PRIVATE_MODIFIER/@EntryValue">Implicit</s:String>
|
||||||
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/PredefinedNamingRules/=PrivateInstanceFields/@EntryIndexedValue"><Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /></s:String>
|
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/PredefinedNamingRules/=PrivateInstanceFields/@EntryIndexedValue"><Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /></s:String>
|
||||||
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/PredefinedNamingRules/=PublicFields/@EntryIndexedValue"><Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /></s:String></wpf:ResourceDictionary>
|
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/PredefinedNamingRules/=PublicFields/@EntryIndexedValue"><Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /></s:String></wpf:ResourceDictionary>
|
||||||
154
appveyor.yml
154
appveyor.yml
@@ -1,77 +1,77 @@
|
|||||||
version: 1.0.{build}
|
version: 1.0.{build}
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
CoverityProjectToken:
|
CoverityProjectToken:
|
||||||
secure: BYP5qnptMazSCwTwgiFHlfqZd7BM3bwTRq2Cbs++ofg=
|
secure: BYP5qnptMazSCwTwgiFHlfqZd7BM3bwTRq2Cbs++ofg=
|
||||||
CoverityNotificationEmail:
|
CoverityNotificationEmail:
|
||||||
secure: 0kyu0t8QwQYUQzqguVJP3N+VpEDfET2ArP+JNnOsUELJQvH8qbeQzPTM0ga0ek5G
|
secure: 0kyu0t8QwQYUQzqguVJP3N+VpEDfET2ArP+JNnOsUELJQvH8qbeQzPTM0ga0ek5G
|
||||||
|
|
||||||
install:
|
install:
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
- thirdparty\download -> thirdparty\fetch-thirdparty-deps.ps1
|
- thirdparty\download -> thirdparty\fetch-thirdparty-deps.ps1
|
||||||
|
|
||||||
before_build:
|
before_build:
|
||||||
- make dependencies
|
- make dependencies
|
||||||
|
|
||||||
build:
|
build:
|
||||||
project: OpenRA.sln
|
project: OpenRA.sln
|
||||||
verbosity: minimal
|
verbosity: minimal
|
||||||
|
|
||||||
after_build:
|
after_build:
|
||||||
- ps: |
|
- ps: |
|
||||||
if ($env:APPVEYOR_SCHEDULED_BUILD -eq "True")
|
if ($env:APPVEYOR_SCHEDULED_BUILD -eq "True")
|
||||||
{
|
{
|
||||||
cov-build.exe --dir cov-int make all
|
cov-build.exe --dir cov-int make all
|
||||||
nuget.exe install PublishCoverity -ExcludeVersion
|
nuget.exe install PublishCoverity -ExcludeVersion
|
||||||
PublishCoverity\tools\PublishCoverity.exe compress -o coverity.zip -i cov-int
|
PublishCoverity\tools\PublishCoverity.exe compress -o coverity.zip -i cov-int
|
||||||
$version = Get-Date -format s
|
$version = Get-Date -format s
|
||||||
PublishCoverity\tools\PublishCoverity.exe publish `
|
PublishCoverity\tools\PublishCoverity.exe publish `
|
||||||
-t "$env:CoverityProjectToken" `
|
-t "$env:CoverityProjectToken" `
|
||||||
-e "$env:CoverityNotificationEmail" `
|
-e "$env:CoverityNotificationEmail" `
|
||||||
-r "$env:APPVEYOR_REPO_NAME" `
|
-r "$env:APPVEYOR_REPO_NAME" `
|
||||||
-z coverity.zip `
|
-z coverity.zip `
|
||||||
-d "AppVeyor scheduled build ($env:APPVEYOR_BUILD_VERSION)." `
|
-d "AppVeyor scheduled build ($env:APPVEYOR_BUILD_VERSION)." `
|
||||||
--codeVersion "$version"
|
--codeVersion "$version"
|
||||||
}
|
}
|
||||||
|
|
||||||
before_test:
|
before_test:
|
||||||
- ps: |
|
- ps: |
|
||||||
if ($env:APPVEYOR_SCHEDULED_BUILD -eq "True")
|
if ($env:APPVEYOR_SCHEDULED_BUILD -eq "True")
|
||||||
{
|
{
|
||||||
choco install resharper-clt -y
|
choco install resharper-clt -y
|
||||||
dupFinder /output=dupReport.xml /show-text OpenRA.sln
|
dupFinder /output=dupReport.xml /show-text OpenRA.sln
|
||||||
choco install xmlstarlet -y
|
choco install xmlstarlet -y
|
||||||
xml transform dupFinder.xslt dupReport.xml > dupReport.html
|
xml transform dupFinder.xslt dupReport.xml > dupReport.html
|
||||||
choco install pandoc -y
|
choco install pandoc -y
|
||||||
}
|
}
|
||||||
|
|
||||||
test_script:
|
test_script:
|
||||||
- nunit3-console OpenRA.Test.dll --result=myresults.xml;format=AppVeyor
|
- nunit3-console OpenRA.Test.dll --result=myresults.xml;format=AppVeyor
|
||||||
|
|
||||||
after_test:
|
after_test:
|
||||||
- appveyor DownloadFile "https://raw.githubusercontent.com/wiki/OpenRA/OpenRA/Changelog.md" -FileName Changelog.md
|
- appveyor DownloadFile "https://raw.githubusercontent.com/wiki/OpenRA/OpenRA/Changelog.md" -FileName Changelog.md
|
||||||
- make docs
|
- make docs
|
||||||
- ps: dir *.md | % {gc $_ -Raw | .\ConvertFrom-Markdown.ps1 | Out-File -FilePath "$($_.Name.TrimEnd(".md")).html"}
|
- ps: dir *.md | % {gc $_ -Raw | .\ConvertFrom-Markdown.ps1 | Out-File -FilePath "$($_.Name.TrimEnd(".md")).html"}
|
||||||
- ps: (Get-Content "${env:APPVEYOR_BUILD_FOLDER}\packaging\windows\WindowsLauncher.cs.in").replace('DISPLAY_NAME', 'Red Alert').replace('MOD_ID', 'ra').replace('FAQ_URL', 'http://wiki.openra.net/FAQ') | Set-Content "${env:APPVEYOR_BUILD_FOLDER}\packaging\windows\WindowsLauncher.cs"
|
- ps: (Get-Content "${env:APPVEYOR_BUILD_FOLDER}\packaging\windows\WindowsLauncher.cs.in").replace('DISPLAY_NAME', 'Red Alert').replace('MOD_ID', 'ra').replace('FAQ_URL', 'http://wiki.openra.net/FAQ') | Set-Content "${env:APPVEYOR_BUILD_FOLDER}\packaging\windows\WindowsLauncher.cs"
|
||||||
- ps: csc.exe /noconfig /platform:x86 /reference:System.dll /reference:System.Core.dll /reference:System.Drawing.dll /reference:System.Windows.Forms.dll /reference:"${env:APPVEYOR_BUILD_FOLDER}\OpenRA.Game.exe" /out:"${env:APPVEYOR_BUILD_FOLDER}\RedAlert.exe" /win32icon:"${env:APPVEYOR_BUILD_FOLDER}\packaging\windows\RedAlert.ico" /target:winexe ${env:APPVEYOR_BUILD_FOLDER}\packaging\windows\WindowsLauncher.cs
|
- ps: csc.exe /noconfig /platform:x86 /reference:System.dll /reference:System.Core.dll /reference:System.Drawing.dll /reference:System.Windows.Forms.dll /reference:"${env:APPVEYOR_BUILD_FOLDER}\OpenRA.Game.exe" /out:"${env:APPVEYOR_BUILD_FOLDER}\RedAlert.exe" /win32icon:"${env:APPVEYOR_BUILD_FOLDER}\packaging\windows\RedAlert.ico" /target:winexe ${env:APPVEYOR_BUILD_FOLDER}\packaging\windows\WindowsLauncher.cs
|
||||||
- ps: (Get-Content "${env:APPVEYOR_BUILD_FOLDER}\packaging\windows\WindowsLauncher.cs.in").replace('DISPLAY_NAME', 'Tiberian Dawn').replace('MOD_ID', 'cnc').replace('FAQ_URL', 'http://wiki.openra.net/FAQ') | Set-Content "${env:APPVEYOR_BUILD_FOLDER}\packaging\windows\WindowsLauncher.cs"
|
- ps: (Get-Content "${env:APPVEYOR_BUILD_FOLDER}\packaging\windows\WindowsLauncher.cs.in").replace('DISPLAY_NAME', 'Tiberian Dawn').replace('MOD_ID', 'cnc').replace('FAQ_URL', 'http://wiki.openra.net/FAQ') | Set-Content "${env:APPVEYOR_BUILD_FOLDER}\packaging\windows\WindowsLauncher.cs"
|
||||||
- ps: csc.exe /noconfig /platform:x86 /reference:System.dll /reference:System.Core.dll /reference:System.Drawing.dll /reference:System.Windows.Forms.dll /reference:"${env:APPVEYOR_BUILD_FOLDER}\OpenRA.Game.exe" /out:"${env:APPVEYOR_BUILD_FOLDER}\TiberianDawn.exe" /win32icon:"${env:APPVEYOR_BUILD_FOLDER}\packaging\windows\TiberianDawn.ico" /target:winexe ${env:APPVEYOR_BUILD_FOLDER}\packaging\windows\WindowsLauncher.cs
|
- ps: csc.exe /noconfig /platform:x86 /reference:System.dll /reference:System.Core.dll /reference:System.Drawing.dll /reference:System.Windows.Forms.dll /reference:"${env:APPVEYOR_BUILD_FOLDER}\OpenRA.Game.exe" /out:"${env:APPVEYOR_BUILD_FOLDER}\TiberianDawn.exe" /win32icon:"${env:APPVEYOR_BUILD_FOLDER}\packaging\windows\TiberianDawn.ico" /target:winexe ${env:APPVEYOR_BUILD_FOLDER}\packaging\windows\WindowsLauncher.cs
|
||||||
- ps: (Get-Content "${env:APPVEYOR_BUILD_FOLDER}\packaging\windows\WindowsLauncher.cs.in").replace('DISPLAY_NAME', 'Dune 2000').replace('MOD_ID', 'd2k').replace('FAQ_URL', 'http://wiki.openra.net/FAQ') | Set-Content "${env:APPVEYOR_BUILD_FOLDER}\packaging\windows\WindowsLauncher.cs"
|
- ps: (Get-Content "${env:APPVEYOR_BUILD_FOLDER}\packaging\windows\WindowsLauncher.cs.in").replace('DISPLAY_NAME', 'Dune 2000').replace('MOD_ID', 'd2k').replace('FAQ_URL', 'http://wiki.openra.net/FAQ') | Set-Content "${env:APPVEYOR_BUILD_FOLDER}\packaging\windows\WindowsLauncher.cs"
|
||||||
- ps: csc.exe /noconfig /platform:x86 /reference:System.dll /reference:System.Core.dll /reference:System.Drawing.dll /reference:System.Windows.Forms.dll /reference:"${env:APPVEYOR_BUILD_FOLDER}\OpenRA.Game.exe" /out:"${env:APPVEYOR_BUILD_FOLDER}\Dune2000.exe" /win32icon:"${env:APPVEYOR_BUILD_FOLDER}\packaging\windows\Dune2000.ico" /target:winexe ${env:APPVEYOR_BUILD_FOLDER}\packaging\windows\WindowsLauncher.cs
|
- ps: csc.exe /noconfig /platform:x86 /reference:System.dll /reference:System.Core.dll /reference:System.Drawing.dll /reference:System.Windows.Forms.dll /reference:"${env:APPVEYOR_BUILD_FOLDER}\OpenRA.Game.exe" /out:"${env:APPVEYOR_BUILD_FOLDER}\Dune2000.exe" /win32icon:"${env:APPVEYOR_BUILD_FOLDER}\packaging\windows\Dune2000.ico" /target:winexe ${env:APPVEYOR_BUILD_FOLDER}\packaging\windows\WindowsLauncher.cs
|
||||||
- ps: cp packaging\windows\OpenRA.ico .
|
- ps: cp packaging\windows\OpenRA.ico .
|
||||||
- ps: cp packaging\windows\RedAlert.ico .
|
- ps: cp packaging\windows\RedAlert.ico .
|
||||||
- ps: cp packaging\windows\TiberianDawn.ico .
|
- ps: cp packaging\windows\TiberianDawn.ico .
|
||||||
- ps: cp packaging\windows\Dune2000.ico .
|
- ps: cp packaging\windows\Dune2000.ico .
|
||||||
- if defined APPVEYOR_REPO_TAG_NAME set VERSION=%APPVEYOR_REPO_TAG_NAME%
|
- if defined APPVEYOR_REPO_TAG_NAME set VERSION=%APPVEYOR_REPO_TAG_NAME%
|
||||||
- if not defined APPVEYOR_REPO_TAG_NAME set VERSION=%APPVEYOR_REPO_COMMIT:~0,7%
|
- if not defined APPVEYOR_REPO_TAG_NAME set VERSION=%APPVEYOR_REPO_COMMIT:~0,7%
|
||||||
- '"C:\Program Files (x86)\NSIS\makensis.exe" /DSRCDIR="%APPVEYOR_BUILD_FOLDER%" /DDEPSDIR="%APPVEYOR_BUILD_FOLDER%\thirdparty\download\windows" /DTAG="git-%VERSION%" /DSUFFIX=" (dev)" /V3 packaging/windows/OpenRA.nsi'
|
- '"C:\Program Files (x86)\NSIS\makensis.exe" /DSRCDIR="%APPVEYOR_BUILD_FOLDER%" /DDEPSDIR="%APPVEYOR_BUILD_FOLDER%\thirdparty\download\windows" /DTAG="git-%VERSION%" /DSUFFIX=" (dev)" /V3 packaging/windows/OpenRA.nsi'
|
||||||
- move /Y %APPVEYOR_BUILD_FOLDER%\packaging\windows\OpenRA.Setup.exe %APPVEYOR_BUILD_FOLDER%\OpenRA-%VERSION%.exe
|
- move /Y %APPVEYOR_BUILD_FOLDER%\packaging\windows\OpenRA.Setup.exe %APPVEYOR_BUILD_FOLDER%\OpenRA-%VERSION%.exe
|
||||||
|
|
||||||
artifacts:
|
artifacts:
|
||||||
- path: OpenRA-$(VERSION).exe
|
- path: OpenRA-$(VERSION).exe
|
||||||
name: Installer
|
name: Installer
|
||||||
- path: coverity.zip
|
- path: coverity.zip
|
||||||
name: Coverity Build
|
name: Coverity Build
|
||||||
- path: dupReport.html
|
- path: dupReport.html
|
||||||
name: dupFinder Report
|
name: dupFinder Report
|
||||||
|
|||||||
@@ -1,17 +1,17 @@
|
|||||||
:: example launch script, see https://github.com/OpenRA/OpenRA/wiki/Dedicated for details
|
:: example launch script, see https://github.com/OpenRA/OpenRA/wiki/Dedicated for details
|
||||||
|
|
||||||
@echo on
|
@echo on
|
||||||
|
|
||||||
set Name="Dedicated Server"
|
set Name="Dedicated Server"
|
||||||
set Mod=ra
|
set Mod=ra
|
||||||
set ListenPort=1234
|
set ListenPort=1234
|
||||||
set ExternalPort=1234
|
set ExternalPort=1234
|
||||||
set AdvertiseOnline=True
|
set AdvertiseOnline=True
|
||||||
set EnableSingleplayer=False
|
set EnableSingleplayer=False
|
||||||
set Password=""
|
set Password=""
|
||||||
|
|
||||||
:loop
|
:loop
|
||||||
|
|
||||||
OpenRA.Server.exe Game.Mod=%Mod% Server.Name=%Name% Server.ListenPort=%ListenPort% Server.ExternalPort=%ExternalPort% Server.AdvertiseOnline=%AdvertiseOnline% Server.EnableSingleplayer=%EnableSingleplayer% Server.Password=%Password%
|
OpenRA.Server.exe Game.Mod=%Mod% Server.Name=%Name% Server.ListenPort=%ListenPort% Server.ExternalPort=%ExternalPort% Server.AdvertiseOnline=%AdvertiseOnline% Server.EnableSingleplayer=%EnableSingleplayer% Server.Password=%Password%
|
||||||
|
|
||||||
goto loop
|
goto loop
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
Palettes:
|
Palettes:
|
||||||
cursor: cursor.pal
|
cursor: cursor.pal
|
||||||
|
|
||||||
Cursors:
|
Cursors:
|
||||||
|
|||||||
@@ -1,305 +1,305 @@
|
|||||||
; Copyright 2007-2018 OpenRA developers (see AUTHORS)
|
; Copyright 2007-2018 OpenRA developers (see AUTHORS)
|
||||||
; This file is part of OpenRA.
|
; This file is part of OpenRA.
|
||||||
;
|
;
|
||||||
; OpenRA is free software: you can redistribute it and/or modify
|
; OpenRA is free software: you can redistribute it and/or modify
|
||||||
; it under the terms of the GNU General Public License as published by
|
; it under the terms of the GNU General Public License as published by
|
||||||
; the Free Software Foundation, either version 3 of the License, or
|
; the Free Software Foundation, either version 3 of the License, or
|
||||||
; (at your option) any later version.
|
; (at your option) any later version.
|
||||||
;
|
;
|
||||||
; OpenRA is distributed in the hope that it will be useful,
|
; OpenRA is distributed in the hope that it will be useful,
|
||||||
; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
; GNU General Public License for more details.
|
; GNU General Public License for more details.
|
||||||
;
|
;
|
||||||
; You should have received a copy of the GNU General Public License
|
; You should have received a copy of the GNU General Public License
|
||||||
; along with OpenRA. If not, see <http://www.gnu.org/licenses/>.
|
; along with OpenRA. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|
||||||
!include "MUI2.nsh"
|
!include "MUI2.nsh"
|
||||||
!include "FileFunc.nsh"
|
!include "FileFunc.nsh"
|
||||||
!include "WordFunc.nsh"
|
!include "WordFunc.nsh"
|
||||||
|
|
||||||
Name "OpenRA"
|
Name "OpenRA"
|
||||||
OutFile "OpenRA.Setup.exe"
|
OutFile "OpenRA.Setup.exe"
|
||||||
|
|
||||||
InstallDir "$PROGRAMFILES\OpenRA${SUFFIX}"
|
InstallDir "$PROGRAMFILES\OpenRA${SUFFIX}"
|
||||||
InstallDirRegKey HKLM "Software\OpenRA${SUFFIX}" "InstallDir"
|
InstallDirRegKey HKLM "Software\OpenRA${SUFFIX}" "InstallDir"
|
||||||
|
|
||||||
SetCompressor lzma
|
SetCompressor lzma
|
||||||
RequestExecutionLevel admin
|
RequestExecutionLevel admin
|
||||||
|
|
||||||
!insertmacro MUI_PAGE_WELCOME
|
!insertmacro MUI_PAGE_WELCOME
|
||||||
!insertmacro MUI_PAGE_LICENSE "${SRCDIR}\COPYING"
|
!insertmacro MUI_PAGE_LICENSE "${SRCDIR}\COPYING"
|
||||||
!insertmacro MUI_PAGE_DIRECTORY
|
!insertmacro MUI_PAGE_DIRECTORY
|
||||||
|
|
||||||
!define MUI_STARTMENUPAGE_REGISTRY_ROOT "HKLM"
|
!define MUI_STARTMENUPAGE_REGISTRY_ROOT "HKLM"
|
||||||
!define MUI_STARTMENUPAGE_REGISTRY_KEY "Software\OpenRA${SUFFIX}"
|
!define MUI_STARTMENUPAGE_REGISTRY_KEY "Software\OpenRA${SUFFIX}"
|
||||||
!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "Start Menu Folder"
|
!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "Start Menu Folder"
|
||||||
!define MUI_STARTMENUPAGE_DEFAULTFOLDER "OpenRA"
|
!define MUI_STARTMENUPAGE_DEFAULTFOLDER "OpenRA"
|
||||||
|
|
||||||
Var StartMenuFolder
|
Var StartMenuFolder
|
||||||
!insertmacro MUI_PAGE_STARTMENU Application $StartMenuFolder
|
!insertmacro MUI_PAGE_STARTMENU Application $StartMenuFolder
|
||||||
|
|
||||||
!insertmacro MUI_PAGE_COMPONENTS
|
!insertmacro MUI_PAGE_COMPONENTS
|
||||||
!insertmacro MUI_PAGE_INSTFILES
|
!insertmacro MUI_PAGE_INSTFILES
|
||||||
|
|
||||||
!insertmacro MUI_UNPAGE_CONFIRM
|
!insertmacro MUI_UNPAGE_CONFIRM
|
||||||
!insertmacro MUI_UNPAGE_INSTFILES
|
!insertmacro MUI_UNPAGE_INSTFILES
|
||||||
!insertmacro MUI_UNPAGE_FINISH
|
!insertmacro MUI_UNPAGE_FINISH
|
||||||
|
|
||||||
!insertmacro MUI_LANGUAGE "English"
|
!insertmacro MUI_LANGUAGE "English"
|
||||||
|
|
||||||
;***************************
|
;***************************
|
||||||
;Section Definitions
|
;Section Definitions
|
||||||
;***************************
|
;***************************
|
||||||
Section "-Reg" Reg
|
Section "-Reg" Reg
|
||||||
|
|
||||||
; Installation directory
|
; Installation directory
|
||||||
WriteRegStr HKLM "Software\OpenRA${SUFFIX}" "InstallDir" $INSTDIR
|
WriteRegStr HKLM "Software\OpenRA${SUFFIX}" "InstallDir" $INSTDIR
|
||||||
|
|
||||||
; Join server URL Scheme
|
; Join server URL Scheme
|
||||||
WriteRegStr HKLM "Software\Classes\openra-ra-${TAG}" "" "URL:Join OpenRA server"
|
WriteRegStr HKLM "Software\Classes\openra-ra-${TAG}" "" "URL:Join OpenRA server"
|
||||||
WriteRegStr HKLM "Software\Classes\openra-ra-${TAG}" "URL Protocol" ""
|
WriteRegStr HKLM "Software\Classes\openra-ra-${TAG}" "URL Protocol" ""
|
||||||
WriteRegStr HKLM "Software\Classes\openra-ra-${TAG}\DefaultIcon" "" "$INSTDIR\RedAlert.ico,0"
|
WriteRegStr HKLM "Software\Classes\openra-ra-${TAG}\DefaultIcon" "" "$INSTDIR\RedAlert.ico,0"
|
||||||
WriteRegStr HKLM "Software\Classes\openra-ra-${TAG}\Shell\Open\Command" "" "$INSTDIR\RedAlert.exe Launch.URI=%1"
|
WriteRegStr HKLM "Software\Classes\openra-ra-${TAG}\Shell\Open\Command" "" "$INSTDIR\RedAlert.exe Launch.URI=%1"
|
||||||
|
|
||||||
WriteRegStr HKLM "Software\Classes\openra-cnc-${TAG}" "" "URL:Join OpenRA server"
|
WriteRegStr HKLM "Software\Classes\openra-cnc-${TAG}" "" "URL:Join OpenRA server"
|
||||||
WriteRegStr HKLM "Software\Classes\openra-cnc-${TAG}" "URL Protocol" ""
|
WriteRegStr HKLM "Software\Classes\openra-cnc-${TAG}" "URL Protocol" ""
|
||||||
WriteRegStr HKLM "Software\Classes\openra-cnc-${TAG}\DefaultIcon" "" "$INSTDIR\TiberianDawn.ico,0"
|
WriteRegStr HKLM "Software\Classes\openra-cnc-${TAG}\DefaultIcon" "" "$INSTDIR\TiberianDawn.ico,0"
|
||||||
WriteRegStr HKLM "Software\Classes\openra-cnc-${TAG}\Shell\Open\Command" "" "$INSTDIR\TiberianDawn.exe Launch.URI=%1"
|
WriteRegStr HKLM "Software\Classes\openra-cnc-${TAG}\Shell\Open\Command" "" "$INSTDIR\TiberianDawn.exe Launch.URI=%1"
|
||||||
|
|
||||||
WriteRegStr HKLM "Software\Classes\openra-d2k-${TAG}" "" "URL:Join OpenRA server"
|
WriteRegStr HKLM "Software\Classes\openra-d2k-${TAG}" "" "URL:Join OpenRA server"
|
||||||
WriteRegStr HKLM "Software\Classes\openra-d2k-${TAG}" "URL Protocol" ""
|
WriteRegStr HKLM "Software\Classes\openra-d2k-${TAG}" "URL Protocol" ""
|
||||||
WriteRegStr HKLM "Software\Classes\openra-d2k-${TAG}\DefaultIcon" "" "$INSTDIR\Dune2000.ico,0"
|
WriteRegStr HKLM "Software\Classes\openra-d2k-${TAG}\DefaultIcon" "" "$INSTDIR\Dune2000.ico,0"
|
||||||
WriteRegStr HKLM "Software\Classes\openra-d2k-${TAG}\Shell\Open\Command" "" "$INSTDIR\Dune2000.exe Launch.URI=%1"
|
WriteRegStr HKLM "Software\Classes\openra-d2k-${TAG}\Shell\Open\Command" "" "$INSTDIR\Dune2000.exe Launch.URI=%1"
|
||||||
|
|
||||||
; Remove obsolete file associations
|
; Remove obsolete file associations
|
||||||
DeleteRegKey HKLM "Software\Classes\.orarep"
|
DeleteRegKey HKLM "Software\Classes\.orarep"
|
||||||
DeleteRegKey HKLM "Software\Classes\OpenRA_replay"
|
DeleteRegKey HKLM "Software\Classes\OpenRA_replay"
|
||||||
DeleteRegKey HKLM "Software\Classes\.oramod"
|
DeleteRegKey HKLM "Software\Classes\.oramod"
|
||||||
DeleteRegKey HKLM "Software\Classes\OpenRA_mod"
|
DeleteRegKey HKLM "Software\Classes\OpenRA_mod"
|
||||||
DeleteRegKey HKLM "Software\Classes\openra"
|
DeleteRegKey HKLM "Software\Classes\openra"
|
||||||
|
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
Section "Game" GAME
|
Section "Game" GAME
|
||||||
SectionIn RO
|
SectionIn RO
|
||||||
|
|
||||||
RMDir /r "$INSTDIR\mods"
|
RMDir /r "$INSTDIR\mods"
|
||||||
SetOutPath "$INSTDIR\mods"
|
SetOutPath "$INSTDIR\mods"
|
||||||
File /r "${SRCDIR}\mods\common"
|
File /r "${SRCDIR}\mods\common"
|
||||||
File /r "${SRCDIR}\mods\cnc"
|
File /r "${SRCDIR}\mods\cnc"
|
||||||
File /r "${SRCDIR}\mods\d2k"
|
File /r "${SRCDIR}\mods\d2k"
|
||||||
File /r "${SRCDIR}\mods\ra"
|
File /r "${SRCDIR}\mods\ra"
|
||||||
File /r "${SRCDIR}\mods\modcontent"
|
File /r "${SRCDIR}\mods\modcontent"
|
||||||
|
|
||||||
SetOutPath "$INSTDIR"
|
SetOutPath "$INSTDIR"
|
||||||
File "${SRCDIR}\RedAlert.exe"
|
File "${SRCDIR}\RedAlert.exe"
|
||||||
File "${SRCDIR}\TiberianDawn.exe"
|
File "${SRCDIR}\TiberianDawn.exe"
|
||||||
File "${SRCDIR}\Dune2000.exe"
|
File "${SRCDIR}\Dune2000.exe"
|
||||||
File "${SRCDIR}\OpenRA.Game.exe"
|
File "${SRCDIR}\OpenRA.Game.exe"
|
||||||
File "${SRCDIR}\OpenRA.Game.exe.config"
|
File "${SRCDIR}\OpenRA.Game.exe.config"
|
||||||
File "${SRCDIR}\OpenRA.Utility.exe"
|
File "${SRCDIR}\OpenRA.Utility.exe"
|
||||||
File "${SRCDIR}\OpenRA.Server.exe"
|
File "${SRCDIR}\OpenRA.Server.exe"
|
||||||
File "${SRCDIR}\OpenRA.Platforms.Default.dll"
|
File "${SRCDIR}\OpenRA.Platforms.Default.dll"
|
||||||
File "${SRCDIR}\ICSharpCode.SharpZipLib.dll"
|
File "${SRCDIR}\ICSharpCode.SharpZipLib.dll"
|
||||||
File "${SRCDIR}\FuzzyLogicLibrary.dll"
|
File "${SRCDIR}\FuzzyLogicLibrary.dll"
|
||||||
File "${SRCDIR}\Open.Nat.dll"
|
File "${SRCDIR}\Open.Nat.dll"
|
||||||
File "${SRCDIR}\VERSION"
|
File "${SRCDIR}\VERSION"
|
||||||
File "${SRCDIR}\AUTHORS"
|
File "${SRCDIR}\AUTHORS"
|
||||||
File "${SRCDIR}\COPYING"
|
File "${SRCDIR}\COPYING"
|
||||||
File "${SRCDIR}\README.html"
|
File "${SRCDIR}\README.html"
|
||||||
File "${SRCDIR}\CHANGELOG.html"
|
File "${SRCDIR}\CHANGELOG.html"
|
||||||
File "${SRCDIR}\CONTRIBUTING.html"
|
File "${SRCDIR}\CONTRIBUTING.html"
|
||||||
File "${SRCDIR}\OpenRA.ico"
|
File "${SRCDIR}\OpenRA.ico"
|
||||||
File "${SRCDIR}\RedAlert.ico"
|
File "${SRCDIR}\RedAlert.ico"
|
||||||
File "${SRCDIR}\TiberianDawn.ico"
|
File "${SRCDIR}\TiberianDawn.ico"
|
||||||
File "${SRCDIR}\Dune2000.ico"
|
File "${SRCDIR}\Dune2000.ico"
|
||||||
File "${SRCDIR}\SharpFont.dll"
|
File "${SRCDIR}\SharpFont.dll"
|
||||||
File "${SRCDIR}\SDL2-CS.dll"
|
File "${SRCDIR}\SDL2-CS.dll"
|
||||||
File "${SRCDIR}\OpenAL-CS.dll"
|
File "${SRCDIR}\OpenAL-CS.dll"
|
||||||
File "${SRCDIR}\global mix database.dat"
|
File "${SRCDIR}\global mix database.dat"
|
||||||
File "${SRCDIR}\MaxMind.Db.dll"
|
File "${SRCDIR}\MaxMind.Db.dll"
|
||||||
File "${SRCDIR}\GeoLite2-Country.mmdb.gz"
|
File "${SRCDIR}\GeoLite2-Country.mmdb.gz"
|
||||||
File "${SRCDIR}\eluant.dll"
|
File "${SRCDIR}\eluant.dll"
|
||||||
File "${SRCDIR}\rix0rrr.BeaconLib.dll"
|
File "${SRCDIR}\rix0rrr.BeaconLib.dll"
|
||||||
File "${DEPSDIR}\soft_oal.dll"
|
File "${DEPSDIR}\soft_oal.dll"
|
||||||
File "${DEPSDIR}\SDL2.dll"
|
File "${DEPSDIR}\SDL2.dll"
|
||||||
File "${DEPSDIR}\freetype6.dll"
|
File "${DEPSDIR}\freetype6.dll"
|
||||||
File "${DEPSDIR}\lua51.dll"
|
File "${DEPSDIR}\lua51.dll"
|
||||||
|
|
||||||
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
|
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
|
||||||
CreateDirectory "$SMPROGRAMS\$StartMenuFolder"
|
CreateDirectory "$SMPROGRAMS\$StartMenuFolder"
|
||||||
CreateShortCut "$SMPROGRAMS\$StartMenuFolder\Red Alert${SUFFIX}.lnk" $OUTDIR\RedAlert.exe "" \
|
CreateShortCut "$SMPROGRAMS\$StartMenuFolder\Red Alert${SUFFIX}.lnk" $OUTDIR\RedAlert.exe "" \
|
||||||
"$OUTDIR\RedAlert.exe" "" "" "" ""
|
"$OUTDIR\RedAlert.exe" "" "" "" ""
|
||||||
CreateShortCut "$SMPROGRAMS\$StartMenuFolder\Tiberian Dawn${SUFFIX}.lnk" $OUTDIR\TiberianDawn.exe "" \
|
CreateShortCut "$SMPROGRAMS\$StartMenuFolder\Tiberian Dawn${SUFFIX}.lnk" $OUTDIR\TiberianDawn.exe "" \
|
||||||
"$OUTDIR\TiberianDawn.exe" "" "" "" ""
|
"$OUTDIR\TiberianDawn.exe" "" "" "" ""
|
||||||
CreateShortCut "$SMPROGRAMS\$StartMenuFolder\Dune 2000${SUFFIX}.lnk" $OUTDIR\Dune2000.exe "" \
|
CreateShortCut "$SMPROGRAMS\$StartMenuFolder\Dune 2000${SUFFIX}.lnk" $OUTDIR\Dune2000.exe "" \
|
||||||
"$OUTDIR\Dune2000.exe" "" "" "" ""
|
"$OUTDIR\Dune2000.exe" "" "" "" ""
|
||||||
!insertmacro MUI_STARTMENU_WRITE_END
|
!insertmacro MUI_STARTMENU_WRITE_END
|
||||||
|
|
||||||
SetOutPath "$INSTDIR\lua"
|
SetOutPath "$INSTDIR\lua"
|
||||||
File "${SRCDIR}\lua\*.lua"
|
File "${SRCDIR}\lua\*.lua"
|
||||||
|
|
||||||
SetOutPath "$INSTDIR\glsl"
|
SetOutPath "$INSTDIR\glsl"
|
||||||
File "${SRCDIR}\glsl\*.frag"
|
File "${SRCDIR}\glsl\*.frag"
|
||||||
File "${SRCDIR}\glsl\*.vert"
|
File "${SRCDIR}\glsl\*.vert"
|
||||||
|
|
||||||
; Estimated install size for the control panel properties
|
; Estimated install size for the control panel properties
|
||||||
${GetSize} "$INSTDIR" "/S=0K" $0 $1 $2
|
${GetSize} "$INSTDIR" "/S=0K" $0 $1 $2
|
||||||
IntFmt $0 "0x%08X" $0
|
IntFmt $0 "0x%08X" $0
|
||||||
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenRA${SUFFIX}" "EstimatedSize" "$0"
|
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenRA${SUFFIX}" "EstimatedSize" "$0"
|
||||||
|
|
||||||
SetShellVarContext all
|
SetShellVarContext all
|
||||||
CreateDirectory "$APPDATA\OpenRA\ModMetadata"
|
CreateDirectory "$APPDATA\OpenRA\ModMetadata"
|
||||||
nsExec::ExecToLog '"$INSTDIR\OpenRA.Utility.exe" ra --register-mod "$INSTDIR\RedAlert.exe" system'
|
nsExec::ExecToLog '"$INSTDIR\OpenRA.Utility.exe" ra --register-mod "$INSTDIR\RedAlert.exe" system'
|
||||||
nsExec::ExecToLog '"$INSTDIR\OpenRA.Utility.exe" ra --clear-invalid-mod-registrations system'
|
nsExec::ExecToLog '"$INSTDIR\OpenRA.Utility.exe" ra --clear-invalid-mod-registrations system'
|
||||||
nsExec::ExecToLog '"$INSTDIR\OpenRA.Utility.exe" cnc --register-mod "$INSTDIR\TiberianDawn.exe" system'
|
nsExec::ExecToLog '"$INSTDIR\OpenRA.Utility.exe" cnc --register-mod "$INSTDIR\TiberianDawn.exe" system'
|
||||||
nsExec::ExecToLog '"$INSTDIR\OpenRA.Utility.exe" cnc --clear-invalid-mod-registrations system'
|
nsExec::ExecToLog '"$INSTDIR\OpenRA.Utility.exe" cnc --clear-invalid-mod-registrations system'
|
||||||
nsExec::ExecToLog '"$INSTDIR\OpenRA.Utility.exe" d2k --register-mod "$INSTDIR\Dune2000.exe" system'
|
nsExec::ExecToLog '"$INSTDIR\OpenRA.Utility.exe" d2k --register-mod "$INSTDIR\Dune2000.exe" system'
|
||||||
nsExec::ExecToLog '"$INSTDIR\OpenRA.Utility.exe" d2k --clear-invalid-mod-registrations system'
|
nsExec::ExecToLog '"$INSTDIR\OpenRA.Utility.exe" d2k --clear-invalid-mod-registrations system'
|
||||||
SetShellVarContext current
|
SetShellVarContext current
|
||||||
|
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
Section "Desktop Shortcut" DESKTOPSHORTCUT
|
Section "Desktop Shortcut" DESKTOPSHORTCUT
|
||||||
SetOutPath "$INSTDIR"
|
SetOutPath "$INSTDIR"
|
||||||
CreateShortCut "$DESKTOP\OpenRA - Red Alert${SUFFIX}.lnk" $INSTDIR\RedAlert.exe "" \
|
CreateShortCut "$DESKTOP\OpenRA - Red Alert${SUFFIX}.lnk" $INSTDIR\RedAlert.exe "" \
|
||||||
"$INSTDIR\RedAlert.exe" "" "" "" ""
|
"$INSTDIR\RedAlert.exe" "" "" "" ""
|
||||||
CreateShortCut "$DESKTOP\OpenRA - Tiberian Dawn${SUFFIX}.lnk" $INSTDIR\TiberianDawn.exe "" \
|
CreateShortCut "$DESKTOP\OpenRA - Tiberian Dawn${SUFFIX}.lnk" $INSTDIR\TiberianDawn.exe "" \
|
||||||
"$INSTDIR\TiberianDawn.exe" "" "" "" ""
|
"$INSTDIR\TiberianDawn.exe" "" "" "" ""
|
||||||
CreateShortCut "$DESKTOP\OpenRA - Dune 2000${SUFFIX}.lnk" $INSTDIR\Dune2000.exe "" \
|
CreateShortCut "$DESKTOP\OpenRA - Dune 2000${SUFFIX}.lnk" $INSTDIR\Dune2000.exe "" \
|
||||||
"$INSTDIR\Dune2000.exe" "" "" "" ""
|
"$INSTDIR\Dune2000.exe" "" "" "" ""
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
;***************************
|
;***************************
|
||||||
;Dependency Sections
|
;Dependency Sections
|
||||||
;***************************
|
;***************************
|
||||||
Section "-DotNet" DotNet
|
Section "-DotNet" DotNet
|
||||||
ClearErrors
|
ClearErrors
|
||||||
ReadRegDWORD $0 HKLM "SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Client" "Install"
|
ReadRegDWORD $0 HKLM "SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Client" "Install"
|
||||||
IfErrors error 0
|
IfErrors error 0
|
||||||
IntCmp $0 1 0 error 0
|
IntCmp $0 1 0 error 0
|
||||||
ClearErrors
|
ClearErrors
|
||||||
ReadRegDWORD $0 HKLM "SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full" "Install"
|
ReadRegDWORD $0 HKLM "SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full" "Install"
|
||||||
IfErrors error 0
|
IfErrors error 0
|
||||||
IntCmp $0 1 done error done
|
IntCmp $0 1 done error done
|
||||||
error:
|
error:
|
||||||
MessageBox MB_OK ".NET Framework v4.5 or later is required to run OpenRA."
|
MessageBox MB_OK ".NET Framework v4.5 or later is required to run OpenRA."
|
||||||
Abort
|
Abort
|
||||||
done:
|
done:
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
;***************************
|
;***************************
|
||||||
;Uninstaller Sections
|
;Uninstaller Sections
|
||||||
;***************************
|
;***************************
|
||||||
Section "-Uninstaller"
|
Section "-Uninstaller"
|
||||||
WriteUninstaller $INSTDIR\uninstaller.exe
|
WriteUninstaller $INSTDIR\uninstaller.exe
|
||||||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenRA${SUFFIX}" "DisplayName" "OpenRA${SUFFIX}"
|
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenRA${SUFFIX}" "DisplayName" "OpenRA${SUFFIX}"
|
||||||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenRA${SUFFIX}" "UninstallString" "$INSTDIR\uninstaller.exe"
|
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenRA${SUFFIX}" "UninstallString" "$INSTDIR\uninstaller.exe"
|
||||||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenRA${SUFFIX}" "QuietUninstallString" "$\"$INSTDIR\uninstall.exe$\" /S"
|
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenRA${SUFFIX}" "QuietUninstallString" "$\"$INSTDIR\uninstall.exe$\" /S"
|
||||||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenRA${SUFFIX}" "InstallLocation" "$INSTDIR"
|
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenRA${SUFFIX}" "InstallLocation" "$INSTDIR"
|
||||||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenRA${SUFFIX}" "DisplayIcon" "$INSTDIR\OpenRA.ico"
|
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenRA${SUFFIX}" "DisplayIcon" "$INSTDIR\OpenRA.ico"
|
||||||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenRA${SUFFIX}" "Publisher" "OpenRA developers"
|
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenRA${SUFFIX}" "Publisher" "OpenRA developers"
|
||||||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenRA${SUFFIX}" "URLInfoAbout" "http://openra.net"
|
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenRA${SUFFIX}" "URLInfoAbout" "http://openra.net"
|
||||||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenRA${SUFFIX}" "Readme" "$INSTDIR\README.html"
|
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenRA${SUFFIX}" "Readme" "$INSTDIR\README.html"
|
||||||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenRA${SUFFIX}" "DisplayVersion" "${TAG}"
|
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenRA${SUFFIX}" "DisplayVersion" "${TAG}"
|
||||||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenRA${SUFFIX}" "NoModify" "1"
|
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenRA${SUFFIX}" "NoModify" "1"
|
||||||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenRA${SUFFIX}" "NoRepair" "1"
|
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenRA${SUFFIX}" "NoRepair" "1"
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
!macro Clean UN
|
!macro Clean UN
|
||||||
Function ${UN}Clean
|
Function ${UN}Clean
|
||||||
nsExec::ExecToLog '"$INSTDIR\OpenRA.Utility.exe" ra --unregister-mod system'
|
nsExec::ExecToLog '"$INSTDIR\OpenRA.Utility.exe" ra --unregister-mod system'
|
||||||
nsExec::ExecToLog '"$INSTDIR\OpenRA.Utility.exe" cnc --unregister-mod system'
|
nsExec::ExecToLog '"$INSTDIR\OpenRA.Utility.exe" cnc --unregister-mod system'
|
||||||
nsExec::ExecToLog '"$INSTDIR\OpenRA.Utility.exe" d2k --unregister-mod system'
|
nsExec::ExecToLog '"$INSTDIR\OpenRA.Utility.exe" d2k --unregister-mod system'
|
||||||
|
|
||||||
RMDir /r $INSTDIR\mods
|
RMDir /r $INSTDIR\mods
|
||||||
RMDir /r $INSTDIR\maps
|
RMDir /r $INSTDIR\maps
|
||||||
RMDir /r $INSTDIR\glsl
|
RMDir /r $INSTDIR\glsl
|
||||||
RMDir /r $INSTDIR\lua
|
RMDir /r $INSTDIR\lua
|
||||||
Delete $INSTDIR\RedAlert.exe
|
Delete $INSTDIR\RedAlert.exe
|
||||||
Delete $INSTDIR\TiberianDawn.exe
|
Delete $INSTDIR\TiberianDawn.exe
|
||||||
Delete $INSTDIR\Dune2000.exe
|
Delete $INSTDIR\Dune2000.exe
|
||||||
Delete $INSTDIR\OpenRA.Game.exe
|
Delete $INSTDIR\OpenRA.Game.exe
|
||||||
Delete $INSTDIR\OpenRA.Game.exe.config
|
Delete $INSTDIR\OpenRA.Game.exe.config
|
||||||
Delete $INSTDIR\OpenRA.Utility.exe
|
Delete $INSTDIR\OpenRA.Utility.exe
|
||||||
Delete $INSTDIR\OpenRA.Server.exe
|
Delete $INSTDIR\OpenRA.Server.exe
|
||||||
Delete $INSTDIR\OpenRA.Platforms.Default.dll
|
Delete $INSTDIR\OpenRA.Platforms.Default.dll
|
||||||
Delete $INSTDIR\ICSharpCode.SharpZipLib.dll
|
Delete $INSTDIR\ICSharpCode.SharpZipLib.dll
|
||||||
Delete $INSTDIR\FuzzyLogicLibrary.dll
|
Delete $INSTDIR\FuzzyLogicLibrary.dll
|
||||||
Delete $INSTDIR\Open.Nat.dll
|
Delete $INSTDIR\Open.Nat.dll
|
||||||
Delete $INSTDIR\SharpFont.dll
|
Delete $INSTDIR\SharpFont.dll
|
||||||
Delete $INSTDIR\VERSION
|
Delete $INSTDIR\VERSION
|
||||||
Delete $INSTDIR\AUTHORS
|
Delete $INSTDIR\AUTHORS
|
||||||
Delete $INSTDIR\COPYING
|
Delete $INSTDIR\COPYING
|
||||||
Delete $INSTDIR\README.html
|
Delete $INSTDIR\README.html
|
||||||
Delete $INSTDIR\CHANGELOG.html
|
Delete $INSTDIR\CHANGELOG.html
|
||||||
Delete $INSTDIR\CONTRIBUTING.html
|
Delete $INSTDIR\CONTRIBUTING.html
|
||||||
Delete $INSTDIR\OpenRA.ico
|
Delete $INSTDIR\OpenRA.ico
|
||||||
Delete $INSTDIR\RedAlert.ico
|
Delete $INSTDIR\RedAlert.ico
|
||||||
Delete $INSTDIR\TiberianDawn.ico
|
Delete $INSTDIR\TiberianDawn.ico
|
||||||
Delete $INSTDIR\Dune2000.ico
|
Delete $INSTDIR\Dune2000.ico
|
||||||
Delete "$INSTDIR\global mix database.dat"
|
Delete "$INSTDIR\global mix database.dat"
|
||||||
Delete $INSTDIR\MaxMind.Db.dll
|
Delete $INSTDIR\MaxMind.Db.dll
|
||||||
Delete $INSTDIR\GeoLite2-Country.mmdb.gz
|
Delete $INSTDIR\GeoLite2-Country.mmdb.gz
|
||||||
Delete $INSTDIR\KopiLua.dll
|
Delete $INSTDIR\KopiLua.dll
|
||||||
Delete $INSTDIR\soft_oal.dll
|
Delete $INSTDIR\soft_oal.dll
|
||||||
Delete $INSTDIR\SDL2.dll
|
Delete $INSTDIR\SDL2.dll
|
||||||
Delete $INSTDIR\lua51.dll
|
Delete $INSTDIR\lua51.dll
|
||||||
Delete $INSTDIR\eluant.dll
|
Delete $INSTDIR\eluant.dll
|
||||||
Delete $INSTDIR\freetype6.dll
|
Delete $INSTDIR\freetype6.dll
|
||||||
Delete $INSTDIR\SDL2-CS.dll
|
Delete $INSTDIR\SDL2-CS.dll
|
||||||
Delete $INSTDIR\OpenAL-CS.dll
|
Delete $INSTDIR\OpenAL-CS.dll
|
||||||
Delete $INSTDIR\rix0rrr.BeaconLib.dll
|
Delete $INSTDIR\rix0rrr.BeaconLib.dll
|
||||||
RMDir /r $INSTDIR\Support
|
RMDir /r $INSTDIR\Support
|
||||||
|
|
||||||
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenRA${SUFFIX}"
|
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenRA${SUFFIX}"
|
||||||
DeleteRegKey HKLM "Software\Classes\openra-ra-${TAG}"
|
DeleteRegKey HKLM "Software\Classes\openra-ra-${TAG}"
|
||||||
DeleteRegKey HKLM "Software\Classes\openra-cnc-${TAG}"
|
DeleteRegKey HKLM "Software\Classes\openra-cnc-${TAG}"
|
||||||
DeleteRegKey HKLM "Software\Classes\openra-d2k-${TAG}"
|
DeleteRegKey HKLM "Software\Classes\openra-d2k-${TAG}"
|
||||||
|
|
||||||
Delete $INSTDIR\uninstaller.exe
|
Delete $INSTDIR\uninstaller.exe
|
||||||
RMDir $INSTDIR
|
RMDir $INSTDIR
|
||||||
|
|
||||||
!insertmacro MUI_STARTMENU_GETFOLDER Application $StartMenuFolder
|
!insertmacro MUI_STARTMENU_GETFOLDER Application $StartMenuFolder
|
||||||
|
|
||||||
; Clean up start menu: Delete all our icons, and the OpenRA folder
|
; Clean up start menu: Delete all our icons, and the OpenRA folder
|
||||||
; *only* if we were the only installed version
|
; *only* if we were the only installed version
|
||||||
Delete "$SMPROGRAMS\$StartMenuFolder\Red Alert${SUFFIX}.lnk"
|
Delete "$SMPROGRAMS\$StartMenuFolder\Red Alert${SUFFIX}.lnk"
|
||||||
Delete "$SMPROGRAMS\$StartMenuFolder\Tiberian Dawn${SUFFIX}.lnk"
|
Delete "$SMPROGRAMS\$StartMenuFolder\Tiberian Dawn${SUFFIX}.lnk"
|
||||||
Delete "$SMPROGRAMS\$StartMenuFolder\Dune 2000${SUFFIX}.lnk"
|
Delete "$SMPROGRAMS\$StartMenuFolder\Dune 2000${SUFFIX}.lnk"
|
||||||
RMDir "$SMPROGRAMS\$StartMenuFolder"
|
RMDir "$SMPROGRAMS\$StartMenuFolder"
|
||||||
|
|
||||||
Delete "$DESKTOP\OpenRA - Red Alert${SUFFIX}.lnk"
|
Delete "$DESKTOP\OpenRA - Red Alert${SUFFIX}.lnk"
|
||||||
Delete "$DESKTOP\OpenRA - Tiberian Dawn${SUFFIX}.lnk"
|
Delete "$DESKTOP\OpenRA - Tiberian Dawn${SUFFIX}.lnk"
|
||||||
Delete "$DESKTOP\OpenRA - Dune 2000${SUFFIX}.lnk"
|
Delete "$DESKTOP\OpenRA - Dune 2000${SUFFIX}.lnk"
|
||||||
DeleteRegKey HKLM "Software\OpenRA${SUFFIX}"
|
DeleteRegKey HKLM "Software\OpenRA${SUFFIX}"
|
||||||
FunctionEnd
|
FunctionEnd
|
||||||
!macroend
|
!macroend
|
||||||
|
|
||||||
!insertmacro Clean ""
|
!insertmacro Clean ""
|
||||||
!insertmacro Clean "un."
|
!insertmacro Clean "un."
|
||||||
|
|
||||||
Section "Uninstall"
|
Section "Uninstall"
|
||||||
Call un.Clean
|
Call un.Clean
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
;***************************
|
;***************************
|
||||||
;Section Descriptions
|
;Section Descriptions
|
||||||
;***************************
|
;***************************
|
||||||
LangString DESC_GAME ${LANG_ENGLISH} "OpenRA engine, official mods and dependencies"
|
LangString DESC_GAME ${LANG_ENGLISH} "OpenRA engine, official mods and dependencies"
|
||||||
LangString DESC_DESKTOPSHORTCUT ${LANG_ENGLISH} "Place shortcut on the Desktop."
|
LangString DESC_DESKTOPSHORTCUT ${LANG_ENGLISH} "Place shortcut on the Desktop."
|
||||||
|
|
||||||
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
|
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
|
||||||
!insertmacro MUI_DESCRIPTION_TEXT ${GAME} $(DESC_GAME)
|
!insertmacro MUI_DESCRIPTION_TEXT ${GAME} $(DESC_GAME)
|
||||||
!insertmacro MUI_DESCRIPTION_TEXT ${DESKTOPSHORTCUT} $(DESC_DESKTOPSHORTCUT)
|
!insertmacro MUI_DESCRIPTION_TEXT ${DESKTOPSHORTCUT} $(DESC_DESKTOPSHORTCUT)
|
||||||
!insertmacro MUI_FUNCTION_DESCRIPTION_END
|
!insertmacro MUI_FUNCTION_DESCRIPTION_END
|
||||||
|
|
||||||
;***************************
|
;***************************
|
||||||
;Callbacks
|
;Callbacks
|
||||||
;***************************
|
;***************************
|
||||||
|
|
||||||
Function .onInstFailed
|
Function .onInstFailed
|
||||||
Call Clean
|
Call Clean
|
||||||
FunctionEnd
|
FunctionEnd
|
||||||
|
|||||||
Reference in New Issue
Block a user