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
c71305e9
Commit
c71305e9
authored
Dec 14, 2015
by
Craig Watson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated release script for OSX
parent
2cec22c9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
18 deletions
+18
-18
release.macx.sh
release.macx.sh
+18
-18
No files found.
release.macx.sh
View file @
c71305e9
...
@@ -16,21 +16,21 @@
...
@@ -16,21 +16,21 @@
APPLICATION_NAME
=
"OpenBoard"
APPLICATION_NAME
=
"OpenBoard"
BASE_
TROLLTECH_DIRECTORY
=
/usr/local/Trolltech/Qt-4.8.0
BASE_
QT_DIR
=
~/Qt/5.5/clang_64
# Executables
# Executables
QMAKE
=
$BASE_
TROLLTECH_DIRECTORY
/bin/qmake
QMAKE
=
$BASE_
QT_DIR
/bin/qmake
MACDEPLOYQT
=
$BASE_
TROLLTECH_DIRECTORY
/bin/macdeployqt
MACDEPLOYQT
=
$BASE_
QT_DIR
/bin/macdeployqt
DMGUTIL
=
"
`
pwd
`
/../
Sankore
-ThirdParty/refnum/dmgutil/dmgutil.pl"
DMGUTIL
=
"
`
pwd
`
/../
OpenBoard
-ThirdParty/refnum/dmgutil/dmgutil.pl"
DSYMUTIL
=
/usr/bin/dsymutil
DSYMUTIL
=
/usr/bin/dsymutil
STRIP
=
/usr/bin/strip
STRIP
=
/usr/bin/strip
PLISTBUDDY
=
/usr/libexec/PlistBuddy
PLISTBUDDY
=
/usr/libexec/PlistBuddy
ICEBERG
=
/usr/local/bin/freeze
ICEBERG
=
/usr/local/bin/freeze
LRELEASE
=
$BASE_
TROLLTECH_DIRECTORY
/bin/lrelease
LRELEASE
=
$BASE_
QT_DIR
/bin/lrelease
# Directories
# Directories
BUILD_DIR
=
"build/macx/release"
BUILD_DIR
=
"build/macx/release"
PRODUCT_DIR
=
"
$BUILD_DIR
/product"
PRODUCT_DIR
=
"
$BUILD_DIR
/product"
BASE_QT_TRANSLATIONS_DIRECTORY
=
../Qt4.8
/translations
BASE_QT_TRANSLATIONS_DIRECTORY
=
$BASE_QT_DIR
/translations
function
notify
{
function
notify
{
GROWLNOTIFY
=
`
which growlnotify
`
GROWLNOTIFY
=
`
which growlnotify
`
...
@@ -90,8 +90,8 @@ function addImporter {
...
@@ -90,8 +90,8 @@ function addImporter {
fi
fi
cd
${
importerDir
}
cd
${
importerDir
}
git reset
--hard
#
git reset --hard
git pull
#
git pull
rm
-rf
${
importerName
}
.app
rm
-rf
${
importerName
}
.app
rm
MakeFile
*
rm
MakeFile
*
rm
-rf
release
rm
-rf
release
...
@@ -149,7 +149,7 @@ notify "Compiling ..."
...
@@ -149,7 +149,7 @@ notify "Compiling ..."
make
-j4
release
make
-j4
release
notify
"Qt Translations ..."
notify
"Qt Translations ..."
$LRELEASE
$BASE_QT_TRANSLATIONS_DIRECTORY
/translations.pro
#
$LRELEASE $BASE_QT_TRANSLATIONS_DIRECTORY/translations.pro
addQtTranslations
addQtTranslations
cp
-R
resources/customizations
$PRODUCT_DIR
/
$APPLICATION_NAME
.app/Contents/Resources
cp
-R
resources/customizations
$PRODUCT_DIR
/
$APPLICATION_NAME
.app/Contents/Resources
...
@@ -159,19 +159,19 @@ VERSION=`cat "$BUILD_DIR/version"`
...
@@ -159,19 +159,19 @@ VERSION=`cat "$BUILD_DIR/version"`
if
[
!
-f
"
$BUILD_DIR
/version"
]
;
then
if
[
!
-f
"
$BUILD_DIR
/version"
]
;
then
echo
"version not found"
echo
"version not found"
exit
1
exit
1
else
#
else
notify
"Tagging ..."
#
notify "Tagging ..."
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
echo
creating a tag with the version
$VERSION
#
echo creating a tag with the version $VERSION
# git tag -a "v$VERSION" -m "Generated setup for v$VERSION"
# git tag -a "v$VERSION" -m "Generated setup for v$VERSION"
# git push origin --tags
# git push origin --tags
fi
#
fi
fi
fi
if
[
$?
!=
0
]
;
then
#
if [ $? != 0 ]; then
abort
"compilation failed"
#
abort "compilation failed"
fi
#
fi
DMG
=
"
$APPLICATION_NAME
.dmg"
DMG
=
"
$APPLICATION_NAME
.dmg"
...
...
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