Skip to content

Commit

Permalink
bundle: fix macos bundler (#805)
Browse files Browse the repository at this point in the history
  • Loading branch information
cosven committed Feb 24, 2024
1 parent 3cf7a01 commit 9631a09
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion feeluown/pyinstaller/main.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
import sys
import os
import feeluown.__main__


if __name__ == '__main__':
# Chdir first and then load feeluown, so that libmpv can be loaded correctly.
# On macOS, the dir is changed to FeelUOwnX.app/Contents/Frameworks.
if hasattr(sys, '_MEIPASS'):
os.chdir(sys._MEIPASS)

import feeluown.__main__

os.environ.setdefault('FUO_LOG_TO_FILE', '1')
feeluown.__main__.main()

0 comments on commit 9631a09

Please sign in to comment.