The team behind Snapcraft is pleased to announce the release of Snapcraft 4.2.
Highlights for this release include:
core20
For general details, including installation instructions, see Snapcraft overview, or take a look at Snapcraft release notes for other Snapcraft releases.
Special thanks to the contributors that helped to make this release happen: @GamePad64, @Saviq, @cjp256, @igorljubuncic and @sergiusens.
Snapcraft 4.2 includes experimental support for Robot Operating System (ROS 2) Foxy Fitzroy LTS with a new extension and colcon plugin when used with core20
.
For example, ROS 2 applications can now be built with a snapcraft.yaml
as simple as:
name: ros2-talker-listener
version: '0.1'
summary: ROS2 Talker/Listener Example
description: |
This example launches a ROS2 talker and listener.
grade: devel
confinement: strict
base: core20
parts:
ros-demos:
plugin: colcon
source: https://github.com/ros2/demos.git
source-branch: foxy
source-subdir: demo_nodes_cpp
build-packages: [make, gcc, g++]
stage-packages: [ros-foxy-ros2launch]
apps:
ros2-talker-listener:
command: opt/ros/foxy/bin/ros2 launch demo_nodes_cpp talker_listener.launch.py
plugs: [network, network-bind]
extensions: [ros2-foxy]
For a walkthrough on how to work with the plugin and extension, see https://snapcraft.io/blog/how-to-build-a-snap-using-ros-2-foxy.
By default, the cmake plugin creates a Makefile when used with with core20
. This release adds the cmake-generator
plugin property to optionally generate of a Ninja file:
hello:
source: .
plugin: cmake
cmake-parameters:
- -DCMAKE_INSTALL_PREFIX=/usr
cmake-generator: Ninja
You can now view the available channel tracks for a given snap with the new snapcraft list-tracks <snap-name>
command (or with its alias, tracks).
The command output shows a list of tracks together with their status, creation date, and assigned version pattern, which is required by a given snap revision to be able to release to a given track:
Name Status Creation-Date Version-Pattern
latest default - -
Status can be one of the following:
Last updated 4 years ago.