-
Notifications
You must be signed in to change notification settings - Fork 116
/
snapcraft.yaml
71 lines (68 loc) · 1.86 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: ubports-installer
title: UBports Installer
adopt-info: ubports-installer
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.
icon: build/icons/icon.png
architectures: [amd64]
license: GPL-3.0
grade: stable
confinement: strict
base: core20
apps:
ubports-installer:
command: ./app/ubports-installer --no-sandbox
plugs:
- home
- unity7
- browser-support
- network
- gsettings
- opengl
- adb-support
- raw-usb
- desktop
- desktop-legacy
- wayland
environment:
"FONTCONFIG_PATH": "$SNAP/etc/fonts"
"FONTCONFIG_FILE": "$SNAP/etc/fonts/fonts.conf"
"XDG_DATA_HOME": "$SNAP/usr/share"
"LD_LIBRARY_PATH": "$SNAP_LIBRARY_PATH:$SNAP/usr/lib/x86_64-linux-gnu/"
parts:
ubports-installer:
plugin: dump
source: .
build-packages:
- npm
- nodejs
- libgconf-2-4
stage-packages:
- libusb-1.0-0
- libnotify4
- libappindicator1
- libxtst6
- libnss3
- libxss1
- fontconfig-config
- gconf2
- libasound2
- libgtk-3-0
- libx11-xcb-dev
override-pull: |
snapcraftctl pull
snapcraftctl set-version `cat package.json | grep version | sed s/' \"version\": \"'//g | sed s/'\",'//g`
override-build: |
echo "Running override-build script"
npm install npm@latest -g
npx npm install
./build.js -o 'linux' -p 'dir'
mkdir -p $SNAPCRAFT_PART_INSTALL/app
rm -rf $SNAPCRAFT_PART_INSTALL/app/*
mv dist/linux-unpacked/* $SNAPCRAFT_PART_INSTALL/app
prime:
- -node_modules
- -lib/node_modules
- -**/arm/**
- -**/arm64/**
- -**/ia32/**