aboutsummaryrefslogtreecommitdiffstats
path: root/Lib
AgeCommit message (Collapse)Author
2016-01-28Integrate py2appintegrate-py2app--rb3Teddy Wing
Purpose: -------- This change switches the packaging tool on Mac from PyInstaller to Py2app in order to take advantage of Py2app's support for ARGV emulation. This allows us to open files by dragging them onto the application. With Adrien's change ac63e80c57b37527f331b209f88d583deeeabcd3, dragging files onto the application will open files even if the application is already launched. To Build: --------- Run $ sh Lib/build.sh This is the same as: $ python setup.py py2app Only use py2app if we run the setup file on a Mac. We also have some pre- and post-build instructions that need to be run, and these are only executed when on a Mac and the `py2app` argument is passed to `setup.py` (so they don't get mistakenly run on `python setup.py install`). If the build script is run on a non-Mac platform, PyInstaller will be used to build the application bundle as before. Additional Information ---------------------- * setup.py: Uncommented the `sys` import as I needed it to determine the current platform and whether we're running `py2app`. * Globs are used in the Qt framework paths to allow developers/packagers to use different versions of Qt5. I did this because I'm running OS X 10.8 and couldn't get Qt 5.5 to build on my machine, so I'm using homebrew/versions/qt52. Homebrew is assumed. * The `libqsvgicon.dylib` dylib must be added manually or our glyph view toolbar icons don't get rendered. * The `libqcocoa.dylib` library must be added or we get this error when trying to start the application: This application failed to start because it could not find or load the Qt platform plugin "cocoa". Reinstalling the application may fix this problem. Abort trap: 6 * We supply a `qt.conf` file to specify the location of the Qt plugins directory. This allows us to specify where to find the dylibs we manually copied into the application bundle. Info.plist ---------- The Info.plist file generated for the application bundle has been extended and modified. * `NSHighResolutionCapable=YES` was kept * `LSBackgroundOnly=NO` was removed because not setting it turns it off by default * Include the `CFBundleIdentifier` copied from `TruFont.spec` * Set `NSHumanReadableCopyright` to empty string. Otherwise by default Py2app will insert this key for you whether you like it or not with the value "Copyright not specified". * Add the `CFBundleDocumentTypes` key to declare TruFont as an app capable of opening *.ufo files. This allows us to select TruFont as the default app to open one or all files of this type using the "Open with…" functionality throughout OS X. Known Issues ------------ * The button borders in the glyph view toolbar are wrong. They're square when they should be invisible with gradiented backgrounds. Not sure how to correct this. * This application bundle is about 20 Mb larger than the previous one generated by PyInstaller. Not sure what's going on there.
2016-01-28defcon: upgrade saving methodAdrien Tétar
2016-01-27meta: minor fixes throughoutAdrien Tétar
2016-01-24fontView: check for required attrs before exportingAdrien Tétar
2016-01-24Revert "glyphView: print more errors on assertion failure"Adrien Tétar
This reverts commit d6fea8bf440d46054f0489fc023e0207b4d1f9f5.
2016-01-24fontView: more glyphListAdrien Tétar
2016-01-24fontView: bring glyphList loading into the app, hardenAdrien Tétar
2016-01-24fontView: improved error reportingAdrien Tétar
2016-01-23featureTextEditor: more drag and dropAdrien Tétar
2016-01-23featureTextEditor: drag/drop fea files onlyAdrien Tétar
2016-01-21__main__: cleanup unused importsAdrien Tétar
2016-01-21selectionTool: allow anchor renameAdrien Tétar
2016-01-21fontView: refactor spawning mechanismAdrien Tétar
now app-centric
2016-01-21FilterSelectionFactory: fix open-contour issueAdrien Tétar
2016-01-21ColorVignette: polish paintingAdrien Tétar
2016-01-17uiMethods: fix removal derpAdrien Tétar
2016-01-17uiMethods: remove trailing offCurve in open contourAdrien Tétar
2016-01-17drawing: fix a few thingsAdrien Tétar
2016-01-17tools: change switching logic, add shortcutsAdrien Tétar
* block change of tool inside a mouse event chain (mousePress -> [mouseMove] -> mouseRelease) and block * add toolDisabled() * add tools shortcuts (numbers)
2016-01-12fontView: use ufo2ft, add repr.Adrien Tétar
2016-01-11metricsWindow: fix update syncAdrien Tétar
2016-01-10selectionTool: impl. onCurve sliding w. AltAdrien Tétar
2016-01-10bezierMath: refactor and split projection/distanceAdrien Tétar
2016-01-09fontView: recover from invalid fontsAdrien Tétar
2016-01-09drawing: draw lines with FP precisionAdrien Tétar
2016-01-09representationFactories: remove the old StartPoints factoryAdrien Tétar
2016-01-09drawing: show selected anchorsAdrien Tétar
2016-01-09selectionTool: allow Shift constraint of offCurvesAdrien Tétar
2016-01-09app: reform entry pointsAdrien Tétar
2016-01-07glyphViewFactory: drop robofab callsAdrien Tétar
2016-01-04scriptingWindow: define qApp var to append to ev.loopAdrien Tétar
2016-01-04colorWidgets: add a TODOAdrien Tétar
2016-01-02PyInstaller isn't needed to run the programAdrien Tétar
2015-12-26baseTool: exclude components in magnetPosAdrien Tétar
2015-12-26glyphView: add fitScaleBBoxAdrien Tétar
2015-12-26drawing: small vMetrics tweaksAdrien Tétar
2015-12-25codeEditor: better quotation regexAdrien Tétar
2015-12-25README: badgeAdrien Tétar
2015-12-25glyphView: don't use bounds for size-hint, so to have scrollbars stabilityAdrien Tétar
we use a fixed offset instead
2015-12-25tools: updatesAdrien Tétar
2015-12-25ComponentQPainterPathFactory: use the components penAdrien Tétar
2015-12-22glyphView: enable layer actions selectivelyAdrien Tétar
2015-12-22codeEditor: fix some textCursor bookkeeping issueAdrien Tétar
2015-12-21fontView: expand edit actionsAdrien Tétar
2015-12-21glyphView: prepareUndo() before pasteAdrien Tétar
2015-12-21glyphView: print more errors on assertion failureAdrien Tétar
2015-12-20ComponentQPainterPathFactory: handle nested componentsAdrien Tétar
2015-12-20penTool: don't freeze when clicking on non-pointAdrien Tétar
2015-12-20meta: some fixupsAdrien Tétar
2015-12-18Merge pull request #150 from trufont/glyphView_ngAdrien Tétar
glyphView_ng