forked from canonical/workshops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
snapcraft.yaml
57 lines (54 loc) · 1.38 KB
/
snapcraft.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: workshops
version: git
summary: Workshops
description: |
Workshops provides a user friendly interface to create and manage LXD containers as well as provides a full featured terminal.
confinement: strict
base: core22
grade: stable
license: GPL-3.0+
architectures:
- build-on: amd64
assumes:
- snapd2.46
parts:
flutter-git:
source: https://github.com/flutter/flutter.git
source-branch: master
plugin: nil
override-build: |
mkdir -p $CRAFT_PART_INSTALL/usr/bin
mkdir -p $CRAFT_PART_INSTALL/usr/libexec
cp -r $CRAFT_PART_SRC $CRAFT_PART_INSTALL/usr/libexec/flutter
ln -s $CRAFT_PART_INSTALL/usr/libexec/flutter/bin/flutter $CRAFT_PART_INSTALL/usr/bin/flutter
build-packages:
- clang
- cmake
- curl
- ninja-build
- unzip
- xz-utils
- zip
override-prime:
rm -r $CRAFT_PART_INSTALL
workshops:
after: [ flutter-git ]
plugin: nil
source: .
override-build: |
set -eux
flutter channel stable
flutter upgrade
flutter doctor
flutter pub get
flutter build linux --release -v
mkdir -p $CRAFT_PART_INSTALL/bin/
cp -r build/linux/*/release/bundle/* $CRAFT_PART_INSTALL/bin/
apps:
workshops:
command: bin/workshops
desktop: bin/data/flutter_assets/assets/workshops.desktop
extensions: [gnome]
plugs:
- lxd
- network