Skip to content

Commit 464ce21

Browse files
author
hufudashi
committed
docs(bindings/dart): 更新Dart绑定的描述、许可证和发布流程
更新pubspec.yaml中的项目描述和仓库链接 添加MIT许可证文件 在发布工作流中添加CHANGELOG.md版本更新逻辑
1 parent 19a0f74 commit 464ce21

3 files changed

Lines changed: 35 additions & 3 deletions

File tree

.github/workflows/release.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,5 +275,17 @@ jobs:
275275
./scripts/vendor.sh
276276
cd bindings/dart
277277
sed -i "s/^version: .*/version: $(cat ../../VERSION)/" pubspec.yaml
278+
279+
# Prepend version to CHANGELOG.md if not present
280+
VERSION=$(cat ../../VERSION)
281+
if ! grep -q "## $VERSION" CHANGELOG.md; then
282+
echo "## $VERSION" > CHANGELOG.tmp
283+
echo "" >> CHANGELOG.tmp
284+
echo "* Release $VERSION" >> CHANGELOG.tmp
285+
echo "" >> CHANGELOG.tmp
286+
cat CHANGELOG.md >> CHANGELOG.tmp
287+
mv CHANGELOG.tmp CHANGELOG.md
288+
fi
289+
278290
make deps
279291
flutter pub publish -f

bindings/dart/LICENSE

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,21 @@
1-
TODO: Add your license here.
1+
MIT License
2+
3+
Copyright (c) 2024 Alex Garcia
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

bindings/dart/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: sqlite_vec
2-
description: "A new Flutter FFI plugin project."
2+
description: "Work with vector embeddings in SQLite. Based on sqlite-vec."
33
version: 0.0.1
4-
homepage:
4+
repository: https://github.com/ningpengtao-coder/sqlite-vec/tree/main/bindings/dart
55

66
environment:
77
sdk: '>=3.4.3 <4.0.0'

0 commit comments

Comments
 (0)