Skip to content

Commit

Permalink
add Node package dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
hgy59 committed Feb 25, 2023
1 parent f204537 commit c45e295
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
1 change: 0 additions & 1 deletion cross/node-red/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ INSTALL_TARGET = node-red_install

include ../../mk/spksrc.install-resources.mk

ENV += NPM_CONFIG_USER=root
PATH := $(WORK_DIR)/../../../native/nodejs/work-native/node/bin:$(PATH)

.PHONY: node-red_install
Expand Down
21 changes: 17 additions & 4 deletions spk/node-red/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,30 @@ DSM_UI_DIR = app

DEPENDS = cross/node-red


# https://nodejs.dev/en/about/releases/
# DSM 6 has nodejs v12 (and v8) only (all EOL)
# DSM 7 has nodejs v12, v14, v16 and v18 (LTS versions)
# DSM 5 and SRM have no nodejs package from Synology
REQUIRED_MIN_DSM = 6
# SRM is not supported, set to dummy min version >= 2.x
REQUIRED_MIN_SRM = 2


MAINTAINER = hgy59
DESCRIPTION = Node-RED is a programming tool for wiring together hardware devices, APIs and online services in new and interesting ways. It provides a browser-based editor that makes it easy to wire together flows using the wide range of nodes in the palette that can be deployed to its runtime in a single-click.
DESCRIPTION = "Node-RED is a programming tool for wiring together hardware devices, APIs and online services in new and interesting ways. It provides a browser-based editor that makes it easy to wire together flows using the wide range of nodes in the palette that can be deployed to its runtime in a single-click."
DISPLAY_NAME = Node-RED
STARTABLE = yes
CHANGELOG = "Initial package release."
HOMEPAGE = https://nodered.org/
LICENSE = Apache 2.0

# DSM 6: Node.js_v12
# DSM 7: Node.js_v12, Node.js_v14 or Node.js_v16
#SPK_DEPENDS = "Node.js_v12"
include ../../mk/spksrc.common.mk
ifeq ($(call version_ge, $(TCVERSION), 7.0),1)
SPK_DEPENDS = "Node.js_v18"
else
SPK_DEPENDS = "Node.js_v12"
endif

SERVICE_USER = auto
SERVICE_SETUP = src/service-setup.sh
Expand Down

0 comments on commit c45e295

Please sign in to comment.