Removed deprecated option from gulpfile.

10.8-maintenance
Michael Keller 2020-11-27 13:15:42 +01:00
parent e71affcd65
commit ab2e7a0e89
1 changed files with 4 additions and 4 deletions

View File

@ -52,7 +52,7 @@ let gitChangeSetId;
const nwBuilderOptions = { const nwBuilderOptions = {
version: '0.47.0', version: '0.47.0',
files: './dist/**/*', files: `${DIST_DIR}**/*`,
macIcns: './src/images/bf_icon.icns', macIcns: './src/images/bf_icon.icns',
macPlist: { 'CFBundleDisplayName': 'Betaflight Configurator'}, macPlist: { 'CFBundleDisplayName': 'Betaflight Configurator'},
winIco: './src/images/bf_icon.ico', winIco: './src/images/bf_icon.ico',
@ -269,7 +269,7 @@ function dist_src() {
return packageJson return packageJson
.pipe(source('package.json')) .pipe(source('package.json'))
.pipe(gulp.src(distSources, { base: 'src' })) .pipe(gulp.src(distSources, { base: 'src' }))
.pipe(gulp.src('yarn.lock', { passthrougth: true })) .pipe(gulp.src('yarn.lock'))
.pipe(gulp.dest(DIST_DIR)); .pipe(gulp.dest(DIST_DIR));
} }
@ -280,8 +280,8 @@ function dist_changelog() {
// This function relies on files from the dist_src function // This function relies on files from the dist_src function
function dist_yarn() { function dist_yarn() {
return gulp.src(['./dist/package.json', './dist/yarn.lock']) return gulp.src([`${DIST_DIR}package.json`, `${DIST_DIR}yarn.lock`])
.pipe(gulp.dest('./dist')) .pipe(gulp.dest(DIST_DIR))
.pipe(yarn({ .pipe(yarn({
production: true, production: true,
})); }));