anaisbetts/squirrel-flutter

Error when running on Flutter 2.10.3

RustamG opened this issue · 3 comments

Running flutter pub run squirrel:installer_windows on 2.2.3 was successful. But after update to Flutter 2.10.3 it results to an error:

Unhandled exception:
FileSystemException: Cannot open file, path = 'c:\users\public\my_project\.dart_tool\pub\bin\nuspec.jinja' (OS Error: No such file or directory, errno = 2)
#0      _File.open.<anonymous closure> (dart:io/file_impl.dart:356:9)
<asynchronous suspension>
#1      main (file:///C:/Users/MyUser/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/squirrel-0.1.0/bin/installer_windows.dart:210:7)
<asynchronous suspension>
pub finished with exit code 255

Seems that the installer_windows.dart script is running from the folder other than expected.

@anaisbetts Any thoughts on the fix?

This is what I was talking about in #3 (comment), because ScriptPath is now in a Weird Place, our trick to find the Jinja file doesn't work any more.

Yeah, I understand this. Do you have any thoughts how this could be fixed?

@anaisbetts How does it look? Would it be possible to publish this update?