mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-23 23:48:56 +01:00
e5691f9d1d
- Verified functionality on MacOS - Add ICNS Icon to use as MacOS App Icon - Spec generated by PyInstaller: ```sh pyinstaller \ src/main.py \ --windowed \ --onefile \ --name "Khoj" \ --target-arch arm64 \ -i src/interface/web/assets/icons/favicon.icns \ --add-data "src/interface/web:src/interface/web" \ --copy-metadata tqdm \ --copy-metadata regex \ --copy-metadata requests \ --copy-metadata packaging \ --copy-metadata filelock \ --copy-metadata numpy \ --copy-metadata tokenizers ```
61 lines
1.3 KiB
Python
61 lines
1.3 KiB
Python
# -*- mode: python ; coding: utf-8 -*-
|
|
from PyInstaller.utils.hooks import copy_metadata
|
|
|
|
datas = [('src/interface/web', 'src/interface/web')]
|
|
datas += copy_metadata('tqdm')
|
|
datas += copy_metadata('regex')
|
|
datas += copy_metadata('requests')
|
|
datas += copy_metadata('packaging')
|
|
datas += copy_metadata('filelock')
|
|
datas += copy_metadata('numpy')
|
|
datas += copy_metadata('tokenizers')
|
|
|
|
|
|
block_cipher = None
|
|
|
|
|
|
a = Analysis(
|
|
['src/main.py'],
|
|
pathex=[],
|
|
binaries=[],
|
|
datas=datas,
|
|
hiddenimports=['huggingface_hub.repository'],
|
|
hookspath=[],
|
|
hooksconfig={},
|
|
runtime_hooks=[],
|
|
excludes=[],
|
|
win_no_prefer_redirects=False,
|
|
win_private_assemblies=False,
|
|
cipher=block_cipher,
|
|
noarchive=False,
|
|
)
|
|
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
|
|
|
|
exe = EXE(
|
|
pyz,
|
|
a.scripts,
|
|
a.binaries,
|
|
a.zipfiles,
|
|
a.datas,
|
|
[],
|
|
name='Khoj',
|
|
debug=False,
|
|
bootloader_ignore_signals=False,
|
|
strip=False,
|
|
upx=True,
|
|
upx_exclude=[],
|
|
runtime_tmpdir=None,
|
|
console=False,
|
|
disable_windowed_traceback=False,
|
|
argv_emulation=False,
|
|
target_arch='arm64',
|
|
codesign_identity=None,
|
|
entitlements_file=None,
|
|
icon='src/interface/web/assets/icons/favicon.icns',
|
|
)
|
|
app = BUNDLE(
|
|
exe,
|
|
name='Khoj.app',
|
|
icon='src/interface/web/assets/icons/favicon.icns',
|
|
bundle_identifier=None,
|
|
)
|