You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ah...@apache.org on 2018/03/16 18:04:54 UTC

[royale-asjs] branch develop updated: fix npm publishing on Windows

This is an automated email from the ASF dual-hosted git repository.

aharui pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/develop by this push:
     new 0cef870  fix npm publishing on Windows
0cef870 is described below

commit 0cef870f4654a6320faca909b5e7b4771945d3fb
Author: Alex Harui <ah...@apache.org>
AuthorDate: Fri Mar 16 11:04:42 2018 -0700

    fix npm publishing on Windows
---
 releasecandidate.xml | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/releasecandidate.xml b/releasecandidate.xml
index 133bb4b..6bfdd92 100644
--- a/releasecandidate.xml
+++ b/releasecandidate.xml
@@ -208,6 +208,14 @@
         <isset property="isWindows" />
     </condition>
     <property name="mvn" value="mvn" />
+    <condition property="npm" value="npm.cmd">
+        <isset property="isWindows" />
+    </condition>
+    <property name="npm" value="npm" />
+    <condition property="node" value="node.exe">
+        <isset property="isWindows" />
+    </condition>
+    <property name="node" value="node" />
     
     <available file="${env.ANT_HOME}/lib/${apache.rat.jar}"
         type="file"
@@ -1347,17 +1355,17 @@ ${my.name}
         <fail message="The svn.dist.release property is not set to the working copy for https://dist.apache.org/repos/dist/release."
         unless="dist.release"/>
         
-        <exec executable="npm" dir="${asjs}/npm/release-scripts" failonerror="true">
+        <exec executable="${npm}" dir="${asjs}/npm/release-scripts" failonerror="true">
             <arg value="install" />
         </exec>
-        <exec executable="node" dir="${asjs}/npm/release-scripts" failonerror="true">
+        <exec executable="${node}" dir="${asjs}/npm/release-scripts" failonerror="true">
             <arg value="publish.js" />
             <arg value="--type=js-only" />
             <arg value="--pathToTarball=${dist.release}/royale/${release.version}/binaries/apache-royale-${release.version}-bin-js.tar.gz" />
             <arg value="--username=apache-royale-owner" />
             <arg value="--password=${npm.password}" />
         </exec>
-        <exec executable="node" dir="${asjs}/npm/release-scripts" failonerror="true">
+        <exec executable="${node}" dir="${asjs}/npm/release-scripts" failonerror="true">
             <arg value="publish.js" />
             <arg value="--type=js-swf" />
             <arg value="--pathToTarball=${dist.release}/royale/${release.version}/binaries/apache-royale-${release.version}-bin-js-swf.tar.gz" />

-- 
To stop receiving notification emails like this one, please contact
aharui@apache.org.