Skip to content

Commit 8eb4205

Browse files
committed
revert commits to master (these are on a new branch)
1 parent b238f6e commit 8eb4205

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

scripts/deb/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ set(CPACK_PACKAGE_CONTACT "[email protected]")
2323
set(CPACK_PACKAGE_VENDOR "Adafruit")
2424
set(CPACK_PACKAGE_VERSION_MAJOR "0")
2525
set(CPACK_PACKAGE_VERSION_MINOR "3")
26-
set(CPACK_PACKAGE_VERSION_PATCH "9")
27-
set(CPACK_PACKAGE_VERSION "0.3.9")
26+
set(CPACK_PACKAGE_VERSION_PATCH "7")
27+
set(CPACK_PACKAGE_VERSION "0.3.7")
2828
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Adafruit WebIDE")
2929
set(CPACK_RESOURCE_FILE_README "${EDITOR_DIR}/README.md")
3030
set(CPACK_RESOURCE_FILE_LICENSE "${EDITOR_DIR}/GNU-AGPL-3.0")
@@ -33,8 +33,8 @@ set(CPACK_DEBIAN_PACKAGE_MAINTAINER "Adafruit")
3333
set(CPACK_DEBIAN_PACKAGE_VERSION "${CPACK_PACKAGE_VERSION}-ubuntu")
3434
set(CPACK_DEBIAN_PACKAGE_PRIORITY "optional")
3535
set(CPACK_DEBIAN_PACKAGE_SECTION "misc")
36-
set(CPACK_DEBIAN_PACKAGE_DEPENDS "node, redis-server, git, restartd, libcap2-bin, avahi-daemon, i2c-tools, python-smbus")
36+
set(CPACK_DEBIAN_PACKAGE_DEPENDS "nodejs, nodejs-legacy, redis-server, git, restartd, libcap2-bin, avahi-daemon, i2c-tools, python-smbus")
3737
set(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA "${CMAKE_CURRENT_SOURCE_DIR}/postinst;${CMAKE_CURRENT_SOURCE_DIR}/prerm;${CMAKE_CURRENT_SOURCE_DIR}/postrm;")
3838
set(CPACK_DEBIAN_PACKAGE_ARCHITECTURE "armhf")
3939

40-
include(CPack)
40+
include(CPack)

scripts/deb/postinst

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,22 @@ groupadd webide || true
88
useradd -g webide webide || true
99
usermod -a -G i2c,sudo webide || true
1010

11-
cd $WEBIDE_ROOT
12-
/usr/local/bin/npm install
13-
1411
chown -R webide:webide "$WEBIDE_HOME"
1512
chown -R webide:webide "$WEBIDE_ROOT"
1613

1714
echo 'webide "node" "service adafruit-webide.sh restart" ""' >> /etc/restartd.conf
1815

1916
cd /etc/init.d
2017

21-
NODE_PATH="/usr/local/bin/node"
18+
NODE_PATH=""
19+
ARCH=$(dpkg --print-architecture)
20+
if [ $ARCH = armhf ]; then
21+
NODE_PATH="\/usr\/share\/adafruit\/webide\/bin\/node_hf\/node"
22+
chmod +x "$WEBIDE_ROOT/bin/node_hf/node"
23+
else
24+
NODE_PATH="\/usr\/share\/adafruit\/webide\/bin\/node_sf\/node"
25+
chmod +x "$WEBIDE_ROOT/bin/node_sf/node"
26+
fi
2227
sed -i "s/NODE_PATH/$NODE_PATH/g" adafruit-webide.sh
2328

2429
update-rc.d adafruit-webide.sh defaults
@@ -53,4 +58,4 @@ echo "**** The Adafruit WebIDE is installed and running! ****"
5358
echo "**** Commands: sudo service adafruit-webide.sh {start,stop,restart} ****"
5459
echo "**** Navigate to http://$(hostname).local$PORT_USED to use the WebIDE"
5560

56-
exit 0
61+
exit 0

0 commit comments

Comments
 (0)