Skip to content

Commit 2669d55

Browse files
committed
Fixes as per review
1 parent 7fb9c52 commit 2669d55

File tree

2 files changed

+25
-3
lines changed

2 files changed

+25
-3
lines changed

gulpfile.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const del = require('del');
1111
const NwBuilder = require('nw-builder');
1212
const makensis = require('makensis');
1313
const deb = require('gulp-debian');
14+
const buildRpm = require('rpm-builder')
1415
const commandExistsSync = require('command-exists').sync;
1516

1617
const gulp = require('gulp');
@@ -584,6 +585,29 @@ function release_osx64() {
584585
);
585586
}
586587

588+
function getLinuxPackageArch(type, arch) {
589+
var packArch;
590+
591+
switch (arch) {
592+
case 'linux32':
593+
packArch = 'i386';
594+
break;
595+
case 'linux64':
596+
if (type == 'rpm') {
597+
packArch = 'x86_64';
598+
} else {
599+
packArch = 'amd64';
600+
}
601+
break;
602+
default:
603+
console.error("Package error, arch: " + arch);
604+
process.exit(1);
605+
break;
606+
}
607+
608+
return packArch;
609+
}
610+
587611
// Create the dir directory, with write permissions
588612
function createDirIfNotExists(dir) {
589613
fs.mkdir(dir, '0775', function(err) {

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@
2222
},
2323
"author": "The Betaflight open source project.",
2424
"license": "GPL-3.0",
25-
"dependencies": {
26-
"gulp-appdmg": "^1.0.3"
27-
},
25+
"dependencies": {},
2826
"devDependencies": {
2927
"command-exists": "^1.2.2",
3028
"del": "^3.0.0",

0 commit comments

Comments
 (0)