chore: ensure capital drive letter in file manifest

This commit is contained in:
calebboyd
2018-03-21 21:37:22 -05:00
committed by Caleb Boyd
parent b8522b6310
commit f4d3ce954a
3 changed files with 59 additions and 36 deletions
+8 -8
View File
@@ -25,6 +25,14 @@ const manifest = binary.resources,
originalRealpathSync = fs.realpathSync,
resourceStart = binary.layout.resourceStart
let log = (text: string) => {
if ((process.env.DEBUG || '').toLowerCase().includes('nexe:require')) {
process.stderr.write('[nexe] - ' + text + '\n')
} else {
log = noop
}
}
const getKey = process.platform.startsWith('win')
? function getKey(filepath: string): string {
let key = path.resolve(filepath)
@@ -35,14 +43,6 @@ const getKey = process.platform.startsWith('win')
}
: path.resolve
let log = (text: string) => {
if ((process.env.DEBUG || '').toLowerCase().includes('nexe:require')) {
process.stderr.write('[nexe] - ' + text + '\n')
} else {
log = noop
}
}
const statTime = function() {
const stat = binary.layout.stat
return {