Skip to content

Commit

Permalink
Fix prepublish script
Browse files Browse the repository at this point in the history
  • Loading branch information
hansonw committed Oct 15, 2016
1 parent 0f3be68 commit 5e7a5a5
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions tools/prepublish.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,23 @@ var rimraf = require('rimraf');

rimraf.sync('./build');

var platforms = [
'darwin',
'linux',
];
var versions = [
'4.0.0',
'5.0.0',
'6.0.0'
{target: '4.0.0'},
{target: '5.0.0'},
{target: '1.3.6', runtime: 'electron'},
];
var matrix = {
x64: ['linux', 'darwin'],
ia32: ['darwin']
};

var targets = [];
Object.keys(matrix).forEach(function(arch) {
matrix[arch].forEach(function(platform) {
versions.forEach(function(version) {
targets.push({
target: version,
target_platform: platform,
target_arch: arch,
});
platforms.forEach(function(platform) {
versions.forEach(function(version) {
targets.push({
target: version.target,
runtime: version.runtime,
target_platform: platform,
});
});
});
Expand Down

0 comments on commit 5e7a5a5

Please sign in to comment.