Skip to content

Commit d8ae70b

Browse files
committed
feat(Snapcraft): move parts lifecycle into a reference
1 parent e4362cb commit d8ae70b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Parts lifecycle
2+
3+
Each part is composed of five steps, known as the "lifecycle":
4+
5+
| Step | Purpose | Directory | Command |
6+
| ----------- | ----------- | ----------- | ----------- |
7+
| 1. **Pull** | Download or retrieve the components' sources and external dependencies needed to build the part. | Components' sources and external dependencies are put in CRAFT_PART_**SRC**. | `snapcraft pull [<part-name>]` |
8+
| 2. **Build** | Build the components from the previously pulled sources. | Build the sources in CRAFT_PART_**BUILD** and places the result in CRAFT_PART_**INSTALL** | `snapcraft build [<part-name>]` |
9+
| 3. **Stage** | Copy the built components into the staging area. | The built components are put in CRAFT_**STAGE**. | `snapcraft stage [<part-name>]` |
10+
| 4. **Prime** | Copy the staged components into the priming area. | The staged components are put in CRAFT_**PRIME**. | `snapcraft prime [<part-name>]` |
11+
| 5. **Pack** | Take the contents of the prime directory and pack it into a snap. | The snap is put in CRAFT_PROJECT_**DIR**. | `snapcraft pack or snapcraft` |

0 commit comments

Comments
 (0)