From 6a2e3a1707028de7e074c4790a60dec89cffb7df Mon Sep 17 00:00:00 2001 From: Martin Clauss Date: Sat, 2 Mar 2024 16:48:10 +0100 Subject: [PATCH] Adjust publishing script, update readme.md Fixes: #4 --- packages/isar/CHANGELOG.md | 4 ++++ packages/isar/README.md | 33 ++++++++++----------------------- tool/download_binaries.sh | 2 +- tool/publish.sh | 23 +++++++++++++++++++++++ 4 files changed, 38 insertions(+), 24 deletions(-) create mode 100755 tool/publish.sh diff --git a/packages/isar/CHANGELOG.md b/packages/isar/CHANGELOG.md index c88e534e8..11a37838f 100644 --- a/packages/isar/CHANGELOG.md +++ b/packages/isar/CHANGELOG.md @@ -1,3 +1,7 @@ +## 3.1.3 + +- Maintenance release, mainly adapts build dependencies + ## 3.1.0+1 ### Fixes diff --git a/packages/isar/README.md b/packages/isar/README.md index 46621623c..859ccdf74 100644 --- a/packages/isar/README.md +++ b/packages/isar/README.md @@ -65,35 +65,22 @@ Holy smokes you're here! Let's get started on using the coolest Flutter database ### 1. Add to pubspec.yaml ```yaml -isar_version: &isar_version 3.1.1 # define the version to be used +isar_version: &isar_version 3.1.3 # define the version to be used dependencies: - isar: *isar_version - isar_flutter_libs: *isar_version # contains Isar Core + isar: + version: *isar_version + hosted: https://isar-community.dev/ + isar_flutter_libs: # contains Isar Core + version: *isar_version + hosted: https://isar-community.dev/ dev_dependencies: - isar_generator: *isar_version + isar_generator: + version: *isar_version + hosted: https://isar-community.dev/ build_runner: any -# Add overrides to use the community fork -dependency_overrides: - isar: - git: - url: https://github.com/isar-community/isar.git - ref: *isar_version - path: packages/isar - - isar_flutter_libs: - git: - url: https://github.com/isar-community/isar.git - ref: *isar_version - path: packages/isar_flutter_libs - - isar_generator: - git: - url: https://github.com/isar-community/isar.git - ref: *isar_version - path: packages/isar_generator ``` ### 2. Annotate a Collection diff --git a/tool/download_binaries.sh b/tool/download_binaries.sh index b46006736..a07b40e4e 100644 --- a/tool/download_binaries.sh +++ b/tool/download_binaries.sh @@ -1,7 +1,7 @@ #!/bin/bash version=`dart packages/isar/tool/get_version.dart` -github="https://github.com/mrclauss/isar/releases/download/${version}" +github="https://github.com/isar-community/isar/releases/download/${version}" curl "${github}/libisar_android_arm64.so" -o packages/isar_flutter_libs/android/src/main/jniLibs/arm64-v8a/libisar.so --create-dirs -L -f diff --git a/tool/publish.sh b/tool/publish.sh new file mode 100755 index 000000000..c10e7af18 --- /dev/null +++ b/tool/publish.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +# Publishes the packages for a release to isar-community.dev using the artifacts from github +# Prerequisite: unpub authenticated and token added: +# `unpub_auth login && unpub_auth get | dart pub token add https://isar-community.dev/` +# + +set -o errexit +pushd packages/isar +dart pub get +popd +sh tool/download_binaries.sh +#dart pub token add --env-var=PUB_JSON https://isar-community.dev/ +pushd packages/isar +dart pub publish --force +popd +pushd packages/isar_generator +dart pub publish --force +popd +pushd packages/isar_flutter_libs +dart pub publish --force +popd +