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

Fix build and runtime failures of snap #3172

Merged
merged 3 commits into from
Oct 9, 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
6 changes: 3 additions & 3 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ parts:
source: https://github.com/WebThingsIO/gateway.git
after: [ python-deps ]
npm-include-node: true
npm-node-version: 10.24.1
npm-node-version: 12.22.1
build-environment:
- npm_config_unsafe_perm: "true"
- NODE_ENV: "dev"
- CPPFLAGS: "$CPPFLAGS -DPNG_ARM_NEON_OPT=0"
build-packages:
- autoconf
- automake
- build-essential
- libbluetooth-dev
- libboost-python-dev
Expand All @@ -48,7 +48,7 @@ parts:
craftctl default
npm install --only-dev
npm run-script build
cp -av build $CRAFT_PART_INSTALL/lib/node_modules/webthings-gateway/
cp -avf build $CRAFT_PART_INSTALL/lib/node_modules/webthings-gateway/
# fix wrongly hardcoded /usr/bin/python interpreter in pagekite
if [ -e $CRAFT_PART_INSTALL/lib/node_modules/webthings-gateway/pagekite.py ]; then
sed -i 's;#!.*;#! /usr/bin/env python3;' \
Expand Down
Loading