Hi, everyone. Complete newbie for snap and packaging in general. I am trying to create a snap package for the Dart Language sdk. It is a simple zip file that you have to unzip and place in a directory with user privileges, and set environment variables. Here is my snapcraft.yaml.
summary: Dart Language SDK
description: This includes the Dart SDK, and adds environment variables for the skd and pub package manager. For more information on the Dart Language, please visit www.dartlang.org
build-packages: - wget - unzip
once I create the snap, I type in: snap install --classic --dangerous dart-sdk_2.0.0_amd64.snap
This installs the snap under: /snap/dart-sdk/current/dart-sdk, but I have several problems.
- The sdk requires root access. I need it to allow for user access without the user doing a chmod.
- I need to change the environment variables, but I could not figure this out from the documentation.
Can anyone help? Thanks.