-
Notifications
You must be signed in to change notification settings - Fork 3
/
build_mac_release.sh
executable file
·39 lines (32 loc) · 1.21 KB
/
build_mac_release.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/sh
## Copyright 2009-2018 NTESS. Under the terms
## of Contract DE-NA0003525 with NTESS, the U.S.
## Government retains certain rights in this software.
##
## Copyright (c) 2009-2018, NTESS
## All rights reserved.
##
## Portions are copyright of other developers:
## See the file CONTRIBUTORS.TXT in the top level directory
## the distribution for more information.
##
## This file is part of the SST software package. For license
## information, see the LICENSE file in the top level directory of the
## distribution.
TARGET=MAC_RELEASE
APP=SSTWorkbench
## Create the Target Directory and cd into it
mkdir -p $TARGET
cd $TARGET
## Build the application
qmake ../$APP.pro -r -spec macx-clang CONFIG-=debug CONFIG+=release CONFIG+=x86_64
make
## On Mac, copy the .plist and .icns files into the .app (directory)
cd ..
cp DistributionSupportFiles/Info.plist $TARGET/$APP.app/Contents/
cp DistributionSupportFiles/$APP.icns $TARGET/$APP.app/Contents/Resources/
## On Mac, perform macdeployqt to copy the QT framework components into the .app
## .app (directoryu) to make the .app a self contained unit
macdeployqt $TARGET/$APP.app -dmg
## Run otool to verify libraries are internal
otool -L $TARGET/$APP.app/Contents/MacOS/$APP