init
This commit is contained in:
@@ -32,7 +32,23 @@ jobs:
|
|||||||
|
|
||||||
- name: Build executable
|
- name: Build executable
|
||||||
run: |
|
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
|
pyinstaller --onefile rsync-tui.py
|
||||||
|
|
||||||
|
# 重命名生成的可执行文件
|
||||||
|
mv dist/rsync-tui${EXT} dist/rsync-tui-${SYSNAME}${EXT}
|
||||||
ls dist
|
ls dist
|
||||||
|
|
||||||
- name: Upload build artifact
|
- name: Upload build artifact
|
||||||
|
|||||||
Reference in New Issue
Block a user