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
9 years ago
by
Craig Watson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated release script for OSX
parent
2cec22c9
Changes
1
Hide 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 @@
APPLICATION_NAME
=
"OpenBoard"
BASE_
TROLLTECH_DIRECTORY
=
/usr/local/Trolltech/Qt-4.8.0
BASE_
QT_DIR
=
~/Qt/5.5/clang_64
# Executables
QMAKE
=
$BASE_
TROLLTECH_DIRECTORY
/bin/qmake
MACDEPLOYQT
=
$BASE_
TROLLTECH_DIRECTORY
/bin/macdeployqt
DMGUTIL
=
"
`
pwd
`
/../
Sankore
-ThirdParty/refnum/dmgutil/dmgutil.pl"
QMAKE
=
$BASE_
QT_DIR
/bin/qmake
MACDEPLOYQT
=
$BASE_
QT_DIR
/bin/macdeployqt
DMGUTIL
=
"
`
pwd
`
/../
OpenBoard
-ThirdParty/refnum/dmgutil/dmgutil.pl"
DSYMUTIL
=
/usr/bin/dsymutil
STRIP
=
/usr/bin/strip
PLISTBUDDY
=
/usr/libexec/PlistBuddy
ICEBERG
=
/usr/local/bin/freeze
LRELEASE
=
$BASE_
TROLLTECH_DIRECTORY
/bin/lrelease
LRELEASE
=
$BASE_
QT_DIR
/bin/lrelease
# Directories
BUILD_DIR
=
"build/macx/release"
PRODUCT_DIR
=
"
$BUILD_DIR
/product"
BASE_QT_TRANSLATIONS_DIRECTORY
=
../Qt4.8
/translations
BASE_QT_TRANSLATIONS_DIRECTORY
=
$BASE_QT_DIR
/translations
function
notify
{
GROWLNOTIFY
=
`
which growlnotify
`
...
...
@@ -90,8 +90,8 @@ function addImporter {
fi
cd
${
importerDir
}
git reset
--hard
git pull
#
git reset --hard
#
git pull
rm
-rf
${
importerName
}
.app
rm
MakeFile
*
rm
-rf
release
...
...
@@ -149,7 +149,7 @@ notify "Compiling ..."
make
-j4
release
notify
"Qt Translations ..."
$LRELEASE
$BASE_QT_TRANSLATIONS_DIRECTORY
/translations.pro
#
$LRELEASE $BASE_QT_TRANSLATIONS_DIRECTORY/translations.pro
addQtTranslations
cp
-R
resources/customizations
$PRODUCT_DIR
/
$APPLICATION_NAME
.app/Contents/Resources
...
...
@@ -159,19 +159,19 @@ VERSION=`cat "$BUILD_DIR/version"`
if
[
!
-f
"
$BUILD_DIR
/version"
]
;
then
echo
"version not found"
exit
1
else
notify
"Tagging ..."
LAST_COMMITED_VERSION
=
"
`
git describe
$(
git rev-list
--tags
--max-count
=
1
)
`
"
if
[
"v
$VERSION
"
!=
"
$LAST_COMMITED_VERSION
"
]
;
then
echo
creating a tag with the version
$VERSION
#
else
#
notify "Tagging ..."
#
LAST_COMMITED_VERSION="`git describe $(git rev-list --tags --max-count=1)`"
#
if [ "v$VERSION" != "$LAST_COMMITED_VERSION" ]; then
#
echo creating a tag with the version $VERSION
# git tag -a "v$VERSION" -m "Generated setup for v$VERSION"
# git push origin --tags
fi
#
fi
fi
if
[
$?
!=
0
]
;
then
abort
"compilation failed"
fi
#
if [ $? != 0 ]; then
#
abort "compilation failed"
#
fi
DMG
=
"
$APPLICATION_NAME
.dmg"
...
...
This diff is collapsed.
Click to expand it.
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