aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorTobias Arrskog <topfs2@kodi.tv>2014-12-23 00:11:35 +0100
committerTobias Arrskog <topfs2@kodi.tv>2014-12-23 00:11:35 +0100
commitad747d9f57299f70e37089924c16c382451bfd8a (patch)
tree23ebaf8fdd23ca6b6abf8d2858cdecf3cd43ecb3 /tools
parentd19dd4461906e2902077c253fd70797435d7fb7b (diff)
parent168e241e09d698a1a227b244a7e39d8124c056ed (diff)
Merge pull request #6007 from topfs2/helix_versiontag14.0-Helix
Helix versiontag
Diffstat (limited to 'tools')
-rw-r--r--tools/android/packaging/xbmc/AndroidManifest.xml.in2
-rw-r--r--tools/darwin/packaging/atv2/mkdeb-atv2.sh.in7
-rw-r--r--tools/darwin/packaging/ios/mkdeb-ios.sh.in7
-rwxr-xr-xtools/darwin/packaging/osx/mkdmg-osx.sh.in7
-rw-r--r--tools/windows/CompileInfo.bat7
5 files changed, 25 insertions, 5 deletions
diff --git a/tools/android/packaging/xbmc/AndroidManifest.xml.in b/tools/android/packaging/xbmc/AndroidManifest.xml.in
index ba7ade529c..4232f1a852 100644
--- a/tools/android/packaging/xbmc/AndroidManifest.xml.in
+++ b/tools/android/packaging/xbmc/AndroidManifest.xml.in
@@ -3,7 +3,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.xbmc.@APP_NAME_LC@"
android:versionCode="@APP_VERSION_CODE@"
- android:versionName="@APP_VERSION_MAJOR@.@APP_VERSION_MINOR@-@APP_VERSION_TAG@" >
+ android:versionName="@APP_VERSION@" >
<!-- This is the platform API where NativeActivity was introduced. -->
<uses-sdk android:minSdkVersion="14" />
diff --git a/tools/darwin/packaging/atv2/mkdeb-atv2.sh.in b/tools/darwin/packaging/atv2/mkdeb-atv2.sh.in
index db637ebcbe..fefc6ce0a7 100644
--- a/tools/darwin/packaging/atv2/mkdeb-atv2.sh.in
+++ b/tools/darwin/packaging/atv2/mkdeb-atv2.sh.in
@@ -48,7 +48,12 @@ fi
PACKAGE=org.xbmc.@APP_NAME_LC@-atv2
VERSION=@APP_VERSION_MAJOR@.@APP_VERSION_MINOR@
-REVISION=0~@APP_VERSION_TAG_LC@
+REVISION=0
+
+if [ "@APP_VERSION_TAG_LC@" != "" ]; then
+ REVISION=$REVISION~@APP_VERSION_TAG_LC@
+fi
+
ARCHIVE=${PACKAGE}_${VERSION}-${REVISION}_iphoneos-arm.deb
SIZE="$(du -s -k ${APP} | awk '{print $1}')"
diff --git a/tools/darwin/packaging/ios/mkdeb-ios.sh.in b/tools/darwin/packaging/ios/mkdeb-ios.sh.in
index 0ec4e2e848..f159bf9a19 100644
--- a/tools/darwin/packaging/ios/mkdeb-ios.sh.in
+++ b/tools/darwin/packaging/ios/mkdeb-ios.sh.in
@@ -49,7 +49,12 @@ fi
PACKAGE=org.xbmc.@APP_NAME_LC@-ios
VERSION=@APP_VERSION_MAJOR@.@APP_VERSION_MINOR@
-REVISION=0~@APP_VERSION_TAG_LC@
+REVISION=0
+
+if [ "@APP_VERSION_TAG_LC@" != "" ]; then
+ REVISION=$REVISION~@APP_VERSION_TAG_LC@
+fi
+
ARCHIVE=${PACKAGE}_${VERSION}-${REVISION}_iphoneos-arm.deb
SIZE="$(du -s -k ${APP} | awk '{print $1}')"
diff --git a/tools/darwin/packaging/osx/mkdmg-osx.sh.in b/tools/darwin/packaging/osx/mkdmg-osx.sh.in
index 33c13dd45a..2a10ebc081 100755
--- a/tools/darwin/packaging/osx/mkdmg-osx.sh.in
+++ b/tools/darwin/packaging/osx/mkdmg-osx.sh.in
@@ -25,7 +25,12 @@ ARCHITECTURE=`file $APP/Contents/MacOS/@APP_NAME@ | awk '{print $NF}'`
PACKAGE=org.xbmc.@APP_NAME_LC@-osx
VERSION=@APP_VERSION_MAJOR@.@APP_VERSION_MINOR@
-REVISION=0~@APP_VERSION_TAG_LC@
+REVISION=0
+
+if [ "@APP_VERSION_TAG_LC@" != "" ]; then
+ REVISION=$REVISION~@APP_VERSION_TAG_LC@
+fi
+
ARCHIVE=${PACKAGE}_${VERSION}-${REVISION}_macosx-intel-${ARCHITECTURE}
echo Creating $PACKAGE package version $VERSION revision $REVISION
diff --git a/tools/windows/CompileInfo.bat b/tools/windows/CompileInfo.bat
index ef8af0a36c..a94664a410 100644
--- a/tools/windows/CompileInfo.bat
+++ b/tools/windows/CompileInfo.bat
@@ -15,6 +15,11 @@ FOR /f %%i IN ('%msys_bin_dir%\awk.exe "/VERSION_MINOR/ {print $2}" %base_dir%\v
FOR /f %%i IN ('%msys_bin_dir%\awk.exe "/VERSION_TAG/ {print $2}" %base_dir%\version.txt') DO SET tag=%%i
FOR /f %%i IN ('%msys_bin_dir%\awk.exe "/ADDON_API/ {print $2}" %base_dir%\version.txt') DO SET addon_api=%%i
+SET app_version=%major%.%minor%
+IF NOT [%tag%] == [] (
+ SET app_version=%app_version%-%tag%
+)
+
REM XBMC_PC.rc.in requires a comma-separated version of addon_api
SET separator=,
CALL SET file_version=%%addon_api:.=%separator%%%%separator%0
@@ -22,5 +27,5 @@ CALL SET file_version=%%addon_api:.=%separator%%%%separator%0
REM create the files with the proper version information
"%msys_bin_dir%\sed.exe" -e s/@APP_NAME@/%app_name%/g -e s/@APP_VERSION_MAJOR@/%major%/g -e s/@APP_VERSION_MINOR@/%minor%/g -e s/@APP_VERSION_TAG@/%tag%/g "%base_dir%\xbmc\CompileInfo.cpp.in" > "%base_dir%\xbmc\CompileInfo.cpp"
"%msys_bin_dir%\sed.exe" s/@APP_ADDON_API@/%addon_api%/g "%base_dir%\addons\xbmc.addon\addon.xml.in" > "%base_dir%\addons\xbmc.addon\addon.xml"
-"%msys_bin_dir%\sed.exe" -e s/@APP_NAME@/%app_name%/g -e s/@COMPANY_NAME@/%company_name%/g -e s/@APP_VERSION_MAJOR@/%major%/g -e s/@APP_VERSION_MINOR@/%minor%/g -e s/@APP_VERSION_TAG@/%tag%/g -e s/@FILE_VERSION@/%file_version%/g "%base_dir%\xbmc\win32\XBMC_PC.rc.in" > "%base_dir%\xbmc\win32\XBMC_PC.rc"
+"%msys_bin_dir%\sed.exe" -e s/@APP_NAME@/%app_name%/g -e s/@COMPANY_NAME@/%company_name%/g -e s/@APP_VERSION_MAJOR@/%major%/g -e s/@APP_VERSION_MINOR@/%minor%/g -e s/@APP_VERSION_TAG@/%tag%/g -e s/@FILE_VERSION@/%file_version%/g -e s/@APP_VERSION@/%app_version%/g "%base_dir%\xbmc\win32\XBMC_PC.rc.in" > "%base_dir%\xbmc\win32\XBMC_PC.rc"