dart-archive / shelf_static

archived repo
https://github.com/dart-lang/shelf/tree/master/pkgs/shelf_static
BSD 3-Clause "New" or "Revised" License
24 stars 24 forks source link

Add static files or directory inside the dart2native binary. #36

Closed karelric closed 4 years ago

karelric commented 4 years ago

After I build the binary of dart server using dart2native. I still need those files or directories next or relative to the binary.

kevmoo commented 4 years ago

I don't think this'll work. The dart2native compiler would need to be updated to do such a thing – and then you'd have to teach dart:io to read from a virtual embedded file system or some such.

You're better just setting up your deployment to include your files!