package: cross platform "cp" script for windows
This commit is contained in:
parent
e70a069bac
commit
ef3738ff32
2 changed files with 12 additions and 1 deletions
10
scripts/copy-assets.js
Normal file
10
scripts/copy-assets.js
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
var cp = require('cp'),
|
||||
path = require('path'),
|
||||
files = [
|
||||
['../resources/images/logo-nobadge.png', '../app/browser/favicon.png'],
|
||||
['../resources/images/logo.png', '../app/browser/logo.png']
|
||||
]
|
||||
|
||||
for (var i in files) {
|
||||
cp.sync(...files[i].map(f => path.resolve(__dirname + '/' + f)))
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue