Skip to content

Commit

Permalink
switch to pyinstaller dist for macos
Browse files Browse the repository at this point in the history
  • Loading branch information
zaidsheikh committed Apr 15, 2022
1 parent f471ee5 commit 962b408
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmulab_elan_extension.cmdi
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</Resources>
<Components>
<RECOGNIZER>
<recognizer recognizerType="local" runLinux="bash -il ./cmulab_elan_extension.sh" runMac="bash -il ./cmulab_elan_extension.sh" runWin="cmd /c .\cmulab_elan_extension.bat"
<recognizer recognizerType="local" runLinux="bash -il ./cmulab_elan_extension.sh" runMac="bash -il ./cmulab_elan_extension_macos.bash" runWin="cmd /c .\cmulab_elan_extension.bat"
info="CMU Linguistic Annotation Backend">CMU Linguistic Annotation Backend</recognizer>
<!--<documentation icon16="MPG_logo_16.png">cmulab_elan_extension.html</documentation>-->
<documentation>cmulab_elan_extension.html</documentation>
Expand Down
13 changes: 13 additions & 0 deletions cmulab_elan_extension_macos.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash -x
#
# It seems that recognizer processes invoked by ELAN don't inherit any regular
# environmental variables (like PATH), which makes it difficult to track down
# where both Python and ffmpeg(1) might be. These same processes also have
# their locale set to C. This implies a default ASCII file encoding.

export LC_ALL="en_US.UTF-8"
export PYTHONIOENCODING="utf-8"

# change to cmulab_elan_extension dir
#cd "$(dirname "$0")"
./macos/cmulab_elan_extension

0 comments on commit 962b408

Please sign in to comment.