Create snap package
From Lazarus wiki
Jump to navigationJump to searchCreate 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
- Login into https://snapcraft.io with your user account
- Register new snap package name https://snapcraft.io/account/register-snap
- Go to your newly registered package and fill all needed details https://snapcraft.io/snaps
Setup build on Launchpad
Snap packages can be built automatically on Launchpad. Open Create snap package link form your application branch page.