Skip to content

Commit

Permalink
fix: Redirect command on Windows (#796)
Browse files Browse the repository at this point in the history
* Fix redirect command

* Don't pack xz
  • Loading branch information
Akim authored Feb 23, 2024
1 parent f40f6ad commit 733bc9d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@
"commands": "./dist/commands",
"update": {
"s3": {
"bucket": "fcli-binaries"
"bucket": "fcli-binaries",
"xz": false
}
},
"nsisCustomization": "./nsis/custom-installer.nsi",
Expand Down
7 changes: 7 additions & 0 deletions src/beforeBuild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,3 +194,10 @@ await patchOclif(
"await Tarballs.build(buildConfig, { pack: false, parallel: true, platform: 'win32', tarball: flags.tarball });",
"await Tarballs.build(buildConfig, { pack: true, parallel: true, platform: 'win32', tarball: flags.tarball });",
);

// Set correct redirection command on Windows
await patchOclif(
WIN_BIN_FILE_PATH,
'"%~dp0\\\\..\\\\client\\\\bin\\\\node.exe" "%~dp0\\\\..\\\\client\\\\${additionalCLI ? `${additionalCLI}\\\\bin\\\\run` : \'bin\\\\run\'}" %*',
'"%~dp0\\\\..\\\\client\\\\bin\\\\fluence.cmd" %*',
);

0 comments on commit 733bc9d

Please sign in to comment.