mirror of
https://github.com/allankoechke/pywebview.git
synced 2026-12-03 01:17:44 +00:00
23 lines
503 B
Python
23 lines
503 B
Python
"""
|
|
This is an example of py2applet setup.py script for freezing your pywebview application
|
|
|
|
Usage:
|
|
python setup.py py2app
|
|
"""
|
|
import sys
|
|
import os
|
|
from setuptools import setup
|
|
|
|
APP = ['YOUR_EXAMPLE.py']
|
|
DATA_FILES = []
|
|
OPTIONS_OSX = {'argv_emulation': False,
|
|
'strip': True,
|
|
'iconfile': 'icon.icns',
|
|
'includes': ['WebKit', 'Foundation', 'webview']}
|
|
|
|
setup(
|
|
app=APP,
|
|
data_files=DATA_FILES,
|
|
options={'py2app': OPTIONS_OSX},
|
|
setup_requires=['py2app'],
|
|
) |