Created
July 24, 2018 13:19
-
-
Save lazzyms/04081c406ade0f14c99fd323fb363b3e to your computer and use it in GitHub Desktop.
copy the built project to another folder.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs-extra') | |
var del = require("delete"); | |
//delete js | |
console.log("Deleting Old JS"); | |
del.sync('../electron/main.*.js', { | |
force: true | |
}); | |
console.log("Deleted"); | |
// copy files | |
try { | |
console.log('Copy started'); | |
fs.copySync('./dist/', '../electron/'); | |
} catch (ex) { | |
console.log('Error : ' + ex); | |
} finally { | |
console.log('Copied'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment