Skip to content

Commit

Permalink
fix(agent): fix build script path regex for windows. (#2691)
Browse files Browse the repository at this point in the history
  • Loading branch information
icycodes authored Jul 19, 2024
1 parent 18e31dc commit 8009831
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clients/tabby-agent/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ function processWinCa(copyRootsExe: boolean = false): Plugin {
return {
name: "processWinCa",
setup: (build: PluginBuild) => {
build.onLoad({ filter: /win-ca\/lib\/crypt32-\w*.node$/ }, async () => {
build.onLoad({ filter: /win-ca[\\/]lib[\\/]crypt32-\w*.node$/ }, async () => {
// As win-ca fallback is used, skip not required `.node` binaries
return {
contents: "",
loader: "empty",
};
});
build.onLoad({ filter: /win-ca\/lib\/fallback.js$/ }, async (args) => {
build.onLoad({ filter: /win-ca[\\/]lib[\\/]fallback.js$/ }, async (args) => {
if (copyRootsExe) {
// Copy `roots.exe` binary to `dist/win-ca`, and the LICENSE
const binaryName = "roots.exe";
Expand Down

0 comments on commit 8009831

Please sign in to comment.