Skip to content
This repository has been archived by the owner on Sep 10, 2023. It is now read-only.

Commit

Permalink
New bundle : 8.2.1 (Issue neard/neard#300)
Browse files Browse the repository at this point in the history
  • Loading branch information
crazy-max committed Jul 30, 2017
1 parent 32f1f1d commit f42fbff
Show file tree
Hide file tree
Showing 12 changed files with 53 additions and 8 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## r15 (2017/07/30)

* New bundle : 8.2.1 (Issue crazy-max/neard#300)

## r14 (2017/07/13)

* New bundles : 4.8.4, 6.11.1, 7.10.1, 8.1.4 (Issue crazy-max/neard#285)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[![GitHub release](https://img.shields.io/github/release/crazy-max/neard-bin-nodejs.svg?style=flat-square)](https://github.com/crazy-max/neard-bin-nodejs/releases/latest)
![Total downloads](https://img.shields.io/github/downloads/crazy-max/neard-bin-nodejs/total.svg?style=flat-square)

This is a module of [Neard project](https://github.com/crazy-max/neard) involving Node.js binary bundles.
This is a module of [Neard project](https://github.com/crazy-max/neard) involving Node.js.

## Documentation and downloads

Expand Down
1 change: 1 addition & 0 deletions bin/nodejs8.2.1/etc/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

5 changes: 5 additions & 0 deletions bin/nodejs8.2.1/etc/npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
cache = ~NEARD_WIN_PATH~\tmp\npm-cache
globalconfig = ~NEARD_WIN_PATH~\bin\nodejs\nodejs8.2.1\etc\npmrc
globalignorefile = ~NEARD_WIN_PATH~\bin\nodejs\nodejs8.2.1\etc\.npmignore
init-module = ~NEARD_WIN_PATH~\bin\nodejs\nodejs8.2.1\etc\.npm-init.js
userconfig = ~NEARD_WIN_PATH~\bin\nodejs\nodejs8.2.1\etc\npmrc
5 changes: 5 additions & 0 deletions bin/nodejs8.2.1/etc/npmrc.nrd
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
cache = ~NEARD_WIN_PATH~\tmp\npm-cache
globalconfig = ~NEARD_WIN_PATH~\bin\nodejs\nodejs8.2.1\etc\npmrc
globalignorefile = ~NEARD_WIN_PATH~\bin\nodejs\nodejs8.2.1\etc\.npmignore
init-module = ~NEARD_WIN_PATH~\bin\nodejs\nodejs8.2.1\etc\.npm-init.js
userconfig = ~NEARD_WIN_PATH~\bin\nodejs\nodejs8.2.1\etc\npmrc
12 changes: 12 additions & 0 deletions bin/nodejs8.2.1/launch.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
@ECHO OFF
SETLOCAL EnableDelayedExpansion

SET NEARD_NODEJS_PATH=%~dp0
SET NEARD_NODEJS_PATH=!NEARD_NODEJS_PATH:~0,-1!
SET NEARD_NODEJS_NPM_PATH=%NEARD_NODEJS_PATH%\node_modules\npm
SET NEARD_NODEJS_CONFIG_PATH=%NEARD_NODEJS_NPM_PATH%\npmrc
ECHO prefix = %NEARD_NODEJS_PATH%>%NEARD_NODEJS_CONFIG_PATH%

"%NEARD_NODEJS_PATH%\nodevars.bat" & "%NEARD_NODEJS_PATH%\npm" config set globalconfig "%NEARD_NODEJS_CONFIG_PATH%" --global

ENDLOCAL
8 changes: 8 additions & 0 deletions bin/nodejs8.2.1/neard.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
nodejsVersion = "8.2.1"
nodejsExe = "node.exe"
nodejsVars = "nodevars.bat"
nodejsNpm = "npm.cmd"
nodejsLaunch = "launch.bat"
nodejsConf = "node_modules/npm/npmrc"

bundleRelease = "@RELEASE_VERSION@"
1 change: 1 addition & 0 deletions bin/nodejs8.2.1/node_modules/npm/npmrc

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions bin/nodejs8.2.1/node_modules/npm/npmrc.nrd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
bundle.name = nodejs
bundle.release = r14
bundle.release = r15
bundle.type = bins
bundle.format = 7z

Expand Down
19 changes: 13 additions & 6 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,23 @@
<replaceproperty src="bundle.folder" dest="bundle.version" replace="${bundle.name}" with=""/>

<getmoduleuntouched name="${bundle.name}" version="${bundle.version}" propSrcDest="bundle.srcdest" propSrcFilename="bundle.srcfilename"/>
<assertfile file="${bundle.srcdest}/${bundle.srcfilename}"/>

<property name="msiextract.path" value="${bundle.srcdest}/extract"/>
<extractmsi file="${bundle.srcdest}/${bundle.srcfilename}" dest="${msiextract.path}"/>
<assertfile file="${msiextract.path}/nodejs/node.exe"/>
<if>
<matches string="${bundle.srcdest}/${bundle.srcfilename}" pattern="msi$"/>
<then>
<extractmsi file="${bundle.srcdest}/${bundle.srcfilename}" dest="${bundle.srcdest}/extract"/>
<property name="nodeextract.path" value="${bundle.srcdest}/extract/SourceDir/nodejs"/>
</then>
<else>
<propertyregex property="bundle.srcbasename" input="${bundle.srcfilename}" regexp="(.*)\.(.*)" select="\1"/>
<property name="nodeextract.path" value="${bundle.srcdest}/${bundle.srcbasename}"/>
</else>
</if>
<assertfile file="${nodeextract.path}/node.exe"/>

<delete dir="${bundle.tmp.prep.path}/${bundle.folder}"/>
<mkdir dir="${bundle.tmp.prep.path}/${bundle.folder}"/>
<copy todir="${bundle.tmp.prep.path}/${bundle.folder}" overwrite="true">
<fileset dir="${msiextract.path}/nodejs"/>
<fileset dir="${nodeextract.path}"/>
</copy>
<copy todir="${bundle.tmp.prep.path}/${bundle.folder}" overwrite="true">
<fileset dir="${bundle.path}" defaultexcludes="yes"/>
Expand Down
1 change: 1 addition & 0 deletions releases.properties
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,4 @@
7.10.1 = https://github.com/crazy-max/neard-bin-nodejs/releases/download/r14/neard-nodejs-7.10.1-r14.7z
8.1.0 = https://github.com/crazy-max/neard-bin-nodejs/releases/download/r13/neard-nodejs-8.1.0-r13.7z
8.1.4 = https://github.com/crazy-max/neard-bin-nodejs/releases/download/r14/neard-nodejs-8.1.4-r14.7z
8.2.1 = https://github.com/crazy-max/neard-bin-nodejs/releases/download/r15/neard-nodejs-8.2.1-r15.7z

0 comments on commit f42fbff

Please sign in to comment.