File indexing completed on 2024-05-05 05:39:59
0001 #!/bin/sh 0002 0003 VERSION=1.9.3 0004 PKGVERS=0 0005 beta=0 0006 0007 rm -rf roliserver 0008 rm -rf rolisteam-packaging 0009 0010 rm -rf tmp.* 0011 0012 GIT_BRANCH="stable" 0013 cd .. 0014 PACKAGING_ROLISTEAM_ROOT=`pwd` 0015 cd - 0016 0017 ICON_PATH="rolisteam/resources/logo/rolisteam.svg" 0018 DESKTOP_FILE_PATH=$PACKAGING_ROLISTEAM_ROOT/rolisteam.desktop 0019 0020 0021 0022 git=git@invent.kde.org:rolisteam/rolisteam.git 0023 gitpackaging=git@invent.kde.org:rolisteam/rolisteam-packaging.git 0024 0025 0026 dest=`mktemp -d -p ./` 0027 0028 cd $dest 0029 DEBIAN_ROOT=$PACKAGING_ROLISTEAM_ROOT"/linux/ubuntu/debian" 0030 CHANGE_LOG=$PACKAGING_ROLISTEAM_ROOT"/linux/changelog" 0031 CONFIG_FILE=$PACKAGING_ROLISTEAM_ROOT"/default.conf" 0032 git clone $gitpackaging 0033 0034 if [ $# -gt 0 ] 0035 then 0036 for i in "$@"; do 0037 if [ "$i" = "appimage" ] 0038 then 0039 echo "No appimage yet" 0040 #export QML_SOURCES_PATHS="$PACKAGING_ROLISTEAM_ROOT/$dest/rolisteam/rolisteam/client/charactersheet/qml" 0041 # git clone --recursive $git 0042 #mkdir build 0043 #cd build 0044 #lrelease ../rolisteam/client/client.pro 0045 #qmake -r ../rolisteam/rolisteam.pro CONFIG+=release . 0046 #make -j8 install INSTALL_ROOT=../AppDir/usr/bin/ 0047 #wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage 0048 #wget https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-x86_64.AppImage 0049 ## make them executable 0050 #chmod +x linuxdeploy*.AppImage 0051 #mv AppDir/usr/bin/usr/local/bin/* AppDir/usr/bin/ 0052 #./linuxdeploy-x86_64.AppImage --appdir AppDir -e AppDir/usr/bin/rolisteam -i ../$ICON_PATH -d $DESKTOP_FILE_PATH --plugin qt --output appimage 0053 #mv Rolisteam*.AppImage ../../ 0054 #cd .. 0055 0056 fi 0057 if [ "$i" = "tarball" ] 0058 then 0059 echo "No tarball yet" 0060 #mkdir rolisteam 0061 #cp ./rolisteam.desktop rolisteam/ 0062 #cp ./changelog rolisteam/ 0063 #cd rolisteam 0064 #git clone --recursive $git 0065 #cp ./rolisteam.desktop rolisteam-$VERSION/ 0066 #mv rolisteam rolisteam-$VERSION 0067 #cp ./changelog rolisteam-$VERSION/ 0068 #cd rolisteam-$VERSION 0069 #rm -rf packaging 0070 # find . -name ".git*" -exec rm -rf {} \; 0071 # lrelease client/client.pro 0072 #cd .. 0073 #tar -czf rolisteam-$VERSION.tar.gz rolisteam-$VERSION 0074 #zip -r rolisteam-$VERSION.zip rolisteam-$VERSION 0075 fi 0076 if [ "$i" = "build" ] 0077 then 0078 echo "Clone Rolisteam sources from GIT" 0079 git clone -b $GIT_BRANCH --recursive $git 0080 0081 echo "\nMove Files" 0082 mv rolisteam rolisteam-$VERSION 0083 cp -R $DEBIAN_ROOT rolisteam-$VERSION/ 0084 cp $CHANGE_LOG rolisteam-$VERSION/debian/ 0085 cp $CONFIG_FILE rolisteam-$VERSION/ 0086 0087 0088 echo "\nStart build" 0089 cd rolisteam-$VERSION 0090 lrelease server/server.pro 0091 rm -rf packaging 0092 rm -rf .git 0093 #dch -i 0094 dpkg-buildpackage -rfakeroot 0095 pwd 0096 #echo "y\n" | debuild -S -sa 0097 cd .. 0098 #dput ppa:rolisteam/ppa roliserver_${VERSION}ubuntu${PKGVERS}_source.changes 0099 #dput -f ppa:rolisteam/rolisteamdev rolisteam_${VERSION}ubuntu1~ppa$PKGVERS~beta${beta}_source.changes 0100 #dput -f ppa:rolisteam/rolisteamdev rolisteam_${VERSION}ubuntu${PKGVERS}_source.changes 0101 fi 0102 done 0103 fi 0104