/
snapcraft.yaml
57 lines (54 loc) · 1.49 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: ubports-installer
version: 0.1.13-beta
summary: The easy way to install Ubuntu Touch on UBports devices.
description: A friendly cross-platform Installer for Ubuntu Touch. Just connect a supported device to your PC, follow the on-screen instructions and watch this awesome tool do all the rest. The snap can run in strict confinement, but you will have to run `sudo snap connect ubports-installer:raw-usb` before using it.
icon: build/icons/icon.png
architectures: [amd64]
grade: stable
confinement: strict
apps:
ubports-installer:
command: desktop-launch $SNAP/bin/snap-wrapper
plugs:
- unity7
- browser-support
- network
- gsettings
- pulseaudio
- opengl
- raw-usb
parts:
ubports-installer:
plugin: nodejs
stage-packages:
- libnotify4
- libappindicator1
- libxtst6
- libnss3
- libxss1
- fontconfig-config
- gconf2
- libasound2
- pulseaudio
after:
- desktop-glib-only
build: ./build.js -lb
install: |
mkdir $SNAPCRAFT_PART_INSTALL/app
mv dist/linux-unpacked/* $SNAPCRAFT_PART_INSTALL/app
mv bin/* $SNAPCRAFT_PART_INSTALL/bin
prime:
- -node_modules
- -lib/node_modules
android-tools:
source: https://github.com/ubports/android-tools.git
plugin: make
build-packages:
- gir1.2-glib-2.0
- libglib2.0-dev
- libselinux-dev
- libhybris-dev
- libsystemd-dev
- libssl-dev
- python
- zlib1g-dev