Skip to content

Commit

Permalink
added windows specific uvx npx
Browse files Browse the repository at this point in the history
  • Loading branch information
Kvadratni committed Feb 8, 2025
1 parent 34d9b4d commit 8f7675a
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions ui/desktop/src/bin/npx.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
:: Created by npm, please don't edit manually.
@ECHO OFF

SETLOCAL

SET "NODE_EXE=%~dp0\node.exe"
IF NOT EXIST "%NODE_EXE%" (
SET "NODE_EXE=node"
)

SET "NPM_PREFIX_JS=%~dp0\node_modules\npm\bin\npm-prefix.js"
SET "NPX_CLI_JS=%~dp0\node_modules\npm\bin\npx-cli.js"
FOR /F "delims=" %%F IN ('CALL "%NODE_EXE%" "%NPM_PREFIX_JS%"') DO (
SET "NPM_PREFIX_NPX_CLI_JS=%%F\node_modules\npm\bin\npx-cli.js"
)
IF EXIST "%NPM_PREFIX_NPX_CLI_JS%" (
SET "NPX_CLI_JS=%NPM_PREFIX_NPX_CLI_JS%"
)

"%NODE_EXE%" "%NPX_CLI_JS%" %*
Binary file added ui/desktop/src/bin/uv.exe
Binary file not shown.
Binary file added ui/desktop/src/bin/uvx.exe
Binary file not shown.

0 comments on commit 8f7675a

Please sign in to comment.