mirror of
https://github.com/MathiasLui/CSGO-Projects.git
synced 2025-05-06 22:01:18 +00:00
* Scripts got added for DamageCalculator and ConfigManager * Batch scripts will need 7z be added to PATH, as well as the two specified profiles in order to work * Alter publish profiles to fit to the scripts, one for self-contained and one for lower file size * Add explicit cast that is now needed to remove ambiguity
44 lines
No EOL
1.2 KiB
Batchfile
44 lines
No EOL
1.2 KiB
Batchfile
@echo off
|
|
|
|
:Start
|
|
|
|
set /p "version=TYPE IN VERSION NUMBER: "
|
|
|
|
IF "%version%" == "" GOTO Start
|
|
|
|
mkdir publish
|
|
|
|
echo Deleting old releases...
|
|
del /q publish\*
|
|
|
|
|
|
|
|
echo Publishing framework dependent version...
|
|
dotnet publish .\ConfigManager\ConfigManager.csproj /p:PublishProfile=ConfigManager\Properties\PublishProfiles\FrameworkDependentProfile.pubxml
|
|
|
|
echo Removing PDBs...
|
|
del ConfigManager\bin\Release\net7.0-windows\publish\CsgoConfigManager\*.pdb
|
|
|
|
echo Zipping folder...
|
|
7z a CsgoConfigManager.zip .\ConfigManager\bin\Release\net7.0-windows\publish\CsgoConfigManager
|
|
|
|
echo Moving and renaming file...
|
|
move /y "CsgoConfigManager.zip" "publish\csgo_config_manager_FD_%version%.zip"
|
|
|
|
|
|
|
|
echo Publishing standalone (self-contained) version...
|
|
dotnet publish .\ConfigManager\ConfigManager.csproj /p:PublishProfile=ConfigManager\Properties\PublishProfiles\SelfContainedProfile.pubxml
|
|
|
|
echo Removing PDBs...
|
|
del ConfigManager\bin\Release\net7.0-windows\publish\CsgoConfigManager\*.pdb
|
|
|
|
echo Zipping folder...
|
|
7z a CsgoConfigManager.zip .\ConfigManager\bin\Release\net7.0-windows\publish\CsgoConfigManager
|
|
|
|
echo Moving and renaming file...
|
|
move /y "CsgoConfigManager.zip" "publish\csgo_config_manager_SC_%version%.zip"
|
|
|
|
|
|
|
|
pause |