Skip to content

Commit

Permalink
add main.spec
Browse files Browse the repository at this point in the history
  • Loading branch information
abse4411 committed Feb 20, 2024
1 parent 9d0d826 commit 427cb35
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
3 changes: 2 additions & 1 deletion command/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
import sys
from io import StringIO
from typing import Any

Expand Down Expand Up @@ -77,7 +78,7 @@ def execute_cmd(name: str, cmd_line: str):
cmd.invoke()
# this can be set by QuitCmd
if EXIT:
exit(0)
sys.exit(0)


def all_cmds():
Expand Down
38 changes: 38 additions & 0 deletions main.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# -*- mode: python ; coding: utf-8 -*-


a = Analysis(
['main.py'],
pathex=[],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
noarchive=False,
)
pyz = PYZ(a.pure)

exe = EXE(
pyz,
a.scripts,
a.binaries,
a.datas,
[],
name='main',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=True,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
icon=['imgs/projz_icon.ico'],
)

0 comments on commit 427cb35

Please sign in to comment.