UPD: Version info

This commit is contained in:
Alexander Koblov 2023-07-20 13:45:32 +03:00
commit 9aff9d9346
4 changed files with 5 additions and 10 deletions

View file

@ -1,14 +1,10 @@
name: build-snapshot
on:
push:
paths:
- 'components/**'
- 'plugins/**'
- 'sdk/**'
- 'src/**'
release:
types: [unpublished]
branches:
- master
- v1.1.x
concurrency:
group: ${{ github.ref }}

View file

@ -29,7 +29,6 @@
<UseVersionInfo Value="True"/>
<MajorVersionNr Value="1"/>
<MinorVersionNr Value="1"/>
<Attributes pvaPreRelease="True"/>
<StringTable FileDescription="Double Commander" InternalName="DOUBLECMD" LegalCopyright="Copyright (C) 2006-2023 Alexander Koblov" ProductName="Double Commander"/>
</VersionInfo>
<BuildModes Count="5">

View file

@ -7,7 +7,7 @@ export REVISION_INC=$1/dcrevision.inc
rm -f $REVISION_INC
cp ../units/dcrevision.inc $REVISION_INC
export REVISION=$(git -C $1 rev-list --count HEAD)
export REVISION=$(git -C $1 rev-list --count master..HEAD)
export COMMIT=$(git -C $1 rev-parse --short HEAD)
if [ $REVISION ] && [ $COMMIT ]; then

View file

@ -9,7 +9,7 @@ del /Q %REVISION_TXT% 2> nul
del /Q %REVISION_INC% 2> nul
copy ..\units\dcrevision.inc %REVISION_INC% > nul
git -C %1 rev-list --count HEAD > %REVISION_TXT%
git -C %1 rev-list --count master..HEAD > %REVISION_TXT%
IF ERRORLEVEL 1 goto EXIT