Create snap package

From Lazarus wiki
Revision as of 12:53, 24 April 2021 by Chronos (talk | contribs) (Created page with "=Create snapcraft.yaml= * Install snapcraft to your Ubuntu machine with '''sudo apt install snapcraft''' * Create '''snap''' subdirectory in your project * Execute '''snapcraf...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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: core18
grade: devel

parts:
  myapp:
    plugin: dump
    source: https://somehost/source/location
    source-type: subversion
    build-packages: 
    - fpc
    - lazarus
    - lcl
    - lcl-utils

apps:
  myapp:
    command: myapp

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