mirror of
https://github.com/Corfirean/coa-server-manager.git
synced 2026-11-22 03:25:56 +00:00
Add CoA / Wildcard realm profiles for v0.5.0 (#10)
* Add isolated Wildcard realm profiles and release v0.5.0 * Document realm validation and align npm lock version
This commit is contained in:
1 parent
831685dbd7
commit
1bcef5f8c2
35 files changed
+872
-37
No files matched your search
@@ -3,7 +3,8 @@
|
||||
param(
|
||||
[string]$Source = 'C:\games\CoA-Repack',
|
||||
[string]$Target = 'C:\games\coa-fixture',
|
||||
[int]$PortBase = 13000
|
||||
[int]$PortBase = 13000,
|
||||
[string]$DatabaseArchive = ''
|
||||
)
|
||||
$ErrorActionPreference = 'Stop'
|
||||
if ((Resolve-Path $Source).Path -eq $Target) { throw 'source and target are the same' }
|
||||
@@ -27,7 +28,8 @@ foreach ($d in 'bin', 'lib', 'share') { Copy-Tree "mysql\$d" }
|
||||
Copy-Item "$Source\RELEASE.json", "$Source\MANIFEST.json" $Target
|
||||
|
||||
# Pristine packaged database (never the live data directory).
|
||||
& 'C:\Program Files\7-Zip\7z.exe' x "$Source\mysql\data.7z" "-o$Target\mysql" -y | Out-Null
|
||||
if (-not $DatabaseArchive) { $DatabaseArchive = "$Source\mysql\data.7z" }
|
||||
& 'C:\Program Files\7-Zip\7z.exe' x $DatabaseArchive "-o$Target\mysql" -y | Out-Null
|
||||
if (-not (Test-Path "$Target\mysql\data\acore_characters")) { throw 'database extraction failed' }
|
||||
|
||||
New-Item -ItemType Junction -Path "$Target\Data" -Target "$Source\Data" | Out-Null
|
||||
|
||||
Reference in new issue
Block a user