summaryrefslogtreecommitdiffstats
path: root/Jenkinsfile
diff options
context:
space:
mode:
Diffstat (limited to 'Jenkinsfile')
-rw-r--r--Jenkinsfile42
1 files changed, 26 insertions, 16 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index 60dbabf..08d484c 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -129,32 +129,42 @@ stage ("Post processing") {
mkdir -p $WORKSPACE/INST/$QT_VER/x86-linux64-shared
tar -xzf $WORKSPACE/qt-$QT_VER-shared-x86-linux64.tgz -C $WORKSPACE/INST/$QT_VER/x86-linux64-shared
+ rm -f $WORKSPACE/qt-$QT_VER-shared-x86-linux64.tgz
+ cp -f $WORKSPACE/qt.conf $WORKSPACE/INST/$QT_VER/x86-linux64-shared/bin
+
mkdir -p $WORKSPACE/INST/$QT_VER/x86-linux64-static
tar -xzf $WORKSPACE/qt-$QT_VER-static-x86-linux64.tgz -C $WORKSPACE/INST/$QT_VER/x86-linux64-static
+ rm -f $WORKSPACE/qt-$QT_VER-static-x86-linux64.tgz
+ cp -f $WORKSPACE/qt.conf $WORKSPACE/INST/$QT_VER/x86-linux64-static/bin
mkdir -p $WORKSPACE/INST/$QT_VER/x86-mingw64
tar -xzf $WORKSPACE/qt-$QT_VER-x86-mingw64.tgz -C $WORKSPACE/INST/$QT_VER/x86-mingw64
- mkdir -p $WORKSPACE/INST/$QT_VER/x86-mingw64/xbin-x86-linux64
- cp -f $WORKSPACE/INST/$QT_VER/x86-linux64-shared/bin/* $WORKSPACE/INST/$QT_VER/x86-mingw64/xbin-x86-linux64
+ rm -f $WORKSPACE/qt-$QT_VER-x86-mingw64.tgz
+ cp -f $WORKSPACE/qt.conf $WORKSPACE/INST/$QT_VER/x86-mingw64/bin
+ mkdir -p $WORKSPACE/INST/$QT_VER/x86-mingw64/xbin
+ cp -f $WORKSPACE/INST/$QT_VER/x86-linux64-static/bin/* $WORKSPACE/INST/$QT_VER/x86-mingw64/xbin
+ rm -f $WORKSPACE/INST/$QT_VER/x86-mingw64/xbin/linguist
+ rm -f $WORKSPACE/INST/$QT_VER/x86-mingw64/xbin/designer
+ rm -f $WORKSPACE/INST/$QT_VER/x86-mingw64/xbin/assistant
mkdir -p $WORKSPACE/INST/$QT_VER/x86_64-msvc
- unzip -o $WORKSPACE/qt-$QT_VER-x86_64-msvc.zip -d $WORKSPACE/INST/$QT_VER/x86_64-msvc
+ unzip -qo $WORKSPACE/qt-$QT_VER-x86_64-msvc.zip -d $WORKSPACE/INST/$QT_VER/x86_64-msvc
+ rm -f $WORKSPACE/qt-$QT_VER-x86_64-msvc.zip
+ cp -f $WORKSPACE/qt.conf $WORKSPACE/INST/$QT_VER/x86_64-msvc/bin
- # generate qt.conf for linux to windows cross builds ...
- rm -f $WORKSPACE/INST/$QT_VER/x86-mingw64/bin/qt.conf
- echo "[Paths]" > $WORKSPACE/INST/$QT_VER/x86-mingw64/bin/qt.conf
- echo "Prefix=.." >> $WORKSPACE/INST/$QT_VER/x86-mingw64/bin/qt.conf
- echo "Libraries = lib" >> $WORKSPACE/INST/$QT_VER/x86-mingw64/bin/qt.conf
- echo "Plugins = plugins" >> $WORKSPACE/INST/$QT_VER/x86-mingw64/bin/qt.conf
- echo "HostBinaries=xbin" >> $WORKSPACE/INST/$QT_VER/x86-mingw64/bin/qt.conf
- echo "TargetSpec=win32-g++" >> $WORKSPACE/INST/$QT_VER/x86-mingw64/bin/qt.conf
- cp -f $WORKSPACE/INST/$QT_VER/x86-mingw64/bin/qt.conf \
- $WORKSPACE/INST/$QT_VER/x86-mingw64/xbin-x86-linux64/
#
- # finally recreate the whole mingw64-shared archive ...
- rm -f $WORKSPACE/qt-$QT_VER-x86-mingw64.tgz
+ # finally recreate packages ...
cd $WORKSPACE/INST/$QT_VER/x86-mingw64
- tar -zcf $WORKSPACE/qt-$QT_VER-x86-mingw64.tgz .
+ zip -qr $WORKSPACE/qt-$QT_VER-$(BUILD_NUMBER)-x86-mingw64.zip .
+
+ cd $WORKSPACE/INST/$QT_VER/x86-linux64-shared
+ tar -zcf $WORKSPACE/qt-$QT_VER-$(BUILD_NUMBER)-x86-linux64-shared.tgz .
+
+ cd $WORKSPACE/INST/$QT_VER/x86-linux64-static
+ tar -zcf $WORKSPACE/qt-$QT_VER-$(BUILD_NUMBER)-x86-linux64-static.tgz .
+
+ cd $WORKSPACE/INST/$QT_VER/x86_64-msvc
+ zip -qr $WORKSPACE/qt-$QT_VER-$(BUILD_NUMBER)-x86_64-msvc.zip .
cd $WORKSPACE/
rm -Rf $WORKSPACE/INST