-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpublish.ps1
70 lines (58 loc) · 3.82 KB
/
publish.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
param (
[switch]$debug = $false,
[switch]$release = $false,
[string]$outputPath = ""
)
$ErrorActionPreference = "Stop"
$outputPath = "..\..\..\install\bin"
Write-Host "Publishing NCC build."
Write-Host "Output directory: $outputPath"
Write-Host ""
$scriptDirectory = Split-Path -Path $MyInvocation.MyCommand.Definition -Parent
$NMMPath = "$scriptDirectory\..\NMM"
New-Item -ItemType directory -Force -Path "$outputPath\NCC"
Copy-Item "$NMMPATH\bin\Release\AntlrUtil.dll" "$outputPath\NCC"
Copy-Item "$NMMPATH\bin\Release\ChinhDo.Transactions.dll" "$outputPath\NCC"
Copy-Item "$NMMPATH\bin\Release\Commanding.dll" "$outputPath\NCC"
# Copy-Item "$NMMPATH\bin\Release\GamebryoBase.dll" "$outputPath\NCC"
Copy-Item "$NMMPATH\bin\Release\ICSharpCode.TextEditor.dll" "$outputPath\NCC"
Copy-Item "$NMMPATH\bin\Release\ModManager.Interface.dll" "$outputPath\NCC"
Copy-Item "$NMMPATH\bin\Release\Mods.dll" "$outputPath\NCC"
Copy-Item "$NMMPATH\bin\Release\NexusClient.Interface.dll" "$outputPath\NCC"
# Copy-Item "$NMMPATH\bin\Release\NexusClientCLI.exe.manifest" "$outputPath\NCC"
Copy-Item "$NMMPATH\bin\Release\ObjectListView.dll" "$outputPath\NCC"
Copy-Item "$NMMPATH\bin\Release\RestSharp.dll" "$outputPath\NCC"
Copy-Item "$NMMPATH\bin\Release\Scripting.dll" "$outputPath\NCC"
Copy-Item "$NMMPATH\bin\Release\SevenZipSharp.dll" "$outputPath\NCC"
Copy-Item "$NMMPATH\bin\Release\Transactions.dll" "$outputPath\NCC"
Copy-Item "$NMMPATH\bin\Release\UI.dll" "$outputPath\NCC"
Copy-Item "$NMMPATH\bin\Release\Util.dll" "$outputPath\NCC"
Copy-Item "$NMMPATH\bin\Release\WeifenLuo.WinFormsUI.Docking.dll" "$outputPath\NCC"
# stored in repository in binary form
Copy-Item "$NMMPATH\bin\Release\Castle.Core.dll" "$outputPath\NCC"
New-Item -ItemType directory -Force -Path "$outputPath\NCC\GameModes"
Copy-Item "$NMMPATH\bin\Release\GameModes\GamebryoBase*.dll" "$outputPath\NCC\GameModes"
Copy-Item "$NMMPATH\bin\Release\GameModes\Enderal*.dll" "$outputPath\NCC\GameModes"
Copy-Item "$NMMPATH\bin\Release\GameModes\Fallout*.dll" "$outputPath\NCC\GameModes"
Copy-Item "$NMMPATH\bin\Release\GameModes\Morrowind*.dll" "$outputPath\NCC\GameModes"
Copy-Item "$NMMPATH\bin\Release\GameModes\Oblivion*.dll" "$outputPath\NCC\GameModes"
Copy-Item "$NMMPATH\bin\Release\GameModes\Skyrim*.dll" "$outputPath\NCC\GameModes"
# we should reimplement the dummy classes eventually
New-Item -ItemType directory -Force -Path "$outputPath\NCC\GameModes\data"
Copy-Item "$NMMPATH\bin\Release\GameModes\data\boss32.dll" "$outputPath\NCC\GameModes\data"
Copy-Item "$NMMPATH\bin\Release\GameModes\data\boss64.dll" "$outputPath\NCC\GameModes\data"
Copy-Item "$NMMPATH\bin\Release\GameModes\data\loot32.dll" "$outputPath\NCC\GameModes\data"
Copy-Item "$NMMPATH\bin\Release\GameModes\data\loot64.dll" "$outputPath\NCC\GameModes\data"
New-Item -ItemType directory -Force -Path "$outputPath\NCC\ModFormats"
Copy-Item "$NMMPATH\bin\Release\ModFormats\FOMod.dll" "$outputPath\NCC\ModFormats"
Copy-Item "$NMMPATH\bin\Release\ModFormats\OMod.dll" "$outputPath\NCC\ModFormats"
New-Item -ItemType directory -Force -Path "$outputPath\NCC\ScriptTypes"
Copy-Item "$NMMPATH\bin\Release\ScriptTypes\Antlr*.dll" "$outputPath\NCC\ScriptTypes"
Copy-Item "$NMMPATH\bin\Release\ScriptTypes\CSharpScript.dll" "$outputPath\NCC\ScriptTypes"
Copy-Item "$NMMPATH\bin\Release\ScriptTypes\ModScript.dll" "$outputPath\NCC\ScriptTypes"
Copy-Item "$NMMPATH\bin\Release\ScriptTypes\XmlScript.dll" "$outputPath\NCC\ScriptTypes"
New-Item -ItemType directory -Force -Path "$outputPath\NCC\data"
Copy-Item "$NMMPATH\bin\Release\data\7z-32bit.dll" "$outputPath\NCC\data"
Copy-Item "$NMMPATH\bin\Release\data\7z-64bit.dll" "$outputPath\NCC\data"
Copy-Item "$NMMPATH\bin\Release\NexusClientCLI.exe" "$outputPath\NCC"
Copy-Item "$NMMPATH\bin\Release\NexusClientCLI.exe.config" "$outputPath\NCC"