Skip to content

Commit

Permalink
fixes build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
myTonino committed Apr 8, 2017
1 parent 4368d5b commit d90f20d
Show file tree
Hide file tree
Showing 7 changed files with 52 additions and 9 deletions.
8 changes: 4 additions & 4 deletions src/setup-mac2.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,12 +174,12 @@ def my_parse_makefile(filename, g):
# 'QtTest',
# 'QtWebKit',
# 'QtXMLPatterns']:
# for root,dirs,files in os.walk('./Artisan.app/Contents/Frameworks/' + fw + ".framework"):
# for root,dirs,files in os.walk('./Tonino.app/Contents/Frameworks/' + fw + ".framework"):
# for file in files:
# print 'Deleting', file
# os.remove(os.path.join(root,file))
# for Qt5
print '*** Removing unused Qt frameworks ***'
print('*** Removing unused Qt frameworks ***')
for fw in [
'QtDeclarative.framework',
'QtHelp.framework',
Expand Down Expand Up @@ -207,9 +207,9 @@ def my_parse_makefile(filename, g):
'QtGui.framework/Versions/4.0',
'QtWidgets.framework/Versions/4',
'QtWidgets.framework/Versions/4.0']:
for root,dirs,files in os.walk('./Artisan.app/Contents/Frameworks/' + fw):
for root,dirs,files in os.walk('./Tonino.app/Contents/Frameworks/' + fw):
for file in files:
print 'Deleting', file
print('Deleting', file)
os.remove(os.path.join(root,file))


Expand Down
43 changes: 43 additions & 0 deletions src/setup-mac35.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,49 @@ def my_parse_makefile(filename, g):
# generated by v0.8 of py2app:
#os.system(r'cp /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/config-3.3m/Makefile ./Tonino.app/Contents/Resources/lib/python3.3/config-3.3m/')

# delete unused Qt.framework files (py2app exclude does not seem to work)
print('*** Removing unused Qt frameworks ***')
for fw in [
'QtBluetooth.framework',
'QtConcurrent.framework',
'QtDesigner.framework',
'QtDeclarative.framework',
'QtHelp.framework',
'QtLocation.framework',
'QtMultimedia.framework',
'QtMultimediaWidgets.framework',
'QtNetwork.framework',
'QtNfc.framework',
'QtOpenGL.framework',
'QtScript.framework',
'QtScriptTools.framework',
'QtSql.framework',
'QtDesigner.framework',
'QtTest.framework',
'QtWebKit.framework',
'QtWebKitWidgets.framework',
'QtXMLPatterns.framework',
'QtCLucene.framework',
'QtPositioning.framework',
'QtQml.framework',
'QtQuick.framework',
'QtQuickWidgets.framework',
'QtSensors.framework',
'QtSerialPort.framework',
'QtSvg.framework',
'QtWebChannel.framework',
'QtWebSockets.framework',
'QtCore.framework/Versions/4',
'QtCore.framework/Versions/4.0',
'QtGui.framework/Versions/4',
'QtGui.framework/Versions/4.0',
'QtWidgets.framework/Versions/4',
'QtWidgets.framework/Versions/4.0']:
for root,dirs,files in os.walk('./Tonino.app/Contents/Frameworks/' + fw):
for file in files:
print('Deleting', file)
os.remove(os.path.join(root,file))

print('*** Removing Qt debug libs ***')
for root, dirs, files in os.walk('.'):
for file in files:
Expand Down
2 changes: 1 addition & 1 deletion src/translations/tonino_de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
</message>
<message encoding="UTF-8">
<location filename="../uic/AboutDialogUI.py" line="77"/>
<source>Copyright © 2017 Marko Luther, Paul Holleis</source>
<source>Copyright © 2017 Marko Luther, Paul Holleis</source>
<translation type="unfinished"></translation>
</message>
</context>
Expand Down
2 changes: 1 addition & 1 deletion src/translations/tonino_es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
</message>
<message encoding="UTF-8">
<location filename="../uic/AboutDialogUI.py" line="77"/>
<source>Copyright © 2017 Marko Luther, Paul Holleis</source>
<source>Copyright © 2017 Marko Luther, Paul Holleis</source>
<translation type="unfinished"></translation>
</message>
</context>
Expand Down
2 changes: 1 addition & 1 deletion src/translations/tonino_fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
</message>
<message encoding="UTF-8">
<location filename="../uic/AboutDialogUI.py" line="77"/>
<source>Copyright © 2017 Marko Luther, Paul Holleis</source>
<source>Copyright © 2017 Marko Luther, Paul Holleis</source>
<translation type="unfinished"></translation>
</message>
</context>
Expand Down
2 changes: 1 addition & 1 deletion src/translations/tonino_it.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
</message>
<message encoding="UTF-8">
<location filename="../uic/AboutDialogUI.py" line="77"/>
<source>Copyright © 2017 Marko Luther, Paul Holleis</source>
<source>Copyright © 2017 Marko Luther, Paul Holleis</source>
<translation type="unfinished"></translation>
</message>
</context>
Expand Down
2 changes: 1 addition & 1 deletion src/translations/tonino_nl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
</message>
<message encoding="UTF-8">
<location filename="../uic/AboutDialogUI.py" line="77"/>
<source>Copyright © 2017 Marko Luther, Paul Holleis</source>
<source>Copyright © 2017 Marko Luther, Paul Holleis</source>
<translation type="unfinished"></translation>
</message>
</context>
Expand Down

0 comments on commit d90f20d

Please sign in to comment.