Skip to content

Commit

Permalink
0.8.4402
Browse files Browse the repository at this point in the history
- update to _bf_build_release.bat
  • Loading branch information
mbnq committed May 26, 2024
1 parent ff3670d commit 0908ba5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tools/ccmix/_bf_build_release.bat
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,16 @@ if NOT exist %RarPath% (echo:WinRAR.exe not found&&goto bye)

set "verPreffix=RA2YRBF_0_8_"
set "SourceDir=F:\projekty\_cnc_\RA2BruteForce\RA2BF\RA2YRBF"
set "rVerPreffix=Version: 0.8."
set readmeFile="%SourceDir%\README.md"

set /p ArchiveName=Name your release suffix (preffix is "%verPreffix%"):
set "OutputArchive=%verPreffix%%ArchiveName%.zip"

if exist %readmeFile% (
powershell -Command ^
"(Get-Content '%readmeFile%') | ForEach-Object { if ($_ -like '%rVerPreffix%*') { '%rVerPreffix%%ArchiveName%' } else { $_ } } | Set-Content '%readmeFile%'"
)
%RarPath% a -r -ep1 "%OutputArchive%" "%SourceDir%" -z"%SourceDir%\README.md" -x"%SourceDir%\desktop.ini" -x"%SourceDir%\_build.bat" -x"%SourceDir%\MIX" -x"%SourceDir%\tools" -x"%SourceDir%\tools\ccmix" -x"%SourceDir%\.git" -x"%SourceDir%\.gitattributes" -x"%SourceDir%\.gitignore" -OS

echo Archive ready: %OutputArchive%
Expand All @@ -28,7 +34,7 @@ if %errorlevel% neq 1 goto bye
choice /C YN /M "Do you really want to upload it as an update for autoupdater? (Y/N)"
if %errorlevel% equ 1 (
copy "%OutputArchive%" ra2yrbf_patch.zip /y > nul
curl -T "ra2yrbf_patch.zip" -u "login:password" ftp.your.server.net
curl -T "ra2yrbf_patch.zip" -u "login:password" ftp.mysite.net
goto bye
)

Expand Down

0 comments on commit 0908ba5

Please sign in to comment.