zserge / lorca

Build cross-platform modern desktop apps in Go + HTML5
MIT License
8.04k stars 535 forks source link

Images from HTML UI stored locally, 1) how to be recognized by lorca and 2) be exported into the final .exe too? #74

Open whizzardman123 opened 5 years ago

whizzardman123 commented 5 years ago

Hey,

I've been playing around with lorca and I love it. I've decided to step up my go UI game and get Adobe XD. I just designed a really sleek looking UI, but there's one issue: I used local images. Transferring the html code to go was really smooth, as always, but when I loaded up the program, no local images appeared. I tried dragging the images into the local directory of the program, no luck. I wish to have a folder titled "assets" where I have all my png images. I have two questions:

1) How do I get these photos to be recognized by lorca? 2) When I'm all done with the program, how do I export the images with the exe so users don't have to lug around an assets folder?

Thank you, I'm loving lorca!

wangsongyan commented 4 years ago

examples of this repo may help you.