Skip to content

Commit

Permalink
Merge pull request #108 from katagomo/main
Browse files Browse the repository at this point in the history
工作流修复Linux构建失败的问题
  • Loading branch information
HisAtri authored Jan 1, 2025
2 parents 5027a88 + d71e64f commit c5546d3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
1 change: 0 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ jobs:

- name: Archive release files
run: |
mkdir -p dist
Compress-Archive -Path dist\* -DestinationPath release-windows.zip
- name: Upload release artifact
Expand Down
11 changes: 6 additions & 5 deletions buildup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
import codecs
import os

# 安装Pyinstaller及主程序依赖
# 必须在import项目中的模块之前执行,否则会出现找不到模块的错误
print("Installing dependencies...")
subprocess.run("pip install -r requirements.txt", shell=True)
subprocess.run("pip install pyinstaller", shell=True)

from mod.args import GlobalArgs

sys.stdout = codecs.getwriter("utf-8")(sys.stdout.detach())
Expand All @@ -19,11 +25,6 @@
APP_VERSION = GlobalArgs().version
PACK_NAME = f"{APP_NAME}-{APP_VERSION}-{PLATFORM}-{ARCHITECTURE}{'.exe' if PLATFORM == 'Windows' else ''}"

# 安装Pyinstaller及主程序依赖
subprocess.run("pip install -r requirements.txt", shell=True)
subprocess.run("pip install pyinstaller", shell=True)


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

0 comments on commit c5546d3

Please sign in to comment.