Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Merge pull request #11991 from brave/issue-11939
Browse files Browse the repository at this point in the history
Clean legacy build/install generation before each packaging
  • Loading branch information
bsclifton authored Nov 17, 2017
2 parents 74c4b38 + a25788d commit 573a95b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 17 deletions.
22 changes: 8 additions & 14 deletions tools/buildPackage.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,25 +84,19 @@ var cmds = ['echo cleaning up target...']

if (isWindows) {
cmds = cmds.concat([
`(if exist ${appName}-win32-x64 rmdir /s /q ${appName}-win32-x64)`,
`(if exist ${appName}-win32-ia32 rmdir /s /q ${appName}-win32-ia32)`
'cmd.exe /c for /d %x in (*-win32-x64) do rmdir /s /q "%x"',
'cmd.exe /c for /d %x in (*-win32-ia32) do rmdir /s /q "%x"'
])

// Remove the destination folder for the selected arch
if (arch === 'ia32') {
cmds = cmds.concat([
'(if exist dist-ia32 rmdir /s /q dist-ia32)'
])
} else {
cmds = cmds.concat([
'(if exist dist-x64 rmdir /s /q dist-x64)'
])
}
// Remove the destination folder
cmds = cmds.concat([
'(if exist dist rmdir /s /q dist)'
])
} else {
cmds = cmds.concat([
'rm -Rf ' + buildDir,
'rm -Rf ' + '*-' + process.platform + '-' + arch,
'rm -Rf dist',
`rm -f ${appName}.tar.bz2`
`rm -f *.tar.bz2`
])
}

Expand Down
4 changes: 1 addition & 3 deletions tools/lib/ignoredPaths.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,5 @@ module.exports = [
'sqlite3',
'uglify-js',
'webdriverio',
'webpack-dev-server',
'Brave(.+)',
'brave-(.+)'
'webpack-dev-server'
]

0 comments on commit 573a95b

Please sign in to comment.