init
Some checks failed
Some checks failed
This commit is contained in:
16
.github/workflows/release.yaml
vendored
16
.github/workflows/release.yaml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user