1
0
Fork 0
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:
Mark Haslinghuis 2023-12-31 17:49:26 +01:00 committed by GitHub
parent a51c0a62c0
commit 3f16b22fbe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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));
}