Skip to content

Commit

Permalink
ADD: Read version number
Browse files Browse the repository at this point in the history
  • Loading branch information
alexx2000 committed Aug 2, 2023
1 parent c42923c commit 7496c27
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/scripts/create_release.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#!/bin/bash

# Set Double Commander version
DC_VER=1.1.0

# The new package will be saved here
PACK_DIR=$PWD/doublecmd-release

Expand All @@ -12,6 +9,12 @@ BUILD_PACK_DIR=/var/tmp/doublecmd-$(date +%y.%m.%d)
# Save revision number
DC_REVISION=$(install/linux/update-revision.sh ./ ./)

# Read version number
DC_MAJOR=$(grep -Po 'MajorVersionNr Value="\K\d+' src/doublecmd.lpi)
DC_MINOR=$(grep -Po 'MinorVersionNr Value="\K\d+' src/doublecmd.lpi)
DC_MICRO=$(grep -Po 'RevisionNr Value="\K\d+' src/doublecmd.lpi || echo 0)
DC_VER=$DC_MAJOR.$DC_MINOR.$DC_MICRO

# Set widgetset
export lcl=cocoa

Expand Down

0 comments on commit 7496c27

Please sign in to comment.