Tags: electron/asar
Tags
feat!: bump `engines` requirement to Node 22 (#347) BREAKING CHANGE: bumps required Node.js version to >=22.12.0. ESM-only. * use `node:` imports * use `"@tsconfig/node22` * remove `rimraf` * update `glob` and remove inlined types * esm: add `"type": "module"` and update imports * esm: update test imports and dependencies * remove `default` exports * remove unused `import`s * fix Windows tests * update `import`s / `export`s in `src/asar.ts` * remove `promisify(stream.pipeline)` * remove `lodash` * remove `enginesStrict` * rename `bin/asar.js` to `bin/asar.mjs` * bump `minimatch` to `10.0.1` * `var` -> `const` * add `noUnusedLocals: true` to `tsconfig.json` * update `wrappedFs` * update `commander` * update `chai` * add docs publishing flow * docs: update README imports --------- Co-authored-by: Erick Zhao <erick@hotmail.ca>
fix: allow `../` symlink Streams when they're still within the package ( #363) * fix: allow symlinks that point to higher directories but still validate that they are within the filesystem * add invalid symlink to test readstream failure on outside package * add additional test for bad symlink fixture
feat: add in-memory API for streaming files to destination asar (#360) * feat: adding `async function createPackageFromStreams(dest: string, filestreams: Filestream[])` to allow streaming files directly from in-memory into the asar. The stream order is used as the insertion order. Consolidated logic for generating Pickle `out` `WriteableStream` and creating unpacked symlinks * Refactor Type definitions for handling streaming to asar * Update src/filesystem.ts Co-authored-by: Kevin Cui <github@bugs.cc> --------- Co-authored-by: Kevin Cui <github@bugs.cc>
feat: allow providing properties (such as `unpack`) in `ordering` inp… …ut file (#350) * Part 1 for electron/universal#117 with updated unit test * add additional helper function * use wrapped-fs for writeFile * `yarn prettier:write` * swap to for-of loop and extract helper function `isAlreadySorted` to make it more readable
fix: Respect unpack minimatch for symlinks within previously unpacked… … directories (#341) * fix: Respecting unpack configuration when considering symlinks within previously unpacked directories. This directly fixes unpacking static `.framework` modules on Mac, as otherwise codesigning will fail due to symlink files/directories not being reflected in the app.asar.unpacked directory. Added unit test with Hello.framework, generated from tutorial https://jano.dev/apple/mach-o/2024/06/28/Hello-Static-Framework.html Fixes: electron-userland/electron-builder#8655 * adding unit test by programmatically create symlinks during test case (same approach as has been taken for filesystem UT already) * cleanup changes post-merging `main`
fix: `isUnpackedDir` matches non-child directories that have same fol… …der name prefix (#333) * tmp save * update test case to test minimatch pattern * yarn prettier * remove path separator as it differs on windows * retrigger build as the timeout is unrelated to edited unit test * empty commit
fix: Enable `getNode` to follow directory links (fixes #248) (#318) * Add test failing to stat symlinked file This demonstrates issue #248 * (fix #248) follow directory links in getNode When called from stat, getNode should follow directory links to ensure that the correct node is returned. Otherwise, node.files[name] will be undefined, causing a TypeError.
PreviousNext