mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 22:01:30 +00:00
* Test * Test * Update windows-build.ps1 * Update windows-build.ps1 * Update windows-build.ps1 * Kill excessive warnings * Split * Remove 7z from build scripts * Linux * Update .drone.yml * Update .drone.yml * Update .drone.yml * Update .drone.yml * Test * Update .drone.yml * Naming * Test upload * Update .drone.yml * Update .drone.yml * Update .drone.yml * Yolo * Yolo * Update .drone.yml * Update .drone.yml * Copy * Yolo * Release without bots * Update .drone.yml * Update .drone.yml * Test pipeline * Remove debug * Update .drone.yml * Filter pipeline stage * Update .drone.yml * Test * Bots release 22.0.5 (Test) * Release bot test #2 * Check if release * Update .drone.yml * Update .drone.yml * exit 78 * Update .drone.yml * Update .drone.yml * Add version checks * Update .drone.yml * Update .drone.yml * Test * Update build-release.bat * Update .drone.yml * Update .drone.yml * Update .drone.yml * Update build-release.bat * Update build-release.bat * Test pipeline * Update CHANGELOG.md * Bump * Update build-release.bat * Update build-release.bat * Shuffle * Take #45354 * Update windows-build.ps1 * Update windows-build.ps1 * Update windows-build.ps1 * F * Update windows-build.ps1 * Consolidate * Run it * Pop cache back in * Update linux-build.sh * Another release test * Update linux-build.sh * Update linux-build.sh * Update CMakeLists.txt * Trim windows assets * Update windows-build.ps1 * Update windows-build.ps1 * Update windows-build.ps1 * Update windows-build.ps1 * [22.1.0] Release * Crash reporting * Add version tag injection in the build pipeline * Update windows-build.ps1 * Test * Test * Update windows-build.ps1 * Update windows-build.ps1 * Update windows-build.ps1 * Kill excessive warnings * Split * Remove 7z from build scripts * Linux * Update .drone.yml * Update .drone.yml * Update .drone.yml * Update .drone.yml * Test * Update .drone.yml * Naming * Test upload * Update .drone.yml * Update .drone.yml * Update .drone.yml * Yolo * Yolo * Update .drone.yml * Update .drone.yml * Copy * Yolo * Release without bots * Update .drone.yml * Update .drone.yml * Test pipeline * Remove debug * Update .drone.yml * Filter pipeline stage * Update .drone.yml * Test * Bots release 22.0.5 (Test) * Release bot test #2 * Check if release * Update .drone.yml * Update .drone.yml * exit 78 * Update .drone.yml * Update .drone.yml * Add version checks * Update .drone.yml * Update .drone.yml * Test * Update build-release.bat * Update .drone.yml * Update .drone.yml * Update .drone.yml * Update build-release.bat * Update build-release.bat * Test pipeline * Update CHANGELOG.md * Bump * Update build-release.bat * Update build-release.bat * Shuffle * Take #45354 * Update windows-build.ps1 * Update windows-build.ps1 * Update windows-build.ps1 * F * Update windows-build.ps1 * Consolidate * Run it * Pop cache back in * Update linux-build.sh * Another release test * Update linux-build.sh * Update linux-build.sh * Update CMakeLists.txt * Trim windows assets * Update windows-build.ps1 * Update windows-build.ps1 * Update windows-build.ps1 * Update windows-build.ps1 * [22.1.0] Release * Crash reporting * Add version tag injection in the build pipeline * Update windows-build.ps1 * Full crash report on windows. * Update endpoint * [22.1.1] Release * [skip ci] update .drone.yml * Filter * Update .drone.yml * Update .drone.yml * Update .drone.yml * Update .drone.yml * Update .drone.yml * Update CHANGELOG.md Co-authored-by: KimLS <KimLS@peqtgc.com>
50 lines
1.8 KiB
PowerShell
50 lines
1.8 KiB
PowerShell
try
|
|
{
|
|
$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
|
|
}
|
|
|
|
perl .\utils\scripts\build\tag-version.pl
|
|
|
|
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"
|
|
|
|
.\utils\scripts\build\should-release\should-release.exe; if ($LASTEXITCODE -ne 0) { exit }
|
|
|
|
# trim some fat
|
|
del $cwd\win-build-x64\bin\RelWithDebInfo\export_client_files.pdb
|
|
del $cwd\win-build-x64\bin\RelWithDebInfo\import_client_files.pdb
|
|
del $cwd\win-build-x64\bin\RelWithDebInfo\shared_memory.pdb
|
|
del $cwd\win-build-x64\bin\RelWithDebInfo\queryserv.pdb
|
|
del $cwd\win-build-x64\bin\RelWithDebInfo\eqlaunch.pdb
|
|
del $cwd\win-build-x64\bin\RelWithDebInfo\cppunit.pdb
|
|
del $cwd\win-build-x64\bin\RelWithDebInfo\tests.pdb
|
|
del $cwd\win-build-x64\bin\RelWithDebInfo\tests.exe
|
|
|
|
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
|
|
|
|
dir *.zip
|
|
rclone config create remote ftp env_auth true
|
|
rclone copy eqemu-server-windows-x64.zip remote:
|
|
rclone ls remote:
|
|
}
|
|
catch
|
|
{
|
|
Write-Host ("Caught signal to end")
|
|
Write-Host $_
|
|
}
|
|
|
|
|