File tree Expand file tree Collapse file tree 2 files changed +25
-3
lines changed Expand file tree Collapse file tree 2 files changed +25
-3
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ const del = require('del');
1111const NwBuilder = require ( 'nw-builder' ) ;
1212const makensis = require ( 'makensis' ) ;
1313const deb = require ( 'gulp-debian' ) ;
14+ const buildRpm = require ( 'rpm-builder' )
1415const commandExistsSync = require ( 'command-exists' ) . sync ;
1516
1617const 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
588612function createDirIfNotExists ( dir ) {
589613 fs . mkdir ( dir , '0775' , function ( err ) {
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments