Skip to content

Commit b2b959d

Browse files
author
Christophe Dumez
committed
Improve Mac packaging.
We now ship qt translations.
1 parent 6f693bc commit b2b959d

32 files changed

Lines changed: 43 additions & 5 deletions

macxconf.pri

Lines changed: 39 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,50 @@ LIBS += -lssl -lcrypto
1616
# Boost system lib
1717
LIBS += -lboost_system-mt
1818
# Boost filesystem lib (Not needed for libtorrent >= 0.16.0)
19-
LIBS += -lboost_filesystem-mt
19+
#LIBS += -lboost_filesystem-mt
2020
# Carbon
2121
LIBS += -framework Carbon -framework IOKit
2222

2323
document_icon.path = Contents/Resources
24-
document_icon.files = Icons/qBitTorrentDocument.icns
25-
24+
document_icon.files = mac/qBitTorrentDocument.icns
2625
QMAKE_BUNDLE_DATA += document_icon
27-
ICON = Icons/qbittorrent_mac.icns
28-
QMAKE_INFO_PLIST = Info.plist
26+
27+
qt_conf.path = Contents/Resources
28+
qt_conf.files = mac/qt.conf
29+
QMAKE_BUNDLE_DATA += qt_conf
30+
31+
qt_translations.path = Contents/MacOS/translations
32+
qt_translations.files = qt-translations/qt_ar.qm \
33+
qt-translations/qt_bg.qm \
34+
qt-translations/qt_ca.qm \
35+
qt-translations/qt_cs.qm \
36+
qt-translations/qt_da.qm \
37+
qt-translations/qt_de.qm \
38+
qt-translations/qt_es.qm \
39+
qt-translations/qt_fi.qm \
40+
qt-translations/qt_fr.qm \
41+
qt-translations/qt_gl.qm \
42+
qt-translations/qt_he.qm \
43+
qt-translations/qt_hu.qm \
44+
qt-translations/qt_it.qm \
45+
qt-translations/qt_ja.qm \
46+
qt-translations/qt_ko.qm \
47+
qt-translations/qt_lt.qm \
48+
qt-translations/qt_nl.qm \
49+
qt-translations/qt_pl.qm \
50+
qt-translations/qt_pt.qm \
51+
qt-translations/qt_pt_BR.qm \
52+
qt-translations/qt_ru.qm \
53+
qt-translations/qt_sk.qm \
54+
qt-translations/qt_sv.qm \
55+
qt-translations/qt_tr.qm \
56+
qt-translations/qt_uk.qm \
57+
qt-translations/qt_zh_CN.qm \
58+
qt-translations/qt_zh_TW.qm
59+
QMAKE_BUNDLE_DATA += qt_translations
60+
61+
ICON = mac/qbittorrent_mac.icns
62+
QMAKE_INFO_PLIST = mac/Info.plist
2963

3064
DEFINES += WITH_GEOIP_EMBEDDED
3165
message("On Mac OS X, GeoIP database must be embedded.")
File renamed without changes.

src/mac/qt.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[Paths]
2+
Prefix = MacOS
3+
Translations = translations
4+
Plugins = PlugIns

src/qt-translations/qt_ar.qm

33.1 KB
Binary file not shown.

src/qt-translations/qt_bg.qm

87.5 KB
Binary file not shown.

src/qt-translations/qt_ca.qm

140 KB
Binary file not shown.

src/qt-translations/qt_cs.qm

309 KB
Binary file not shown.

src/qt-translations/qt_da.qm

117 KB
Binary file not shown.

0 commit comments

Comments
 (0)