mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2025-01-24 07:38:36 +00:00
get rid of sourcedir in path for ignore filter matching
This commit is contained in:
parent
ac8aea014e
commit
f8c64fe755
2
linux.js
2
linux.js
@ -61,6 +61,8 @@ module.exports = {
|
||||
}
|
||||
|
||||
function userFilter (file) {
|
||||
file = file.split(path.resolve(opts.dir))[1]
|
||||
|
||||
var ignore = opts.ignore || []
|
||||
if (!Array.isArray(ignore)) ignore = [ignore]
|
||||
ignore = ignore.concat([finalDir])
|
||||
|
2
mac.js
2
mac.js
@ -69,6 +69,8 @@ function buildMacApp (opts, cb, newApp) {
|
||||
fs.writeFileSync(paths.info2, plist.build(pl2))
|
||||
|
||||
function filter (file) {
|
||||
file = file.split(path.resolve(opts.dir))[1]
|
||||
|
||||
var ignore = opts.ignore || []
|
||||
if (!Array.isArray(ignore)) ignore = [ignore]
|
||||
for (var i = 0; i < ignore.length; i++) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user