Skip to content

Commit

Permalink
Change version numeration
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewjswan committed May 4, 2024
1 parent c44a77c commit efa61b9
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 33 deletions.
4 changes: 2 additions & 2 deletions FanartHandler/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("4.0.5.$WCREV$")]
[assembly: AssemblyFileVersion("4.0.5.$WCREV$")]
[assembly: AssemblyVersion("4.0.5.999")]
[assembly: AssemblyFileVersion("4.0.5.999")]
62 changes: 31 additions & 31 deletions scripts/Build_GIT.bat
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
@echo off
cls
Title Building MediaPortal Fanart Handler (RELEASE)
cd ..

setlocal enabledelayedexpansion

if "%programfiles(x86)%XXX"=="XXX" goto 32BIT
:: 64-bit
set PROGS=%programfiles(x86)%
goto CONT
:32BIT
set PROGS=%ProgramFiles%
:CONT
IF NOT EXIST "%PROGS%\Team MediaPortal\MediaPortal\" SET PROGS=C:

: Prepare version
for /f "tokens=*" %%a in ('git rev-list HEAD --count') do set REVISION=%%a
set REVISION=%REVISION: =%
"scripts\Tools\sed.exe" -i "s/\$WCREV\$/%REVISION%/g" FanartHandler\Properties\AssemblyInfo.cs

:: Build
"%WINDIR%\Microsoft.NET\Framework\v4.0.30319\MSBUILD.exe" /target:Rebuild /property:Configuration=RELEASE /fl /flp:logfile=FanartHandler.log;verbosity=diagnostic FanartHandler.sln

: Revert version
git checkout FanartHandler\Properties\AssemblyInfo.cs

cd scripts

pause

@echo off
cls
Title Building MediaPortal Fanart Handler (RELEASE)
cd ..

setlocal enabledelayedexpansion

if "%programfiles(x86)%XXX"=="XXX" goto 32BIT
:: 64-bit
set PROGS=%programfiles(x86)%
goto CONT
:32BIT
set PROGS=%ProgramFiles%
:CONT
IF NOT EXIST "%PROGS%\Team MediaPortal\MediaPortal\" SET PROGS=C:

: Prepare version
for /f "tokens=*" %%a in ('git rev-list HEAD --count') do set REVISION=%%a
set REVISION=%REVISION: =%
"scripts\Tools\sed.exe" -i -r "s/(Assembly(File)?Version\(.[0-9]+\.[0-9]+\.[0-9]+\.)[0-9]+(.\))/\1%REVISION%\3/g" FanartHandler\Properties\AssemblyInfo.cs

:: Build
"%WINDIR%\Microsoft.NET\Framework\v4.0.30319\MSBUILD.exe" /target:Rebuild /property:Configuration=RELEASE /fl /flp:logfile=FanartHandler.log;verbosity=diagnostic FanartHandler.sln

: Revert version
git checkout FanartHandler\Properties\AssemblyInfo.cs

cd scripts

pause

0 comments on commit efa61b9

Please sign in to comment.