feat: library definition for PlatformIO (#8261)

* feat: library definition for PlatformIO

* Update library.json version with release.sh

---------

Co-authored-by: Flávio Zanoni <flaviozg888@gmail.com>
This commit is contained in:
obones
2025-11-27 01:18:13 +01:00
committed by GitHub
parent 8e901ce17c
commit e3e355d498
2 changed files with 31 additions and 0 deletions

26
library.json Normal file
View File

@@ -0,0 +1,26 @@
{
"_comment": "This file is used by PlatformIO to get the information it needs to use FlatBuffers as a dependency for a project.",
"name": "flatbuffers",
"version": "25.9.23",
"description": "FlatBuffers is a cross platform serialization library architected for maximum memory efficiency",
"keywords": "FlatBuffers, serialization",
"repository": {
"type": "git",
"url": "https://github.com/google/flatbuffers"
},
"authors": [
{
"name": "The FlatBuffers project",
"maintainer": true
}
],
"license": "Apache-2.0",
"frameworks": "*",
"platforms": "*",
"build": {
"includeDir": "include",
"srcFilter": "-<*>"
}
}

View File

@@ -74,6 +74,11 @@ sed -i \
-e "s/\(\"version\": \).*/\1\"$version\",/" \
package.json
echo "Updating library.json..."
sed -i \
-e "s/\(\"version\": \).*/\1\"$version\",/" \
library.json
echo "Updating net/FlatBuffers/Google.FlatBuffers.csproj..."
sed -i \
-e "s/\(<PackageVersion>\).*\(<\/PackageVersion>\)/\1$version\2/" \