CopyFiles works for desktop apps, but isn’t supposed to work for Web Edition apps too? The file(s) never show up for me. I have added a feedback report: <https://xojo.com/issue/29933>
Create a new Web Edition project, name it.
Choose Insert>Build Step>Copy Files
Drag any desktop file into the CopyFile area and save the project anywhere
Build the app
The desktop file is not included in the built application. Nor does it work if you ask the CopyFiles to be added to the Resources folder or any other setting.
Workaround: Drag in the file after the app has been built.
More info please I dragged the file(s) into the CopyFile window and they appeared in the list. I saved then ran/built. The files that show up in the CopyFile window are no where inside the debug or built application.
Are you suggesting I need to drag the CopyFile item itself somewhere? It works differently than the Xojo desktop CopyFile in that it doesn’t exist within a Build icon with one CopyFile icon for each environment.
Yes, it has to be in one or more of the target sections that you are building for, and choose the correct destination. To have the file(s) copied into the same folder as the web app (beside the web app), I use “Bundle Parent Folder” destination.
I don’t understand this statement. The copy files step works the same in Desktop and Web, in that the step has to exist in the appropriate build target section. For both platforms, you won’t see a Build Icon unless you have a build step in that target section.
See User Guide book 3 (Framework), chapter 9, section 2 (page 196 in the 2013R3 version).
Things are getting weirder:
When I open an old Desktop app it has a Build icon containing an icon for each of Mac, Linux and Windows, and the CopyFiles icon appears in each of these. This works OK.
When I create a new desktop app there is no Build icon. Nor can I create one. Plus the IDE crashes when I try to copy the Build icon from my old project to my newly created project.
The question now is ‘How can I create a Build icon with the three environmental icons in it?’ for either desktop or web edition!
Sorry, I get it now! You have to drag and drop CopyFiles1 on top of the environment icon below the Shared text. Wow, this was NOT at all intuitive! Thank you Jay!