Table of Contents

Introduction GUI Methods GUI Components Sample GUI 1 Notes Sample GUI 2 A Time Saving Opinion Snapcraft Building Conclusion

Sample Snapcraft Config - GUI126

This a config you can use with snapcraft if you are on ubuntu.

Please remember that bundling dependencies prevents future crashes in your GUI programs


Snapcraft config for GUI126 Projects


name: project345 # you probably want to 'snapcraft register '
base: core24 # the base snap is the execution environment for this snap
version: "1.3" # just for humans, typically '1.2+git' or '1.3.2'
summary: project345 is a sample project # 79 char long summary
description: |
  project345 is a sample project

grade: stable # must be 'stable' to release into candidate/stable channels
confinement: strict # use 'strict' once you have the right plugs and slots

parts:
  my-part:
    # See 'snapcraft plugins'
    plugin: go
    source: .
    build-snaps:
      - go
    build-packages:
      - build-essential
      - gcc
      - libgl1-mesa-dev
      - xorg-dev
      - libc6-dev
    stage-packages:
      - libgl1-mesa-dev

apps:
  project345:
    command: bin/project345
    plugs:
      - desktop
      - desktop-legacy
      - gsettings
      - opengl
      - wayland
      - x11


Notes

  1. Please build on a VM. This conserves your data costs and disk space
  2. When following #1 above use this command for building snapcraft pack --destructive-mode
  3. This build file was tested with v3.3 of GLFW


< Previous Next >