go-flutter-desktop / go-flutter

Flutter on Windows, MacOS and Linux - based on Flutter Embedding, Go and GLFW.
https://hover.build/
BSD 3-Clause "New" or "Revised" License
5.85k stars 283 forks source link

Option to auto add dll files to a windows release #609

Open NO-ob opened 3 years ago

NO-ob commented 3 years ago

Is your feature request related to a problem?

A clear and concise description of what the problem is. I have an issue when trying to run a desktop build of an application using sqlite. The database wont works without the sqlite.dll so it needs to be added manually

Describe the feature you'd like

To have a directory somewhere that go-flutter will check for files when building and copy them to the output directory.

e.g

have dll files stored in /home/user/go-flutter/extras/ after building they are copied to /outputs/windows-release/

ftntming commented 1 year ago

In Wnidows, I know I can achieve this by modifying the "./windows/CMakeLists.txt" file to copy dependency files (DLL, ...) to my target folder. e.g.

install(FILES ${OpenCV_RELEASE_DLL_FILE} DESTINATION ${CMAKE_BINARY_DIR}/runner/Release CONFIGURATIONS Profile;Release COMPONENT Runtime)