mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-25 01:05:15 +03:00
Fix Android (#3708)
This commit is contained in:
parent
a51c0a62c0
commit
3f16b22fbe
1 changed files with 11 additions and 2 deletions
13
gulpfile.js
13
gulpfile.js
|
@ -353,6 +353,9 @@ function processPackage(done, gitRevision, isReleaseBuild) {
|
|||
}
|
||||
|
||||
function dist_src() {
|
||||
const platforms = getPlatforms();
|
||||
const isAndroid = platforms.includes('android');
|
||||
|
||||
const distSources = [
|
||||
'./src/**/*',
|
||||
'!./src/**/*.js',
|
||||
|
@ -364,8 +367,14 @@ function dist_src() {
|
|||
'./src/js/tabs/map.js',
|
||||
];
|
||||
|
||||
return gulp.src(distSources, { base: 'src' })
|
||||
.pipe(gulp.src('yarn.lock'))
|
||||
const distSourcesCordova = [
|
||||
'./src/**/*',
|
||||
'!./src/css/dropdown-lists/LICENSE',
|
||||
'!./src/support/**',
|
||||
'!./src/**/*.less',
|
||||
];
|
||||
|
||||
return gulp.src(isAndroid ? distSourcesCordova : distSources, { base: 'src' })
|
||||
.pipe(gulp.dest(DIST_DIR));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue