Fix bogus version number
This commit is contained in:
parent
03786b2b2f
commit
f7066aa26a
1 changed files with 3 additions and 2 deletions
|
@ -4,7 +4,7 @@
|
||||||
# Configuration
|
# Configuration
|
||||||
##########
|
##########
|
||||||
|
|
||||||
export APP_NAME=grep "Name" $(find -name "*.spec" | head -1) | awk '{print $2}'
|
export APP_NAME=$(grep "Name" $(find -name "*.spec" | head -1) | awk '{print $2}')
|
||||||
export SFOS_VER=4.2.0.21
|
export SFOS_VER=4.2.0.21
|
||||||
|
|
||||||
##########
|
##########
|
||||||
|
@ -24,6 +24,7 @@ export RPM_DEST_DIR=$PROJECT/RPMS
|
||||||
function build() {
|
function build() {
|
||||||
export PATH="$HOME/SailfishOS/bin:$HOME/mersdk/targets/Sailfish-$SFOS_VER-$ARCH.default/usr/lib/qt5/bin:$HOME/.config/SailfishSDK/libsfdk/build-target-tools/Sailfish SDK Build Engine/SailfishOS-$SFOS_VER-$ARCH.default:$ORIG_PATH"
|
export PATH="$HOME/SailfishOS/bin:$HOME/mersdk/targets/Sailfish-$SFOS_VER-$ARCH.default/usr/lib/qt5/bin:$HOME/.config/SailfishSDK/libsfdk/build-target-tools/Sailfish SDK Build Engine/SailfishOS-$SFOS_VER-$ARCH.default:$ORIG_PATH"
|
||||||
export SFDK_OPTIONS="-c target=SailfishOS-$SFOS_VER-$ARCH"
|
export SFDK_OPTIONS="-c target=SailfishOS-$SFOS_VER-$ARCH"
|
||||||
|
sfdk config --global --push no-fix-version
|
||||||
cd $PROJECT
|
cd $PROJECT
|
||||||
mkdir $SHADOW
|
mkdir $SHADOW
|
||||||
cd $SHADOW
|
cd $SHADOW
|
||||||
|
@ -35,7 +36,7 @@ function build() {
|
||||||
fi
|
fi
|
||||||
sfdk make
|
sfdk make
|
||||||
sfdk package
|
sfdk package
|
||||||
perl-rename -v 's/\+.{29}//g' RPMS/*.rpm
|
# perl-rename -v 's/\+.{29}//g' RPMS/*.rpm
|
||||||
cp -f -v RPMS/*.rpm $RPM_DEST_DIR/
|
cp -f -v RPMS/*.rpm $RPM_DEST_DIR/
|
||||||
cd $PROJECT
|
cd $PROJECT
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue