File tree 1 file changed +13
-4
lines changed
1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -9,16 +9,25 @@ https://bugs.launchpad.net/snapd/+filebug
9
9
10
10
## Building
11
11
12
- To build the core snap locally you need a chroot or container with
13
- Ubuntu 16.04. Then run:
12
+ To build the core snap locally you need a clean chroot or container with
13
+ Ubuntu 16.04. Inside this container or chroot run:
14
14
15
+ $ sudo apt install git snapcraft
16
+ $ git clone https://github.com/snapcore/core.git
15
17
$ sudo apt-add-repository ppa:snappy-dev/image
16
- $ sudo snapcraft
18
+ $ cd core
19
+ $ # now make any modifications of the Makefile you require (see below)
20
+ $ sudo snapcraft # (if you are not root already)
17
21
18
- An easy way to customize the content of the built snap is including additional
22
+ One easy way to customize the content of the built snap is including additional
19
23
PPAs with custom packages in the ` EXTRA_PPAS ` variable inside the Makefile's
20
24
` ENV ` variable.
21
25
26
+ Another is to add a script snippet to live-build/hooks (where scripts with the
27
+ ending .chroot are executed chrooted inside the resulting rootfs during build,
28
+ the ones with .binary ending are run in the build environment from outside the
29
+ resulting rootfs).
30
+
22
31
Launchpad builds should be done against xenial with the
23
32
` ~snappy-dev/ubuntu/image ` PPA as source archive and ` Updates ` as the default
24
33
pocket.
You can’t perform that action at this time.
0 commit comments