Skip to content

Commit

Permalink
adding workaround starter app to run pupil capture on mac.
Browse files Browse the repository at this point in the history
  • Loading branch information
mkassner committed Oct 18, 2013
1 parent 6716719 commit c6238fc
Show file tree
Hide file tree
Showing 9 changed files with 56 additions and 3 deletions.
5 changes: 4 additions & 1 deletion deploy/finalize_bundle_mac.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@

import shutil
import write_version_file
print "starting version stript:"
write_version_file.main('dist/Pupil Capture.app/Contents/MacOS')
print "created version file in dist folder"

print "copy starter app"
shutil.copytree('run_pupil_capture_from_mac_terminal.app', 'dist/run_pupil_capture_from_mac_terminal.app')
2 changes: 1 addition & 1 deletion deploy/macOS_10.8_x64.spec
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ exe = EXE(pyz,
debug=False,
strip=None,
upx=False,
console=False)
console=True)

coll = COLLECT(exe,
a.binaries,
Expand Down
46 changes: 46 additions & 0 deletions deploy/run_pupil_capture_from_mac_terminal.app/Contents/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleAllowMixedLocalizations</key>
<true/>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>applet</string>
<key>CFBundleIconFile</key>
<string>applet</string>
<key>CFBundleIdentifier</key>
<string>com.apple.ScriptEditor.id.run-pupil-capture-from-terminal</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>run_pupil_capture_from_terminal</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>aplt</string>
<key>LSMinimumSystemVersionByArchitecture</key>
<dict>
<key>x86_64</key>
<string>10.6</string>
</dict>
<key>LSRequiresCarbon</key>
<true/>
<key>WindowState</key>
<dict>
<key>dividerCollapsed</key>
<false/>
<key>eventLogLevel</key>
<integer>-1</integer>
<key>name</key>
<string>ScriptWindowState</string>
<key>positionOfDivider</key>
<real>333</real>
<key>savedFrame</key>
<string>55 281 602 597 0 0 1440 878 </string>
<key>selectedTabView</key>
<string>event log</string>
</dict>
</dict>
</plist>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{\rtf1\ansi\ansicpg1252\cocoartf1187\cocoasubrtf340
{\fonttbl}
{\colortbl;\red255\green255\blue255;}
}
2 changes: 1 addition & 1 deletion pupil_src/shared_modules/uvc_capture/mac_video/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ class Camera_List(list):
def __init__(self):
if getattr(sys, 'frozen', False):
#explicit import needed when frozen
import QTKit
import QTKit

from QTKit import QTCaptureDevice,QTMediaTypeVideo
qt_cameras = QTCaptureDevice.inputDevicesWithMediaType_(QTMediaTypeVideo)
Expand Down

0 comments on commit c6238fc

Please sign in to comment.