Fix test extension location

This commit is contained in:
hensm
2018-12-21 04:28:36 +00:00
parent 95bbe777bc
commit f4f795e8e6
2 changed files with 25 additions and 5 deletions

View File

@@ -83,7 +83,12 @@ if (argv.watch) {
// Prevent auto-exit
shouldExitProgram: false
}).then(() => {
}).then(result => {
const archiveName = path.basename(result.extensionPath);
fs.moveSync(path.join(DIST_PATH, archiveName)
, path.join(DIST_PATH, archiveName.replace("zip", "xpi")));
// Only need the built extension archive
fs.remove(UNPACKED_PATH);
})