init
Some checks failed
Build and Release / Build on macos-latest (push) Has been cancelled
Build and Release / Build on ubuntu-latest (push) Has been cancelled
Build and Release / Build on windows-latest (push) Has been cancelled
Build and Release / release (push) Has been cancelled

This commit is contained in:
Matt.Ma
2025-09-09 15:34:15 +08:00
parent 6d149cefed
commit d6e35173d8

View File

@@ -32,7 +32,23 @@ jobs:
- name: Build executable
run: |
# 设置系统名
if [[ "${{ runner.os }}" == "Windows" ]]; then
SYSNAME=windows
EXT=.exe
elif [[ "${{ runner.os }}" == "Linux" ]]; then
SYSNAME=linux
EXT=
else
SYSNAME=macos
EXT=
fi
# 用 PyInstaller 打包
pyinstaller --onefile rsync-tui.py
# 重命名生成的可执行文件
mv dist/rsync-tui${EXT} dist/rsync-tui-${SYSNAME}${EXT}
ls dist
- name: Upload build artifact