Skip to content

Errors in generate-manifest snap sample #165

Description

@S-Gilk

There are a few errors in this sample project that cause a failed installation.

  1. There is a discrepancy between the project name in the snapcraft.yaml and in the README.
  2. The incorrect project name used in the README is also used in the generate_manifest.sh line 7. The script should be as below.

NAME=$(shuf -n2 $SNAP/usr/share/dict/words | tr '\n' ' ') mkdir -p $SNAP_DATA/package-assets/$SNAP_NAME $SNAP/usr/bin/jq ".menus.sidebar[].title = \"$NAME\"" \ $SNAP/package-assets/changing-world.package-manifest.json.template > $SNAP_DATA/package-assets/sdk-generate-manifest/changing-world.package-manifest.json

  1. The install and post-refresh hooks call the snapcraft-runner which does not exist in the project. They should both simply call generate manifest.

    generate_manifest.sh

With these changes, the project builds and installs correctly.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions