mirror of
https://github.com/QL-Win/QuickLook.git
synced 2026-05-08 03:06:29 +08:00
Use git tag for AssemblyVersion etc.
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
rem @echo off
|
||||
cd %1
|
||||
for /F "delims=" %%i in ('git describe --always --tags "--abbrev=0"') do set git_tag=%%i
|
||||
for /F "delims=" %%i in ('git describe --always --tags') do set git_revision=%%i
|
||||
echo // This file is generated by update-version.cmd > %2
|
||||
echo. >> %2
|
||||
echo using System.Reflection;>> %2
|
||||
echo. >> %2
|
||||
echo [assembly: AssemblyVersion("%git_tag%")]>> %2
|
||||
echo [assembly: AssemblyInformationalVersion("%git_revision%")]>> %2
|
||||
Reference in New Issue
Block a user