File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Build Artifacts Only
2+ on :
3+ workflow_dispatch :
4+
5+ jobs :
6+ build-artifacts :
7+ runs-on : ubuntu-latest
8+ steps :
9+ - name : Checkout
10+ uses : actions/checkout@v4
11+
12+ - name : Setup node
13+ uses : actions/setup-node@v4
14+ with :
15+ node-version : 20
16+
17+ - name : Install dependencies
18+ run : |
19+ export ELECTRON_SKIP_BINARY_DOWNLOAD=1
20+ npm install
21+ cd src/webui/FE
22+ npm install
23+
24+ - name : Build
25+ run : |
26+ npm run build
27+ npm run build-webui
28+
29+ - name : Compress dist
30+ run : |
31+ mkdir llonebot-win-x64
32+ sudo apt install zip -y
33+ cd ./dist/
34+ mv 使用说明.txt ../llonebot-win-x64/
35+ zip -r ../LLOneBot.zip ./*
36+
37+ - name : Compress for Windows
38+ run : |
39+ cd llonebot-win-x64
40+ mv ../dist/更新日志.txt ./
41+ mv ../dist ./llonebot
42+ wget https://github.com/linyuchen/PMHQ/releases/latest/download/pmhq-win-x64.zip
43+ unzip pmhq-win-x64.zip
44+ rm pmhq-win-x64.zip
45+ mv pmhq-win-x64.exe llonebot.exe
46+ wget https://github.com/LLOneBot/exe/releases/latest/download/node.exe -O llonebot/node.exe
47+ zip -r ../LLOneBot-win-x64.zip ./*
48+ wget https://github.com/LLOneBot/exe/releases/latest/download/ffmpeg.exe -O llonebot/ffmpeg.exe
49+ wget https://github.com/LLOneBot/exe/releases/latest/download/ffprobe.exe -O llonebot/ffprobe.exe
50+ zip -r ../LLOneBot-win-x64-ffmpeg.zip ./*
51+
52+ - name : Upload artifacts
53+ uses : actions/upload-artifact@v4
54+ with :
55+ name : llonebot-builds
56+ path : |
57+ LLOneBot.zip
58+ LLOneBot-win-x64.zip
59+ LLOneBot-win-x64-ffmpeg.zip
60+ retention-days : 30
Original file line number Diff line number Diff line change 1- name : Integrate NTQQ
1+ name : Release
22on :
33 push :
44 tags :
You can’t perform that action at this time.
0 commit comments