Skip to content

Commit

Permalink
chore: bump electronjs/node to 2.2.0 (main) (electron#298)
Browse files Browse the repository at this point in the history
chore: bump electronjs/node in .circleci/config.yml to 2.2.0

Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com>

fix: fix bug in filesystem.insertLink
  • Loading branch information
electron-roller[bot] authored and jrainliu committed Feb 1, 2024
1 parent e1c143c commit 07a14a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: 2.1

orbs:
cfa: continuousauth/[email protected]
node: electronjs/node@2.1.0
node: electronjs/node@2.2.0

workflows:
test_and_release:
Expand Down
4 changes: 3 additions & 1 deletion lib/filesystem.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ class Filesystem {
}

insertLink (p) {
const link = path.relative(fs.realpathSync(this.src), fs.realpathSync(p))
const symlink = fs.readlinkSync(p)
const parentPath = path.dirname(p)
const link = path.relative(fs.realpathSync(this.src), path.join(parentPath, symlink))
if (link.substr(0, 2) === '..') {
throw new Error(`${p}: file "${link}" links out of the package`)
}
Expand Down

0 comments on commit 07a14a8

Please sign in to comment.