Skip to content

Commit

Permalink
Fix calling neu executable on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
AntumDeluge committed Jun 5, 2024
1 parent 07346dd commit 5f8d34f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
<condition property="executable.npm" value="npm.cmd" else="npm">
<equals arg1="${os.win}" arg2="true"/>
</condition>
<condition property="executable.npx" value="npx.cmd" else="npx">
<equals arg1="${os.win}" arg2="true"/>
</condition>

<!-- Windows fails to execute "ng" unless it is invoked as "ng.cmd" -->
<condition property="executable.suffix" value=".cmd">
Expand Down
6 changes: 4 additions & 2 deletions buildtools/ant_modules/apps.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,14 @@
-->
<available file="app/neutralinojs/bin/neutralino-linux_x64" property="neutralinojs.present" />
<target name="prepare-neutralinojs" unless="neutralinojs.present">
<exec executable="neu" dir="app/neutralinojs" failonerror="true">
<exec executable="${executable.npx}" dir="app/neutralinojs" failonerror="true">
<arg value="@neutralinojs/neu" />
<arg value="update" />
</exec>
</target>
<target name="neutralinojs" depends="prepare-neutralinojs">
<exec executable="neu" dir="app/neutralinojs" failonerror="true">
<exec executable="${executable.npx}" dir="app/neutralinojs" failonerror="true">
<arg value="@neutralinojs/neu" />
<arg value="build" />
</exec>
<delete failonerror="false">
Expand Down

0 comments on commit 5f8d34f

Please sign in to comment.