Skip to content

Commit

Permalink
add spec
Browse files Browse the repository at this point in the history
  • Loading branch information
SNianMe committed Dec 15, 2022
1 parent bf177a5 commit fa95b99
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
__pycache__/

/label/
*.spec
# *.spec
45 changes: 45 additions & 0 deletions labelme.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# -*- mode: python -*-
# vim: ft=python

import sys


sys.setrecursionlimit(5000) # required on Windows


a = Analysis(
['labelme/__main__.py'],
pathex=['labelme'],
binaries=[],
datas=[
('labelme/config/default_config.yaml', 'labelme/config'),
('labelme/icons/*', 'labelme/icons'),
('labelme/translate/*', 'labelme/translate'),
],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
)
pyz = PYZ(a.pure, a.zipped_data)
exe = EXE(
pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
name='labelme_cd',
debug=False,
strip=False,
upx=True,
runtime_tmpdir=None,
console=False,
icon='labelme/icons/icon.ico',
)
app = BUNDLE(
exe,
name='Labelme_cd.app',
icon='labelme/icons/icon.icns',
bundle_identifier=None,
info_plist={'NSHighResolutionCapable': 'True'},
)

0 comments on commit fa95b99

Please sign in to comment.