cx freeze
This commit is contained in:
parent
1facb40172
commit
239284c70c
2
maker-py/.gitignore
vendored
2
maker-py/.gitignore
vendored
@ -1,5 +1,7 @@
|
||||
env
|
||||
venv
|
||||
|
||||
build
|
||||
|
||||
*__pycache__*
|
||||
|
||||
|
@ -9,6 +9,7 @@ from pyglet.graphics import Batch, Group
|
||||
|
||||
from control import RePositionFrame
|
||||
|
||||
from typing import List, Dict
|
||||
from enum import IntEnum
|
||||
|
||||
gray = (200, 200, 200)
|
||||
@ -264,7 +265,7 @@ class MainWindow(Window):
|
||||
# index 22~24 中值 + 36 = 魔法
|
||||
# index 25~27 中值 + 36 = 抗性
|
||||
# index 28~30 中值 + 36 = 智慧
|
||||
self.display_dict: dict[NumStatus, list[NumWidget]] = {
|
||||
self.display_dict: Dict[NumStatus, List[NumWidget]] = {
|
||||
NumStatus.hp: [self.num_dict[i] for i in range(0, 10)],
|
||||
NumStatus.attack: [self.num_dict[i] for i in range(10, 13)],
|
||||
NumStatus.defense: [self.num_dict[i] for i in range(13, 16)],
|
||||
|
40
maker-py/setup.py
Normal file
40
maker-py/setup.py
Normal file
@ -0,0 +1,40 @@
|
||||
from cx_Freeze import setup, Executable
|
||||
|
||||
# Dependencies are automatically detected, but it might need
|
||||
# fine tuning.
|
||||
build_options = {
|
||||
"packages": [],
|
||||
"excludes": [
|
||||
"test",
|
||||
"asyncio",
|
||||
"xml",
|
||||
"tcl",
|
||||
"tkinker",
|
||||
"multiprocessing",
|
||||
"http",
|
||||
"html",
|
||||
"logging",
|
||||
"email",
|
||||
"distutils",
|
||||
"unittest",
|
||||
"concurrent",
|
||||
"pydoc_data",
|
||||
"socket",
|
||||
"random",
|
||||
"lzma",
|
||||
"bz2",
|
||||
"decimal"
|
||||
],
|
||||
}
|
||||
|
||||
base = "console"
|
||||
|
||||
executables = [Executable("main.py", base=base)]
|
||||
|
||||
setup(
|
||||
name="namerena-maker",
|
||||
version="1.0.0",
|
||||
description="名字竞技场-八围制造器",
|
||||
options={"build_exe": build_options},
|
||||
executables=executables,
|
||||
)
|
Loading…
Reference in New Issue
Block a user