-
Notifications
You must be signed in to change notification settings - Fork 2
/
PublishAll.ps1
55 lines (48 loc) · 2 KB
/
PublishAll.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
# Set Working Directory
Split-Path $MyInvocation.MyCommand.Path | Push-Location
[Environment]::CurrentDirectory = $PWD
# Name of interface mod, version
# These are kinda hard coded into the publish script for now.
$BaseModInterfaceVersion = "1.1.2"
$InterfaceVersions = @{
BaseExtractDataBinInterface = "1.1.1";
BaseModInterfaces = $BaseModInterfaceVersion
}
$AllProjects = @(
# Name of mod, version
@("MRDX.Audio.VolumeConfig", "1.1.5", $false),
@("MRDX.Base.ExtractDataBin", "1.1.2", $false),
@("MRDX.Base.Mod", $BaseModInterfaceVersion, $false),
@("MRDX.Game.HardMode", "2.1.1", $false),
# Not ready for release yet, so leave it commented out for now
# @("MRDX.Game.MonsterEditor", "1.0.0", $false),
@("MRDX.Graphics.Widescreen", "1.2.2", $false),
@("MRDX.Qol.BattleTimer", "1.0.2", $false),
@("MRDX.Qol.FastForward", "1.3.4", $false),
@("MRDX.Qol.SkipDrillAnim", "1.3.0", $false),
@("MRDX.Qol.TurboInput", "1.0.4", $false),
@("MRDX.Ui.RawTechValues", "1.0.7", $false)
)
Write-Output "Starting Publish All"
foreach ($Project in $AllProjects)
{
$ProjectName = $Project[0]
$ProjectVersion = $Project[1]
$ProjectUseDelta = $Project[2]
(Get-Content "$ProjectName/ModConfig.template.json").replace("{{ MOD_VERSION }}", "$ProjectVersion") | Set-Content "$ProjectName/ModConfig.json"
Write-Output "Publishing $ProjectName"
./Publish.ps1 -ProjectPath "$ProjectName/$ProjectName.csproj" `
-PackageName "$ProjectName" `
-ReadmePath "./$ProjectName/README.md" `
-Version "$ProjectVersion" `
@InterfaceVersions `
-PublishOutputDir "Publish/ToUpload/$ProjectName" `
-MakeDelta $ProjectUseDelta -UseGitHubDelta $ProjectUseDelta `
-MetadataFileName "$ProjectName.ReleaseMetadata.json" `
-GitHubUserName jroweboy -GitHubRepoName mrdx_reloaded `
-GitHubFallbackPattern mod.zip -GitHubInheritVersionFromTag false `
@args
}
Write-Output "Publishing Complete"
Pop-Location