This commit is contained in:
ekibun
2021-01-22 16:33:25 +08:00
parent 257dfd9e96
commit c7da8abb67
6 changed files with 15 additions and 5 deletions

View File

@@ -6,6 +6,10 @@
* @LastEditTime: 2020-12-02 11:36:40
-->
## 0.2.7
* fix error in ios build.
## 0.2.6
* fix stack overflow in jsToCString.

View File

@@ -7,6 +7,9 @@
-->
# flutter_qjs
![Pub](https://img.shields.io/pub/v/flutter_qjs.svg)
![Test](https://github.com/ekibun/flutter_qjs/workflows/Test/badge.svg)
This plugin is a simple js engine for flutter using the `quickjs` project with `dart:ffi`. Plugin currently supports all the platforms except web!
## Getting Started

View File

@@ -82,7 +82,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.2.6"
version: "0.2.7"
flutter_test:
dependency: "direct dev"
description: flutter

View File

@@ -1,6 +1,6 @@
name: flutter_qjs
description: This plugin is a simple js engine for flutter using the `quickjs` project. Plugin currently supports all the platforms except web!
version: 0.2.6
version: 0.2.7
homepage: https://github.com/ekibun/flutter_qjs
environment:

View File

@@ -48,8 +48,11 @@ void main() async {
var cmakePath = "cmake";
if (Platform.isWindows) {
var vsDir = Directory("C:/Program Files (x86)/Microsoft Visual Studio/");
vsDir = (vsDir.listSync().firstWhere((e) => e is Directory) as Directory).listSync().last;
cmakePath = vsDir.path + "/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/bin/cmake.exe";
vsDir = (vsDir.listSync().firstWhere((e) => e is Directory) as Directory)
.listSync()
.last as Directory;
cmakePath = vsDir.path +
"/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/bin/cmake.exe";
}
final buildDir = "./build";
var result = Process.runSync(