mirror of
https://github.com/wgh136/flutter_qjs.git
synced 2025-09-27 05:27:23 +00:00
v0.2.7
This commit is contained in:
@@ -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(
|
||||
|
Reference in New Issue
Block a user