Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
HisAtri committed Mar 10, 2024
1 parent 2d2358f commit d53b770
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions buildup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,18 @@
sys.stdout = codecs.getwriter("utf-8")(sys.stdout.detach())

PLATFORM = platform.system()
ARCHITECTURE = platform.architecture()[0]
ARCHITECTURE = platform.machine()
APP_NAME = "lrcapi"
APP_VERSION = "1.5.2"
PACK_NAME = f"{APP_NAME}-{APP_VERSION}-{PLATFORM}-{ARCHITECTURE}{'.exe' if PLATFORM == 'Windows' else ''}"


# 针对Alpine,安装objdump/gcc环境等
subprocess.run("apk add --no-cache gcc musl-dev jpeg-dev zlib-dev libjpeg", shell=True)
subprocess.run("apk add binutils", shell=True)
# 安装Pyinstaller及主程序依赖
subprocess.run("pip install -r requirements.txt", shell=True)
subprocess.run("pip install pyinstaller", shell=True)

# 针对Alpine,安装objdump
subprocess.run("apk add binutils", shell=True)

# 打包
def generate_add_data_options(root_dir):
options = []
Expand Down

0 comments on commit d53b770

Please sign in to comment.