diff --git a/lib/index.js b/lib/index.js index b6d6aab..53bfacb 100644 --- a/lib/index.js +++ b/lib/index.js @@ -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 () => {