Hi Jenny, On 8 December 2016 at 10:14, Jenny Murphy <jenny.mur...@episensor.com> wrote:
Hi, > I have been trying to upgrade a snapcraft file I had which used the copy > plugin with snapcraft 1.1.0. My newer version of snapcraft 2.22.1. > I am aware that the copy plugin is now deprecated and I should use the > dump plugin. > I could actually like to copy the contents of a directory : > So previously I had : > move-webapp: > plugin: copy > files: > webapp: webapp # Moved everything in ./webapp to stage/webapp > > > I haven't found too many examples of using the dump plugin to do the same > job. > The Examples link is broken here. http://snapcraft.io/ > docs/reference/plugins/dump > > > I also found it difficult to locate any documentation on the plugin, but with some reading of the code and some experimentation I got something that seems to work. This <https://github.com/jamestait/snappy-playpen/blob/cuberite/cuberite/snapcraft.yaml> is my snapcraft.yaml using the copy plugin, and I updated to to this <https://github.com/jamestait/cuberite/blob/master/snapcraft.yaml> using the dump plugin. In one instance I simply replaced files with filesets; in the other I replaced it with organize and added a clause to only include the bin directory in the snap. I don’t recall why the two approaches were required. Hope that helps! -- James Tait, BSc. | https://launchpad.net/~jamestait/ Software Engineer, Canonical Online Services Ubuntu - Linux for human beings | www.ubuntu.com
-- Snapcraft mailing list Snapcraft@lists.snapcraft.io Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snapcraft