Compare commits

...

2 Commits

Author SHA1 Message Date
Matt.Ma
d730cfbfbe 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
2025-09-09 15:38:19 +08:00
Matt.Ma
d6e35173d8 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
2025-09-09 15:34:15 +08:00

View File

@@ -31,8 +31,25 @@ jobs:
pip install pyinstaller
- name: Build executable
shell: bash
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