Skip to content

Commit

Permalink
Use symlink for bin/soljson-latest.js
Browse files Browse the repository at this point in the history
  • Loading branch information
clonker committed Sep 11, 2024
1 parent d234b18 commit eacc6df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 118 deletions.
111 changes: 0 additions & 111 deletions bin/soljson-latest.js

This file was deleted.

1 change: 1 addition & 0 deletions bin/soljson-latest.js
8 changes: 1 addition & 7 deletions update.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,6 @@ function processDir (dir, options, listCallback) {
})

// Update 'latest' symlink (except for wasm/ where the link is hard-coded to point at the one in bin/).
// bin/ is a special case because we need to keep a copy rather than a symlink. The reason is that
// some tools (in particular solc-js) have hard-coded github download URLs to it and can't handle symlinks.
if (dir !== '/wasm') {
const releaseExtension = binaryExtensions.find(function (extension) { return latestReleaseFile.endsWith(extension) })

Expand All @@ -312,11 +310,7 @@ function processDir (dir, options, listCallback) {
}
})

if (dir === '/bin') {
updateCopy(join(dir, latestReleaseFile), join(dir, binaryPrefix + '-latest' + releaseExtension))
} else {
updateSymlinkSync(join(dir, binaryPrefix + '-latest' + releaseExtension), latestReleaseFile)
}
updateSymlinkSync(join(dir, binaryPrefix + '-latest' + releaseExtension), latestReleaseFile)
}

// Update 'nightly' symlink in bin/ (we don't have nightlies for other platforms)
Expand Down

0 comments on commit eacc6df

Please sign in to comment.