Skip to content

Commit e09f1eb

Browse files
committed
Merge remote-tracking branch 'origin/master' into pr/Raven95676/4960
2 parents 13631c6 + 9c691b2 commit e09f1eb

181 files changed

Lines changed: 8918 additions & 5865 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/code-format.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Set up Python
1818
uses: actions/setup-python@v6
1919
with:
20-
python-version: '3.10'
20+
python-version: '3.12'
2121

2222
- name: Install UV
2323
run: pip install uv

.github/workflows/dashboard_ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Setup Node.js
1717
uses: actions/setup-node@v6
1818
with:
19-
node-version: 'latest'
19+
node-version: '24.13.0'
2020

2121
- name: npm install, build
2222
run: |
@@ -52,4 +52,4 @@ jobs:
5252
repo: astrbot-release-harbour
5353
body: "Automated release from commit ${{ github.sha }}"
5454
token: ${{ secrets.ASTRBOT_HARBOUR_TOKEN }}
55-
artifacts: "dashboard/dist.zip"
55+
artifacts: "dashboard/dist.zip"

.github/workflows/release.yml

Lines changed: 1 addition & 166 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
- name: Setup Node.js
5858
uses: actions/setup-node@v6
5959
with:
60-
node-version: 20
60+
node-version: '24.13.0'
6161
cache: "pnpm"
6262
cache-dependency-path: dashboard/pnpm-lock.yaml
6363

