Closed charlie-haley closed 3 years ago
@charlie-haley
Is there a recommend way to compile the app into a single execeutable or as little files as possible?
Installation/packing is not supported, so really no formal recommendation on creating single executable.
You maybe doing the packing right, but that may be blocking the download process. If the download works without publishing, I will check first what is causing the download error. There should be a "Logs" folder in the bin directory that should have logged the details.
@charlie-haley
Is there a recommend way to compile the app into a single execeutable or as little files as possible?
Installation/packing is not supported, so really no formal recommendation on creating single executable.
You maybe doing the packing right, but that may be blocking the download process. If the download works without publishing, I will check first what is causing the download error. There should be a "Logs" folder in the bin directory that should have logged the details.
Is it possible to download the cef binaries at build/publish time so I can bundle them and prevent the download even needing to start?
@charlie-haley Yes, the guide to download is here - https://github.com/chromelyapps/Chromely/blob/master/Documents/cef_binaries_download.md
If you are doing this on Windows and build using Visual Studio/Visual Studio Code with nuget, it should have downloaded it for you already. You can check the nuget folder ..
Check the "CEF" folder.
Alternatively (Windows ONLY) - issue #297
This is actually not a problem. Simply use "PublishSingleFile" and then copy the "Chromely.dll" into the output folder. Works fine.
I'm looking to condense the number of output files as much as possible, I'm running this command:
dotnet publish -c Release -p:PublishSingleFile=true -r win-x64
It seems to work as I get quite a large exe (75mb), but when I open it I get an error
Is there a recommend way to compile the app into a single execeutable or as little files as possible?