Create snap package

From Lazarus wiki
Revision as of 12:36, 24 April 2021 by Chronos (talk | contribs)
Jump to navigationJump to search

Create snapcraft.yaml

  • Install snapcraft to your Ubuntu machine with sudo apt install snapcraft
  • Create snap subdirectory in your project
  • Execute snapcraft init to create snap/snapcraft.yaml initial file
  • Sample file:
name: myapp
version: '1.0'
summary: Short description of package.
description: |
  Some more detailed multi-line description.
confinement: devmode
base: core20
grade: devel

parts:
  myapp:
    plugin: dump
    source: https://somehost/source/location
    source-type: subversion
    build-packages: 
    - fpc
    - lazarus
    - lcl
    - lcl-utils
    override-build: |
      lazbuild --build-mode=Release myapp.lpi

apps:
  myapp:
    command: myapp
    desktop: /usr/share/applications/myapp.desktop

See Snapcraft.yaml reference for full list of supported properties.

Register app in snap store

Setup build on Launchpad

Snap packages can be built automatically on Launchpad. Open Create snap package link form your application branch page.

See also