mirror of
https://github.com/MeoProject/lx-music-api-server.git
synced 2025-05-23 19:17:41 +08:00
chore: try fix actions
This commit is contained in:
parent
48bf01f2c5
commit
1607c4e037
16
.github/workflows/build_binary.yml
vendored
16
.github/workflows/build_binary.yml
vendored
@ -12,27 +12,29 @@ jobs:
|
||||
build-exe:
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- name: checkout
|
||||
- name: Checkout git repo
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: setup python 3.11
|
||||
- name: Setup Python 3.11
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: '3.11'
|
||||
|
||||
- name: install pyinstaller
|
||||
- name: Install pyinstaller
|
||||
run: python -m pip install pyinstaller
|
||||
|
||||
- name: install dependencies
|
||||
- name: Install dependencies
|
||||
run: python -m pip install -r ./requirements.txt
|
||||
|
||||
- name: build exe
|
||||
- name: Build EXE
|
||||
env:
|
||||
actions: T
|
||||
run: pyinstaller -F main.py
|
||||
|
||||
- name: rename
|
||||
- name: Rename
|
||||
run: Rename-Item ./dist/main.exe ./dist/lx-music-api-server_$(git rev-parse --short HEAD).exe
|
||||
|
||||
- name: upload
|
||||
- name: Upload
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: lx-music-api-server
|
||||
|
@ -169,6 +169,7 @@ def handle_default_config():
|
||||
f.write(json.dumps(default, indent=2, ensure_ascii=False,
|
||||
escape_forward_slashes=False))
|
||||
f.close()
|
||||
if (not os.getenv('actions')):
|
||||
logger.info('首次启动或配置文件被删除,已创建默认配置文件')
|
||||
logger.info(
|
||||
f'\n请到{variable.workdir + os.path.sep}config.json修改配置后重新启动服务器')
|
||||
|
Loading…
x
Reference in New Issue
Block a user