-
Notifications
You must be signed in to change notification settings - Fork 2
/
publish.ps1
13 lines (12 loc) · 859 Bytes
/
publish.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
if (!(Test-Path $PSScriptRoot\dist\bink2w64.dll) -or
!(Test-Path $PSScriptRoot\dist\bink2w64_original.dll) -or
!(Test-Path $PSScriptRoot\build\Release\*)) {
exit
}
Remove-Item $PSScriptRoot\NativeMods -Force -Recurse -ErrorAction:SilentlyContinue | Out-Null
Remove-Item $PSScriptRoot\*.zip -Force -Recurse -ErrorAction:SilentlyContinue | Out-Null
New-Item -ItemType Directory -Path $PSScriptRoot\NativeMods | Out-Null
Copy-Item $PSScriptRoot\build\Release\* $PSScriptRoot\NativeMods\
Compress-Archive -Path $PSScriptRoot\dist\bink2w64.dll, $PSScriptRoot\dist\bink2w64_original.dll -DestinationPath $PSScriptRoot\Part-1-NativeModLoader.zip -Force
Compress-Archive -Path $PSScriptRoot\NativeMods\ -DestinationPath $PSScriptRoot\Part-2-BG3AE.zip -Force
Remove-Item $PSScriptRoot\NativeMods -Force -Recurse -ErrorAction:SilentlyContinue | Out-Null