mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 16:25:21 +00:00
Added two path.resolve
This commit is contained in:
4
index.js
4
index.js
@@ -304,11 +304,11 @@ function generatePass(options) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// adding the files to the zip - i'm not using .directory method because it adds also hidden files like .DS_Store on macOS
|
// adding the files to the zip - i'm not using .directory method because it adds also hidden files like .DS_Store on macOS
|
||||||
archive.file(`${Configuration.passModelsDir}/${options.modelName}.pass/${file}`, { name: file });
|
archive.file(path.resolve(Configuration.passModelsDir, `${options.modelName}.pass`, file), { name: file });
|
||||||
|
|
||||||
let hashFlow = forge.md.sha1.create();
|
let hashFlow = forge.md.sha1.create();
|
||||||
|
|
||||||
fs.createReadStream(`${Configuration.passModelsDir}/${options.modelName}.pass/${file}`)
|
fs.createReadStream(path.resolve(Configuration.passModelsDir, `${options.modelName}.pass`, file))
|
||||||
.on("data", function(data) {
|
.on("data", function(data) {
|
||||||
hashFlow.update(data.toString("binary"));
|
hashFlow.update(data.toString("binary"));
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user