1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-26 01:35:28 +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() { function dist_src() {
const platforms = getPlatforms();
const isAndroid = platforms.includes('android');
const distSources = [ const distSources = [
'./src/**/*', './src/**/*',
'!./src/**/*.js', '!./src/**/*.js',
@ -364,8 +367,14 @@ function dist_src() {
'./src/js/tabs/map.js', './src/js/tabs/map.js',
]; ];
return gulp.src(distSources, { base: 'src' }) const distSourcesCordova = [
.pipe(gulp.src('yarn.lock')) './src/**/*',
'!./src/css/dropdown-lists/LICENSE',
'!./src/support/**',
'!./src/**/*.less',
];
return gulp.src(isAndroid ? distSourcesCordova : distSources, { base: 'src' })
.pipe(gulp.dest(DIST_DIR)); .pipe(gulp.dest(DIST_DIR));
} }