Skip to content

Commit f655a5b

Browse files
committed
Apply version define in the build script
1 parent f94e478 commit f655a5b

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

install/build-deb.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ clean()
2525

2626
pre_build()
2727
{
28+
if [ "$FORCE_VERSION" = 1 ]; then
29+
QMAKE_OPTIONS="$QMAKE_OPTIONS VERSION=$PACKAGE_VERSION"
30+
fi
31+
2832
QMAKE_OPTIONS="$QMAKE_OPTIONS PREFIX=$PACKAGE_INSTALL_PREFIX"
2933
echo "$QMAKE -r $QMAKE_OPTIONS ${SOURCE_DIR}"
3034
$QMAKE -r $QMAKE_OPTIONS ${SOURCE_DIR}

install/build-win-msys2.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ clean()
2828

2929
pre_build()
3030
{
31+
if [ "$FORCE_VERSION" = 1 ]; then
32+
QMAKE_OPTIONS="$QMAKE_OPTIONS VERSION=$PACKAGE_VERSION"
33+
fi
34+
3135
QMAKE_OPTIONS="$QMAKE_OPTIONS PREFIX=$PACKAGE_DIR"
3236
echo "$QMAKE -r $QMAKE_OPTIONS ${SOURCE_DIR}"
3337
$QMAKE -r $QMAKE_OPTIONS "$SOURCE_DIR"

0 commit comments

Comments
 (0)