mirror of
https://github.com/artegoser/pimi-launcher-core.git
synced 2024-11-25 21:46:20 +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]}`)
|
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.
|
// Simple lib support, forgot which addon needed this but here you go, Mr special.
|
||||||
if (library.url) {
|
if (library.url) {
|
||||||
const url = `${library.url}${lib[0].replace(/\./g, '/')}/${lib[1]}/${lib[2]}/${name}`
|
const url = `${library.url}${lib[0].replace(/\./g, '/')}/${lib[1]}/${lib[2]}/${name}`
|
||||||
|
|
Loading…
Add table
Reference in a new issue