packaging - How can I create directories using snapcraft? - Ask Ubuntu


i have file want copy snapcraft source .snap building:

parts:    foo-config:       plugin: dump       source: .       stage:         - etc/foo.conf 

if try , build snap , etc/ directory not exist error. there way use dump plugin (or otherwise) create directories copying files?

stage going parts/$partname/install/etc/foo.conf. if want move foo.conf other directory , have in $snap/etc/foo.conf, you'll need use organize. organize create needed directories.

parts:     foo-config:         plugin: dump         source: .         stage:           - etc/foo.conf         organize:            <path>/foo: etc/foo.conf 

Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User