Changeset 37490
- Timestamp:
- 2023-03-13T23:51:09+13:00 (8 days ago)
- Location:
- gs3-extensions/selfcontained-nodejs/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
gs3-extensions/selfcontained-nodejs/trunk/PREPARE-CYGWIN.sh
r37488 r37490 3 3 version=-v16.13.2 4 4 5 if [ -d node-windows-64bit ] ; then 6 /bin/rm -rf node-windows-64bit 7 fi 5 8 6 9 unzip node${version}-win-x64.zip \ 7 10 && mv node${version}-win-x64 node-windows-64bit 11 12 chmod a+x node-windows-64bit/*.{exe,bat,cmd} node-windows-64bit/{npm,npx} 8 13 9 14 if [ $? = 0 ] ; then -
gs3-extensions/selfcontained-nodejs/trunk/PREPARE-LINUX.sh
r36900 r37490 20 20 os_root=${os_full_lc%%_*} 21 21 22 if [ "x$os_root" = "xcygwin" ] ; then23 if [ ! -x $installed_dir/node.exe ] ; then24 echo "" >&225 echo "**** Note ****" >&226 echo "Under Cygwin, the programs in the 'bin' directory often lack" >&227 echo "execute permissions. This can be addressed with:" >&228 echo " chmod a+x $installed_dir/*.{exe,bat,cmd} $installed_dir/{npm,npx}" >&229 fi30 fi22 #if [ "x$os_root" = "xcygwin" ] ; then 23 # if [ ! -x $installed_dir/node.exe ] ; then 24 # echo "" >&2 25 # echo "**** Note ****" >&2 26 # echo "Under Cygwin, the programs in the 'bin' directory often lack" >&2 27 # echo "execute permissions. This can be addressed with:" >&2 28 # echo " chmod a+x $installed_dir/*.{exe,bat,cmd} $installed_dir/{npm,npx}" >&2 29 # fi 30 #fi -
gs3-extensions/selfcontained-nodejs/trunk/SETUP.sh
r37489 r37490 3 3 OS_LOWERCASE=`uname -s | tr '[:upper:]' '[:lower:]' | sed 's/_.*$//'` 4 4 5 if test $OS_LOWERCA PS= "cygwin" ; then6 OS_UPPERCA PS=WINDOWS7 OS_LOWERCA PS=windows5 if test $OS_LOWERCASE = "cygwin" ; then 6 OS_UPPERCASE=WINDOWS 7 OS_LOWERCASE=windows 8 8 fi 9 9 10 10 package_name="NodeJS" 11 installed_dir=node-${OS_LOWERCA PS}-64bit11 installed_dir=node-${OS_LOWERCASE}-64bit 12 12 13 13 full_installed_dir="$PWD/$installed_dir" … … 25 25 26 26 NODE_HOME="$full_installed_dir" ; export NODE_HOME 27 NODE_PATH=$full_installed_dir/lib/node_modules ; export NODE_PATH 28 PATH="$NODE_HOME/bin:$PATH" ; export PATH 27 28 if [ "x$OS_LOWERCASE" = "xwindows" ] ; then 29 PATH="$NODE_HOME:$PATH" ; export PATH 30 else 31 NODE_PATH=$full_installed_dir/lib/node_modules ; export NODE_PATH 32 PATH="$NODE_HOME/bin:$PATH" ; export PATH 33 fi 29 34 30 35 echo + "Set NODE_HOME, NODE_PATH and updated PATH"
Note:
See TracChangeset
for help on using the changeset viewer.