mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-24 13:32:27 +00:00
Update windows-build.ps1
This commit is contained in:
parent
158dd3ac97
commit
c17ab5a848
@ -1,32 +1,32 @@
|
|||||||
Try
|
Try
|
||||||
{
|
{
|
||||||
$cwd = Get-Location
|
# $cwd = Get-Location
|
||||||
|
#
|
||||||
|
# Set-Location -Path "$cwd"
|
||||||
|
#
|
||||||
|
# git submodule init
|
||||||
|
# git submodule update
|
||||||
|
#
|
||||||
|
# if (![System.IO.Directory]::Exists("$cwd\win-build-x64"))
|
||||||
|
# {
|
||||||
|
# Write-Information -MessageData "Creating build x64 folder" -InformationAction Continue
|
||||||
|
# New-Item -Path "$cwd\win-build-x64" -ItemType Directory
|
||||||
|
# }
|
||||||
|
#
|
||||||
|
# Write-Information -MessageData "Creating build x64" -InformationAction Continue
|
||||||
|
# Set-Location -Path "$cwd\win-build-x64"
|
||||||
|
# cmake -Wno-dev -G "Visual Studio 17 2022" -A x64 -DEQEMU_BUILD_TESTS=ON -DEQEMU_BUILD_LOGIN=ON -DEQEMU_BUILD_ZLIB=ON "$cwd"
|
||||||
|
# cmake --build . --config RelWithDebInfo --clean-first
|
||||||
|
# Set-Location -Path "$cwd"
|
||||||
|
#
|
||||||
|
# 7z a eqemu-server-windows-x64.zip $cwd\win-build-x64\bin\RelWithDebInfo\*.exe $cwd\win-build-x64\bin\RelWithDebInfo\*.dll $cwd\win-build-x64\bin\RelWithDebInfo\*.pdb $cwd\win-build-x64\libs\zlibng\RelWithDebInfo\*.dll $cwd\win-build-x64\libs\zlibng\RelWithDebInfo\*.pdb
|
||||||
|
|
||||||
Set-Location -Path "$cwd"
|
.\utils\scripts\build\should-release\should-release.exe
|
||||||
|
|
||||||
git submodule init
|
# dir *.zip
|
||||||
git submodule update
|
# rclone config create remote ftp env_auth true
|
||||||
|
# rclone copy eqemu-server-windows-x64.zip remote:
|
||||||
if (![System.IO.Directory]::Exists("$cwd\win-build-x64"))
|
# rclone ls remote:
|
||||||
{
|
|
||||||
Write-Information -MessageData "Creating build x64 folder" -InformationAction Continue
|
|
||||||
New-Item -Path "$cwd\win-build-x64" -ItemType Directory
|
|
||||||
}
|
|
||||||
|
|
||||||
Write-Information -MessageData "Creating build x64" -InformationAction Continue
|
|
||||||
Set-Location -Path "$cwd\win-build-x64"
|
|
||||||
cmake -Wno-dev -G "Visual Studio 17 2022" -A x64 -DEQEMU_BUILD_TESTS=ON -DEQEMU_BUILD_LOGIN=ON -DEQEMU_BUILD_ZLIB=ON "$cwd"
|
|
||||||
cmake --build . --config RelWithDebInfo --clean-first
|
|
||||||
Set-Location -Path "$cwd"
|
|
||||||
|
|
||||||
7z a eqemu-server-windows-x64.zip $cwd\win-build-x64\bin\RelWithDebInfo\*.exe $cwd\win-build-x64\bin\RelWithDebInfo\*.dll $cwd\win-build-x64\bin\RelWithDebInfo\*.pdb $cwd\win-build-x64\libs\zlibng\RelWithDebInfo\*.dll $cwd\win-build-x64\libs\zlibng\RelWithDebInfo\*.pdb
|
|
||||||
|
|
||||||
cmd.exe .\utils\scripts\build\should-release\should-release.exe
|
|
||||||
|
|
||||||
dir *.zip
|
|
||||||
rclone config create remote ftp env_auth true
|
|
||||||
rclone copy eqemu-server-windows-x64.zip remote:
|
|
||||||
rclone ls remote:
|
|
||||||
}
|
}
|
||||||
Catch
|
Catch
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user