Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpenBoard
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lifo
Nicolas Ollinger
OpenBoard
Commits
f086277d
Commit
f086277d
authored
Dec 14, 2015
by
Craig Watson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated release script on Linux
parent
2881790f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
31 deletions
+31
-31
buildDebianPackage.sh
buildDebianPackage.sh
+31
-31
No files found.
buildDebianPackage.sh
View file @
f086277d
...
@@ -35,9 +35,9 @@ initializeVariables()
...
@@ -35,9 +35,9 @@ initializeVariables()
STANDARD_QT_USED
=
false
STANDARD_QT_USED
=
false
PRODUCT_PATH
=
"build/linux/release/product"
PRODUCT_PATH
=
"build/linux/release/product"
QT_PATH
=
"/
usr/local/Trolltech/Qt-4.8.0
"
QT_PATH
=
"/
opt/qt55
"
PLUGINS_PATH
=
"
$QT_PATH
/plugins"
PLUGINS_PATH
=
"
$QT_PATH
/plugins"
GUI_TRANSLATIONS_DIRECTORY_PATH
=
"
../Qt-4.8
/translations"
GUI_TRANSLATIONS_DIRECTORY_PATH
=
"
$QT_PATH
/translations"
QT_LIBRARY_DEST_PATH
=
"
$PRODUCT_PATH
/qtlib"
QT_LIBRARY_DEST_PATH
=
"
$PRODUCT_PATH
/qtlib"
QT_LIBRARY_SOURCE_PATH
=
"
$QT_PATH
/lib"
QT_LIBRARY_SOURCE_PATH
=
"
$QT_PATH
/lib"
if
[
-z
$ARCHITECTURE
]
;
then
if
[
-z
$ARCHITECTURE
]
;
then
...
@@ -107,7 +107,9 @@ copyQtLibrary(){
...
@@ -107,7 +107,9 @@ copyQtLibrary(){
buildWithStandardQt
(){
buildWithStandardQt
(){
STANDARD_QT
=
`
which qmake-qt4
`
# if both Qt4 and Qt5 are installed, choose Qt5
export
QT_SELECT
=
5
STANDARD_QT
=
`
which qmake
`
if
[
$?
==
"0"
]
;
then
if
[
$?
==
"0"
]
;
then
QT_VERSION
=
`
$STANDARD_QT
--version
|
grep
-i
"Using Qt version"
|
sed
-e
"s/Using Qt version
\(
.*
\)
in.*/
\1
/"
`
QT_VERSION
=
`
$STANDARD_QT
--version
|
grep
-i
"Using Qt version"
|
sed
-e
"s/Using Qt version
\(
.*
\)
in.*/
\1
/"
`
if
[
`
echo
$QT_VERSION
|
sed
-e
"s/
\.
//g"
`
-gt
480
]
;
then
if
[
`
echo
$QT_VERSION
|
sed
-e
"s/
\.
//g"
`
-gt
480
]
;
then
...
@@ -115,12 +117,7 @@ buildWithStandardQt(){
...
@@ -115,12 +117,7 @@ buildWithStandardQt(){
STANDARD_QT_USED
=
true
STANDARD_QT_USED
=
true
QMAKE_PATH
=
$STANDARD_QT
QMAKE_PATH
=
$STANDARD_QT
LRELEASES
=
`
which lrelease
`
LRELEASES
=
`
which lrelease
`
if
[
"
`
arch
`
"
==
"i686"
]
||
[
"
$ARCHITECTURE
"
==
"i386"
]
;
then
PLUGINS_PATH
=
"
$STANDARD_QT
/../plugins"
QT_PATH
=
"/usr/lib/i386-linux-gnu"
else
QT_PATH
=
"/usr/lib/
`
arch
`
-linux-gnu"
fi
PLUGINS_PATH
=
"
$QT_PATH
/qt4/plugins"
fi
fi
fi
fi
}
}
...
@@ -135,8 +132,8 @@ buildImporter(){
...
@@ -135,8 +132,8 @@ buildImporter(){
rm
-rf
debug release
rm
-rf
debug release
rm
*
.o
rm
*
.o
git reset
--hard
#
git reset --hard
git pull
#
git pull
$QMAKE_PATH
${
IMPORTER_NAME
}
.pro
$QMAKE_PATH
${
IMPORTER_NAME
}
.pro
make clean
make clean
...
@@ -165,7 +162,7 @@ do
...
@@ -165,7 +162,7 @@ do
done
done
initializeVariables
initializeVariables
buildWithStandardQt
#
buildWithStandardQt
alertIfPreviousVersionInstalled
alertIfPreviousVersionInstalled
...
@@ -212,14 +209,14 @@ VERSION=`cat build/linux/release/version`
...
@@ -212,14 +209,14 @@ VERSION=`cat build/linux/release/version`
if
[
!
-f
build/linux/release/version
]
;
then
if
[
!
-f
build/linux/release/version
]
;
then
notifyError
"version not found"
notifyError
"version not found"
else
#
else
LAST_COMMITED_VERSION
=
"
`
git describe
$(
git rev-list
--tags
--max-count
=
1
)
`
"
#
LAST_COMMITED_VERSION="`git describe $(git rev-list --tags --max-count=1)`"
if
[
"v
$VERSION
"
!=
"
$LAST_COMMITED_VERSION
"
]
;
then
#
if [ "v$VERSION" != "$LAST_COMMITED_VERSION" ]; then
if
[
$MAKE_TAG
==
true
]
;
then
#
if [ $MAKE_TAG == true ]; then
git tag
-a
"OBv
$VERSION
"
-m
"OpenBoard setup for v
$VERSION
"
#
git tag -a "OBv$VERSION" -m "OpenBoard setup for v$VERSION"
git push origin
--tags
#
git push origin --tags
fi
#
fi
fi
#
fi
fi
fi
cp
resources/linux/run.sh
$PRODUCT_PATH
cp
resources/linux/run.sh
$PRODUCT_PATH
...
@@ -240,19 +237,22 @@ cp -R ${IMPORTER_DIR}/${IMPORTER_NAME} $PRODUCT_PATH/Importer
...
@@ -240,19 +237,22 @@ cp -R ${IMPORTER_DIR}/${IMPORTER_NAME} $PRODUCT_PATH/Importer
if
[
$STANDARD_QT_USED
==
false
]
;
then
if
[
$STANDARD_QT_USED
==
false
]
;
then
#copying custom qt library
#copying custom qt library
mkdir
-p
$QT_LIBRARY_DEST_PATH
mkdir
-p
$QT_LIBRARY_DEST_PATH
copyQtLibrary libQtDBus
copyQtLibrary libQt5Core
copyQtLibrary libQtScript
copyQtLibrary libQt5Gui
copyQtLibrary libQtSvg
copyQtLibrary libQt5Multimedia
copyQtLibrary libQtXmlPatterns
copyQtLibrary libQt5MultimediaWidgets
copyQtLibrary libQtNetwork
copyQtLibrary libQt5Network
copyQtLibrary libQtXml
copyQtLibrary libQt5OpenGL
copyQtLibrary libQtGui
copyQtLibrary libQt5PrintSupport
copyQtLibrary libQtCore
copyQtLibrary libQt5Script
copyQtLibrary libphonon
copyQtLibrary libQt5Svg
copyQtLibrary libQtWebKit
copyQtLibrary libQt5WebKit
copyQtLibrary libQt5WebKitWidgets
copyQtLibrary libQt5Xml
copyQtLibrary libQt5XmlPatterns
fi
fi
notifyProgress
"QT"
"Internalization"
notifyProgress
"QT"
"Interna
tiona
lization"
if
[
!
-e
$PRODUCT_PATH
/i18n
]
;
then
if
[
!
-e
$PRODUCT_PATH
/i18n
]
;
then
mkdir
$PRODUCT_PATH
/i18n
mkdir
$PRODUCT_PATH
/i18n
fi
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment