Skip to content

Commit

Permalink
Merge pull request #2 from zaacksb/fix/paths-special-chars
Browse files Browse the repository at this point in the history
Fixed handling of special characters in child process paths
  • Loading branch information
liudonghua123 authored May 20, 2024
2 parents a636f2e + 76e0ee1 commit 37416b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@ export default async function sea(
});
// Generate the blob to be injected
await spinner_log(`Generating blob into ${preparation_blob_path}`, async () => {
await exec(`node --experimental-sea-config ${sea_config_path}`);
await exec(`node --experimental-sea-config "${sea_config_path}"`);
});
// Inject the blob into the copied binary by running postject
await spinner_log(`Injecting blob into ${basename(executable_path)}`, async () => {
await exec(`npx postject ${executable_path} NODE_SEA_BLOB ${preparation_blob_path} --sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2`);
await exec(`npx postject "${executable_path}" NODE_SEA_BLOB "${preparation_blob_path}" --sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2`);
});
// Remove the temporary directory
await spinner_log(`Removing all the files in temporary directory ${temp_dir}`, async () => {
Expand Down

0 comments on commit 37416b9

Please sign in to comment.