bump version to 2.1. remove dependence on git for tarball builds.
This commit is contained in:
parent
642eb33446
commit
bd4c214c39
|
@ -1,7 +1,7 @@
|
|||
cmake_minimum_required (VERSION 3.4)
|
||||
|
||||
set (BARRIER_VERSION_MAJOR 2)
|
||||
set (BARRIER_VERSION_MINOR 0)
|
||||
set (BARRIER_VERSION_MINOR 1)
|
||||
set (BARRIER_VERSION_PATCH 0)
|
||||
|
||||
#
|
||||
|
@ -43,6 +43,11 @@ endif()
|
|||
if (NOT DEFINED BARRIER_REVISION)
|
||||
if (DEFINED ENV{GIT_COMMIT})
|
||||
string (SUBSTRING $ENV{GIT_COMMIT} 0 8 BARRIER_REVISION)
|
||||
else()
|
||||
find_program (GIT_BINARY git)
|
||||
if (GIT_BINARY STREQUAL "GIT_BINARY-NOTFOUND")
|
||||
set (BARRIER_REVISION "00000000")
|
||||
message (WARNING "git not found. revision hash set to ${BARRIER_REVISION}")
|
||||
else()
|
||||
execute_process (
|
||||
COMMAND git rev-parse --short=8 HEAD
|
||||
|
@ -52,6 +57,7 @@ if (NOT DEFINED BARRIER_REVISION)
|
|||
)
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if (DEFINED BARRIER_REVISION)
|
||||
string(LENGTH ${BARRIER_REVISION} BARRIER_REVISION_LENGTH)
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
[Desktop Entry]
|
||||
Type=Application
|
||||
Version=1.0
|
||||
Name=Barrier
|
||||
Comment=Keyboard and mouse sharing solution
|
||||
Path=/usr/bin
|
||||
Exec=/usr/bin/barrier2
|
||||
Icon=barrier
|
||||
Terminal=false
|
||||
Categories=Utility;
|
||||
Keywords=keyboard;mouse;sharing;network;share;
|
Loading…
Reference in New Issue