Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from WebThingsIO:master #13

Merged
merged 1 commit into from
Aug 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: webthings-gateway
base: core22
version: '2.0.0'
summary: WebThings Gateway
description: |
A self-hosted web application for monitoring and controlling a building over
the web.

grade: stable
confinement: strict

apps:
webthings-gateway:
command: bin/npm --prefix $SNAP/lib/node_modules/webthings-gateway run run-only
daemon: simple
plugs:
- network
- network-bind

parts:
python-deps:
plugin: python
source: https://github.com/WebThingsIO/gateway.git
python-requirements:
- requirements.txt
webthings-gateway:
plugin: npm
source: https://github.com/WebThingsIO/gateway.git
after: [ python-deps ]
npm-include-node: true
npm-node-version: 10.24.1
build-environment:
- npm_config_unsafe_perm: true
- NODE_ENV: dev
- CPPFLAGS: "$CPPFLAGS -DPNG_ARM_NEON_OPT=0"
build-packages:
- build-essential
- libbluetooth-dev
- libboost-python-dev
- libboost-thread-dev
- libffi-dev
- libglib2.0-dev
- libpng-dev
- libudev-dev
- libusb-1.0-0-dev
override-build: |
craftctl default
npm install --only-dev
npm run-script build
cp -av build $CRAFT_PART_INSTALL/lib/node_modules/webthings-gateway/
Loading