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.
name: dart-sdk
version: 2.0.0
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
You are using classic confinement which you allow you to sudo and such, how is root access instrumented?
There is an environment keyword that can live at the root of the project’s snapcraft.yaml or within the definition of an apps entry. Worth mentioning, this pasted snapcraft.yaml has no apps entry.
You are using classic confinement which you allow you to sudo and such, how is root access instrumented?
I want to type in “dart-sdk” and access the file. however, under the current setup, I have to use “sudo dart-sdk.” As an sdk, it requires access without root. Is there a way to set this up so that you don’t need the sudo? Thanks for the other suggestions. I will look into those.