[skip ci] add correct version number to gta5view.desktop

This commit is contained in:
Syping 2020-08-25 20:11:45 +02:00
parent a74e7847b2
commit 1c00871e80
3 changed files with 19 additions and 3 deletions

View file

@ -12,7 +12,6 @@ export EXECUTABLE_VERSION=${PACKAGE_VERSION}${PACKAGE_BUILD}${EXECUTABLE_TAG}
export APPLICATION_MAJOR_VERSION=$(cut -d. -f1 <<< $APPLICATION_VERSION) export APPLICATION_MAJOR_VERSION=$(cut -d. -f1 <<< $APPLICATION_VERSION)
export APPLICATION_MINOR_VERSION=$(cut -d. -f2 <<< $APPLICATION_VERSION) export APPLICATION_MINOR_VERSION=$(cut -d. -f2 <<< $APPLICATION_VERSION)
export APPLICATION_PATCH_VERSION=$(cut -d. -f3 <<< $APPLICATION_VERSION) export APPLICATION_PATCH_VERSION=$(cut -d. -f3 <<< $APPLICATION_VERSION)
export APPLICATION_BUILD_YEAR=$(date "+%Y")
if [ "${PACKAGE_BUILD}" == "" ]; then if [ "${PACKAGE_BUILD}" == "" ]; then
export PACKAGE_BUILD=1 export PACKAGE_BUILD=1
@ -30,6 +29,10 @@ cat ".ci/app.rc" | sed \
-e "s/STR_BUILD_VER/$APPLICATION_BUILD_STR_VERSION/g" \ -e "s/STR_BUILD_VER/$APPLICATION_BUILD_STR_VERSION/g" \
> "res/app.rc" > "res/app.rc"
cat ".ci/gta5view.desktop" | sed \
-e "s/PKGAPP_VER/$PACKAGE_VERSION/g" \
> "res/gta5view.desktop"
if [ "${BUILD_TYPE}" == "ALPHA" ]; then if [ "${BUILD_TYPE}" == "ALPHA" ]; then
export QMAKE_BUILD_TYPE="DEFINES+=GTA5SYNC_BUILDTYPE_ALPHA" export QMAKE_BUILD_TYPE="DEFINES+=GTA5SYNC_BUILDTYPE_ALPHA"
elif [ "${BUILD_TYPE}" == "Alpha" ]; then elif [ "${BUILD_TYPE}" == "Alpha" ]; then

12
.ci/gta5view.desktop Normal file
View file

@ -0,0 +1,12 @@
[Desktop Entry]
Version=PKGAPP_VER
Encoding=UTF-8
Type=Application
Name=gta5view
Comment=Open and edit GTA V profiles
Comment[de]=GTA V Profile öffnen und bearbeiten
Categories=Qt;Application;Utility;
Exec=gta5view
Icon=gta5view
Terminal=false
StartupNotify=false

View file

@ -1,9 +1,10 @@
[Desktop Entry] [Desktop Entry]
Version=1.6 Version=1.8
Encoding=UTF-8 Encoding=UTF-8
Type=Application Type=Application
Name=gta5view Name=gta5view
Comment=gta5view Comment=Open and edit GTA V profiles
Comment[de]=GTA V Profile öffnen und bearbeiten
Categories=Qt;Application;Utility; Categories=Qt;Application;Utility;
Exec=gta5view Exec=gta5view
Icon=gta5view Icon=gta5view