Skip to content

Commit

Permalink
Adjust publishing script, update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Clauss committed Mar 2, 2024
1 parent 50e5547 commit 6a2e3a1
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 24 deletions.
4 changes: 4 additions & 0 deletions packages/isar/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 3.1.3

- Maintenance release, mainly adapts build dependencies

## 3.1.0+1

### Fixes
Expand Down
33 changes: 10 additions & 23 deletions packages/isar/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tool/download_binaries.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down
23 changes: 23 additions & 0 deletions tool/publish.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 6a2e3a1

Please sign in to comment.