Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
7faa0338
Commit
7faa0338
authored
Jan 29, 2012
by
a b
Browse files
Mac fixes
parent
e8844dee
Changes
4
Show whitespace changes
Inline
Side-by-side
cockatrice/src/main.cpp
View file @
7faa0338
...
...
@@ -104,11 +104,11 @@ int main(int argc, char *argv[])
if
(
!
db
->
getLoadSuccess
())
if
(
db
->
loadCardDatabase
(
dataDir
+
"/cards.xml"
))
settingsCache
->
setCardDatabasePath
(
dataDir
+
"/cards.xml"
);
if
(
!
QDir
(
settingsCache
->
getDeckPath
()).
exists
())
{
if
(
!
QDir
(
settingsCache
->
getDeckPath
()).
exists
()
||
settingsCache
->
getDeckPath
().
isEmpty
()
)
{
QDir
().
mkpath
(
dataDir
+
"/decks"
);
settingsCache
->
setDeckPath
(
dataDir
+
"/decks"
);
}
if
(
!
QDir
(
settingsCache
->
getPicsPath
()).
exists
())
{
if
(
!
QDir
(
settingsCache
->
getPicsPath
()).
exists
()
||
settingsCache
->
getPicsPath
().
isEmpty
()
)
{
QDir
().
mkpath
(
dataDir
+
"/pics"
);
settingsCache
->
setPicsPath
(
dataDir
+
"/pics"
);
}
...
...
common/decklist.cpp
View file @
7faa0338
#include
<QFile>
#include
<QTextStream>
#include
<QXmlStreamReader>
#include
<QXmlStreamWriter>
#include
<QVariant>
#include
<QCryptographicHash>
#include
"decklist.h"
...
...
common/decklist.h
View file @
7faa0338
...
...
@@ -9,13 +9,15 @@
#include
<QSet>
#include
<QMap>
// Required on Mac. Forward declaration doesn't work. Don't ask why.
#include
<QtCore/QXmlStreamReader>
#include
<QtCore/QXmlStreamWriter>
#include
"pb/move_card_to_zone.pb.h"
class
CardDatabase
;
class
QIODevice
;
class
QTextStream
;
class
QXmlStreamReader
;
class
QXmlStreamWriter
;
class
InnerDecklistNode
;
...
...
prepareMacRelease.sh
View file @
7faa0338
...
...
@@ -3,17 +3,16 @@
FRAMEWORKS
=
"Core Gui Multimedia Network Svg Xml Script"
DATE
=
`
date
'+%Y%m%d'
`
#QTDIR="/Users/brukie/QtSDK/Desktop/Qt/474/gcc"
QTLIB
=
"/usr/local/Qt4.7/lib"
QTPLUGINS
=
"/usr/local/Qt4.7/plugins"
QTLIB
=
"/Users/brukie/qt/lib"
QTPLUGINS
=
"/Users/brukie/qt/plugins"
PROTOBUF
=
"/Users/brukie/protobuf"
DIR
=
cockatrice_mac_
$DATE
if
[
-d
$DIR
]
;
then
echo
"delete old dir first"
;
exit
1
;
fi
mkdir
$DIR
cp
-R
cockatrice/cockatrice.app
$DIR
cp
-R
oracle/oracle.app
$DIR
mkdir
$DIR
/decks
mkdir
$DIR
/pics
cp
-R
build/cockatrice/cockatrice.app
$DIR
cp
-R
build/oracle/oracle.app
$DIR
mkdir
$DIR
/Frameworks
cp
-R
sounds zonebg
$DIR
cp
-R
$QTPLUGINS
$DIR
/PlugIns
...
...
@@ -23,7 +22,7 @@ done
find
$DIR
/Frameworks
-name
'*debug*'
|xargs
-n
1
rm
-f
find
$DIR
/Frameworks
-name
'Headers'
|xargs
-n
1
rm
-rf
find
$DIR
/PlugIns
-name
'*debug*'
|xargs
-n
1
rm
-f
cp
$PROTOBUF
/lib/libprotobuf.7.dylib
$DIR
/Frameworks
cd
$DIR
for
f
in
$FRAMEWORKS
;
do
...
...
@@ -43,6 +42,9 @@ for f in $FRAMEWORKS; do
done
done
install_name_tool
-id
@executable_path/../../../libprotobuf.7.dylib Frameworks/libprotobuf.7.dylib
install_name_tool
-change
$PROTOBUF
/lib/libprotobuf.7.dylib @executable_path/../../../Frameworks/libprotobuf.7.dylib cockatrice.app/Contents/MacOS/cockatrice
cd
..
VOL
=
cockatrice_mac_
${
DATE
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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