mirror of
https://github.com/artegoser/pimi-launcher-core.git
synced 2024-11-05 21:23:59 +03:00
Added checksum for library download operation (#110)
This commit is contained in:
parent
1fa4668de9
commit
acdaac526d
1 changed files with 1 additions and 1 deletions
|
@ -509,7 +509,7 @@ class Handler {
|
|||
jarPath = path.join(directory, `${lib[0].replace(/\./g, '/')}/${lib[1]}/${lib[2]}`)
|
||||
}
|
||||
|
||||
if (!fs.existsSync(path.join(jarPath, name))) {
|
||||
if (!fs.existsSync(path.join(jarPath, name)) || !this.checkSum(library.downloads.artifact.sha1, path.join(jarPath, name))) {
|
||||
// Simple lib support, forgot which addon needed this but here you go, Mr special.
|
||||
if (library.url) {
|
||||
const url = `${library.url}${lib[0].replace(/\./g, '/')}/${lib[1]}/${lib[2]}/${name}`
|
||||
|
|
Loading…
Reference in a new issue