0

the below is my snap file. Can you explain me how to use copy plugin. I just want to copy the file form one folder to another.

name: xxx
version: 6.0
# The vendor for the snap (replace 'Vendor <email@example.com>')
vendor: xxx@gmail.com
summary: a sample package
description: blah blah blah
icon: icon.png

parts:
 glue:
 plugin: copy
 source: /home/Desktop/xxx-snappy/folder/
 files: 
 .: /bin/xxx
Bhargav Rao
  • 50,140
  • 28
  • 121
  • 140
user3803112
  • 103
  • 11

1 Answers1

0

This looks like you're using snapcraft v1.x, is that correct? Assuming so, this YAML looks good except for the indentation within parts; it's not actually valid YAML. Try this:

name: xxxx
version: 6.0
# The vendor for the snap (replace 'Vendor <email@example.com>')
vendor: xxx@gmail.com
summary: a sample package
description: blah blah blah 
icon: icon.png

parts:
  glue:
    plugin: copy
    source: /home/Desktop/xxx-snappy/folder/
    files: 
      .: /bin/folder
user3803112
  • 103
  • 11
kyrofa
  • 1,759
  • 1
  • 14
  • 19