Skip to content

Commit

Permalink
updated rename script after new linux distr name
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexeyBarabash committed Feb 21, 2018
1 parent 4b1be5d commit 677e57c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/createDist.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ const renameLinuxDistr = (options) => {
fs.readdir(config.outputDir, function(err, items) {
for (var i=0; i<items.length; i++) {
var newFileName = '';
if ((new RegExp(/^brave-browser-stable.*rpm$/)).test(items[i])) {
if ((new RegExp(/^brave-browser-[0-9.-]+.*rpm$/)).test(items[i])) {
newFileName = (options.target_arch === 'x86') ?
I386_RPM_NAME : AMD64_RPM_NAME;
} else if ((new RegExp(/^brave-browser-stable.*deb$/)).test(items[i])) {
} else if ((new RegExp(/^brave-browser_[0-9.-]+.*deb$/)).test(items[i])) {
newFileName = (options.target_arch === 'x86') ?
I386_DEB_NAME : AMD64_DEB_NAME;
} else if ((new RegExp(/^brave-browser-(unstable|beta).*(rpm|deb)$/)).test(items[i])) {
Expand Down

0 comments on commit 677e57c

Please sign in to comment.