Compare commits
2 Commits
6d149cefed
...
d730cfbfbe
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d730cfbfbe | ||
|
|
d6e35173d8 |
17
.github/workflows/release.yaml
vendored
17
.github/workflows/release.yaml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user