@@ -102,170 +102,11 @@ jobs:
102102
cp "dashboard/AstrBot-${VERSION_TAG}-dashboard.zip" "dashboard/astrbot-webui-${VERSION_TAG}.zip"
103103
rclone copy "dashboard/astrbot-webui-${VERSION_TAG}.zip" "r2:${R2_BUCKET_NAME}" --progress
104104
105-
build-desktop:
106-
name: Build ${{ matrix.name }}
107-
runs-on: ${{ matrix.runner }}
108-
strategy:
109-
fail-fast: false
110-
matrix:
111-
include:
112-
- name: linux-x64
113-
runner: ubuntu-24.04
114-
os: linux
115-
arch: amd64
116-
- name: linux-arm64
117-
runner: ubuntu-24.04-arm
118-
os: linux
119-
arch: arm64
120-
- name: windows-x64
121-
runner: windows-2022
122-
os: win
123-
arch: amd64
124-
- name: windows-arm64
125-
runner: windows-11-arm
126-
os: win
127-
arch: arm64
128-
- name: macos-x64
129-
runner: macos-15-intel
130-
os: mac
131-
arch: amd64
132-
- name: macos-arm64
133-
runner: macos-15
134-
os: mac
135-
arch: arm64
136-
env:
137-
CSC_IDENTITY_AUTO_DISCOVERY: "false"
138-
steps:
139-
- name: Checkout repository
140-
uses: actions/checkout@v6
141-
with:
142-
fetch-depth: 0
143-
ref: ${{ inputs.ref || github.ref }}
144-
145-
- name: Resolve tag
146-
id: tag
147-
shell: bash
148-
run: |
149-
if [ "${{ github.event_name }}" = "push" ]; then
150-
tag="${GITHUB_REF_NAME}"
151-
elif [ -n "${{ inputs.tag }}" ]; then
152-
tag="${{ inputs.tag }}"
153-
else
154-
tag="$(git describe --tags --abbrev=0)"
155-
fi
156-
if [ -z "$tag" ]; then
157-
echo "Failed to resolve tag." >&2
158-
exit 1
159-
fi
160-
echo "tag=$tag" >> "$GITHUB_OUTPUT"
161-
162-
- name: Setup uv
163-
uses: astral-sh/setup-uv@v7
164-
165-
- name: Setup Python
166-
uses: actions/setup-python@v6
167-
with:
168-
python-version: "3.12"
169-
170-
- name: Setup pnpm
171-
uses: pnpm/action-setup@v4
172-
with:
173-
version: 10.28.2
174-
175-
- name: Setup Node.js
176-
uses: actions/setup-node@v6
177-
with:
178-
node-version: 20
179-
cache: "pnpm"
180-
cache-dependency-path: |
181-
dashboard/pnpm-lock.yaml
182-
desktop/pnpm-lock.yaml
183-
184-
- name: Prepare OpenSSL for Windows ARM64
185-
if: ${{ matrix.os == 'win' && matrix.arch == 'arm64' }}
186-
shell: pwsh
187-
run: |
188-
git clone https://github.com/microsoft/vcpkg.git C:\vcpkg
189-
& C:\vcpkg\bootstrap-vcpkg.bat -disableMetrics
190-
& C:\vcpkg\vcpkg.exe install openssl:arm64-windows
191-
192-
"VCPKG_ROOT=C:\vcpkg" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
193-
"VCPKGRS_TRIPLET=arm64-windows" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
194-
"OPENSSL_DIR=C:\vcpkg\installed\arm64-windows" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
195-
"OPENSSL_ROOT_DIR=C:\vcpkg\installed\arm64-windows" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
196-
"OPENSSL_LIB_DIR=C:\vcpkg\installed\arm64-windows\lib" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
197-
"OPENSSL_INCLUDE_DIR=C:\vcpkg\installed\arm64-windows\include" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
198-
199-
- name: Install dependencies
200-
shell: bash
201-
run: |
202-
uv sync
203-
pnpm --dir dashboard install --frozen-lockfile
204-
pnpm --dir desktop install --frozen-lockfile
205-
206-
- name: Build desktop package
207-
shell: bash
208-
run: |
209-
pnpm --dir dashboard run build
210-
pnpm --dir desktop run build:webui
211-
pnpm --dir desktop run build:backend
212-
pnpm --dir desktop run sync:version
213-
pnpm --dir desktop exec electron-builder --publish never
214-
215-
- name: Normalize artifact names
216-
shell: bash
217-
env:
218-
NAME_PREFIX: AstrBot-${{ steps.tag.outputs.tag }}-${{ matrix.arch }}-${{ matrix.os }}
219-
run: |
220-
shopt -s nullglob
221-
out_dir="desktop/dist/release"
222-
mkdir -p "$out_dir"
223-
files=(
224-
desktop/dist/*.AppImage
225-
desktop/dist/*.dmg
226-
desktop/dist/*.zip
227-
desktop/dist/*.exe
228-
)
229-
if [ ${#files[@]} -eq 0 ]; then
230-
echo "No desktop artifacts found to rename." >&2
231-
exit 1
232-
fi
233-
for src in "${files[@]}"; do
234-
file="$(basename "$src")"
235-
case "$file" in
236-
*.AppImage)
237-
dest="$out_dir/${NAME_PREFIX}.AppImage"
238-
;;
239-
*.dmg)
240-
dest="$out_dir/${NAME_PREFIX}.dmg"
241-
;;
242-
*.exe)
243-
dest="$out_dir/${NAME_PREFIX}.exe"
244-
;;
245-
*.zip)
246-
dest="$out_dir/${NAME_PREFIX}.zip"
247-
;;
248-
*)
249-
continue
250-
;;
251-
esac
252-
cp "$src" "$dest"
253-
done
254-
ls -la "$out_dir"
255-
256-
- name: Upload desktop artifacts
257-
uses: actions/upload-artifact@v6
258-
with:
259-
name: AstrBot-${{ steps.tag.outputs.tag }}-${{ matrix.arch }}-${{ matrix.os }}
260-
if-no-files-found: error
261-
path: desktop/dist/release/*
262-
263105
publish-release:
264106
name: Publish GitHub Release
265107
runs-on: ubuntu-24.04
266108
needs:
267109
- build-dashboard
268-
- build-desktop
269110
steps:
270111
- name: Checkout repository
271112
uses: actions/checkout@v6
@@ -296,12 +137,6 @@ jobs:
296137
name: Dashboard-${{ steps.tag.outputs.tag }}
297138
path: release-assets
298139

299-
- name: Download desktop artifacts
300-
uses: actions/download-artifact@v7
301-
with:
302-
pattern: AstrBot-${{ steps.tag.outputs.tag }}-*
303-
path: release-assets
304-
merge-multiple: true
305140

306141
- name: Resolve release notes
307142
id: notes

.gitignore

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,6 @@ tests/astrbot_plugin_openai
3333
dashboard/node_modules/
3434
dashboard/dist/
3535
.pnpm-store/
36-
desktop/node_modules/
37-
desktop/dist/
38-
desktop/out/
39-
desktop/resources/backend/astrbot-backend*
40-
desktop/resources/backend/*.exe
41-
desktop/resources/webui/*
42-
desktop/resources/.pyinstaller/
4336
package-lock.json
4437
yarn.lock
4538

Dockerfile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1515
curl \
1616
gnupg \
1717
git \
18+
&& curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - \
19+
&& apt-get install -y --no-install-recommends nodejs \
1820
&& apt-get clean \
1921
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
2022

21-
RUN apt-get update && apt-get install -y curl gnupg \
22-
&& curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - \
23-
&& apt-get install -y nodejs
24-
2523
RUN python -m pip install uv \
26-
&& echo "3.12" > .python-version
27-
RUN uv pip install -r requirements.txt --no-cache-dir --system
28-
RUN uv pip install socksio uv pilk --no-cache-dir --system
24+
&& echo "3.12" > .python-version \
25+
&& uv lock \
26+
&& uv export --format requirements.txt --output-file requirements.txt --frozen \
27+
&& uv pip install -r requirements.txt --no-cache-dir --system \
28+
&& uv pip install socksio uv pilk --no-cache-dir --system
2929

3030
EXPOSE 6185
3131

FIRST_NOTICE.en-US.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
## Welcome to AstrBot
2+
3+
🌟 Thank you for using AstrBot!
4+
5+
AstrBot is an Agentic AI assistant for personal and group chats, with support for multiple IM platforms and a wide range of built-in features. We hope it brings you an efficient and enjoyable experience. ❤️
6+
7+
Important notice:
8+
9+
AstrBot is a **free and open-source software project** protected by the AGPLv3 license. You can find the full source code and related resources on our [**official website**](https://astrbot.app) and [**GitHub**](https://github.com/astrbotdevs/astrbot).
10+
As of now, AstrBot has **no commercial services of any kind**, and the official team **will never charge users any fees** under any name.
11+
12+
If anyone asks you to pay while using AstrBot, **you are likely being scammed**. Please request a refund immediately and report it to us by email.
13+
14+
📮 Official email: [community@astrbot.app](mailto:community@astrbot.app)

FIRST_NOTICE.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
## 欢迎使用 AstrBot
2+
3+
🌟 感谢您使用 AstrBot!
4+
5+
AstrBot 是一款可接入多种 IM 平台的 Agentic AI 个人 / 群聊助手,内置多项强大功能,希望能为您带来高效、愉快的使用体验。❤️
6+
7+
我们想特别说明:
8+
9+
AstrBot 是受 AGPLv3 开源协议保护的**免费开源软件项目**,您可以在[**官方网站**](https://astrbot.app)[**GitHub**](https://github.com/astrbotdevs/astrbot) 上找到 AstrBot 的全部源代码及相关资源。
10+
截至目前,AstrBot 项目**未开展任何形式的商业化服务**,官方**不会以任何名义向用户收取费用**
11+
12+
如果您在使用 AstrBot 的过程中被要求付费,**表明您已经遭遇诈骗行为**。请立即向相关方申请退款,并及时通过邮件向我们反馈。
13+
14+
📮 官方邮箱:[community@astrbot.app](mailto:community@astrbot.app)

0 commit comments

Comments
 (0)