Skip to content

Commit

Permalink
fix: Fixed binary engine copy location error.
Browse files Browse the repository at this point in the history
Version AS: orm-v5.0.3
  • Loading branch information
Seven Du committed Jun 9, 2024
1 parent bb505f3 commit f2879d4
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 7 deletions.
25 changes: 24 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
# Prisma Dart v5.0.3

To install Prisma ORM for Dart v5.0.3 run this command:

```bash
dart pub add orm:^5.0.3
```

or update your `pubspec.yaml` file:

```yaml
dependencies:
orm: ^5.0.3
```
* [**"Prisma Dart v4 -> v5 & Flutter integration" Upgrade Guides**](https://prisma.pub/getting-started/upgrade_guides.html)
## What's Changed
* **BUG**: Fixed binary engine copy location error.
**Full Changelog**: https://github.com/medz/prisma-dart/compare/orm-v5.0.2+orm_flutter-v0.1.2...orm-v5.0.3
# Prisma Dart v5.0.2 & Flutter integration 0.1.2
To install Prisma ORM for Dart v5.0.2 run this command:
Expand Down Expand Up @@ -32,7 +55,7 @@ dependencies:
* Prisma C-ABI query engine is provided by default in Flutter integration
* Flutter integration Android downloads Prisma C-ABI query engine in cmake script
**Full Changelog**: https://github.com/medz/prisma-dart/compare/orm-v5.0.2+orm_flutter-v0.1.2...orm-v5.0.2+orm_flutter-v0.1.2
**Full Changelog**: https://github.com/medz/prisma-dart/compare/orm-v5.0.1+orm_flutter-v0.1.1...orm-v5.0.2+orm_flutter-v0.1.2
# Prisma Dart v5.0.1 & Flutter integration 0.1.1
Expand Down
6 changes: 1 addition & 5 deletions packages/orm/bin/src/download_engine.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,11 @@ Future<void> downloadEngine(GeneratorOptions options) async {
}

final target =
File(path.join(options.generator.output!.value, 'prisma-query-engine'));
File(path.join(path.dirname(options.schemaPath), 'prisma-query-engine'));
if (await target.exists()) {
await target.delete(recursive: true);
}

if (!await target.parent.exists()) {
await target.parent.create(recursive: true);
}

await source.copy(target.path);
}

Expand Down
2 changes: 1 addition & 1 deletion packages/orm/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: orm
description: Next-generation ORM for Dart & Flutter | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB.
version: 5.0.2
version: 5.0.3
homepage: https://prisma.pub
repository: https://github.com/medz/prisma-dart
funding:
Expand Down

0 comments on commit f2879d4

Please sign in to comment.