installers: add VERSION file

This commit is contained in:
Stéphane Cerveau 2023-09-17 20:02:44 +02:00
parent dd4700eb11
commit 40e999f7d1
3 changed files with 7 additions and 8 deletions

1
VERSION Normal file
View file

@ -0,0 +1 @@
0.3.1

View file

@ -16,7 +16,7 @@ test_ok() {
BUILD_DIR=builddir BUILD_DIR=builddir
PROJECTDIR="$( cd "$(dirname "$0")/../" ; pwd -P )" PROJECTDIR="$( cd "$(dirname "$0")/../" ; pwd -P )"
TARGETDIR="${PROJECTDIR}/${BUILD_DIR}/INSTALL_GPS" TARGETDIR="${PROJECTDIR}/${BUILD_DIR}/INSTALL_GPS"
VERSION="$(git describe --always --abbrev=0)" VERSION="$(cat VERSION)"
export VERSION export VERSION
echo "VERSION=$VERSION" echo "VERSION=$VERSION"
@ -171,8 +171,8 @@ fi
echo "make macos installer(.dmg)......" echo "make macos installer(.dmg)......"
cp "${PROJECTDIR}/macos/installers/dmg.json" gps_dmg.json cp "${PROJECTDIR}/macos/installers/dmg.json" gps_dmg.json
cp "${PROJECTDIR}/macos/installers/background.png" "${PROJECTDIR}/${BUILD_DIR}/gps_dmg_background.png" cp "${PROJECTDIR}/macos/installers/background.png" "${PROJECTDIR}/${BUILD_DIR}/gps_dmg_background.png"
rm -f ${PROJECTDIR}/GstPipelineStudio-${VERSION}-macos.dmg rm -f ${PROJECTDIR}/GstPipelineStudio-${VERSION}.dmg
appdmg gps_dmg.json "${PROJECTDIR}/GstPipelineStudio-${VERSION}-macos.dmg" appdmg gps_dmg.json "${PROJECTDIR}/GstPipelineStudio-${VERSION}.dmg"
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
echo "[done]" echo "[done]"
else else
@ -181,7 +181,7 @@ fi
# make portable package # make portable package
echo -n "make macos portable......" echo -n "make macos portable......"
tar czf "${PROJECTDIR}/GstPipelineStudio-${VERSION}-macos.tar.gz" -C "${PROJECTDIR}" ${BUILD_DIR}/GstPipelineStudio.app tar czf "${PROJECTDIR}/GstPipelineStudio-${VERSION}.tar.gz" -C "${PROJECTDIR}" ${BUILD_DIR}/GstPipelineStudio.app
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
echo "[done]" echo "[done]"
else else

View file

@ -15,10 +15,8 @@ $lightToolPath = Join-Path $wixFolder -ChildPath light.exe
$heatToolPath = Join-Path $wixFolder -ChildPath heat.exe $heatToolPath = Join-Path $wixFolder -ChildPath heat.exe
$GPSUpgradeCode = "9B87C8FF-599C-4F20-914E-AF5E68CB3DC0" $GPSUpgradeCode = "9B87C8FF-599C-4F20-914E-AF5E68CB3DC0"
$GPSVersion = $(git describe --always --abbrev=0)
Write-Output "Version:" $GPSVersion = Get-Content $PSScriptRoot\..\..\VERSION -Raw
Write-Output $GPSVersion
$GPSVersion = "0.3.1"
Write-Output $GPSVersion Write-Output $GPSVersion
try try
{ {