Skip to content
Snippets Groups Projects
Commit 84a0d758 authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

[fix] license file encoding (add UTF-8 BOM character)

parent 10d6672b
No related branches found
No related tags found
No related merge requests found
......@@ -282,7 +282,8 @@ gulp.task('copy-files:web', ['clean:tmp', 'clean:web', 'sass', 'config'], functi
.pipe(gulp.dest(tmpPath + '/lib/ionic')),
// Copy license
gulp.src('./www/license/**/*.*')
gulp.src('./www/license/**/*.txt')
.pipe(header('\ufeff')) // Need BOM character for UTF-8 files
.pipe(gulp.dest(tmpPath + '/license'))
)
......@@ -416,11 +417,17 @@ gulp.task('clean-unused-directories:web', ['clean-unused-files:web'], function(d
gulp.task('zip:web', ['clean-unused-directories:web'], function(done) {
var tmpPath = './platforms/web/www';
var version = JSON.parse(fs.readFileSync('./package.json', 'utf8')).version;
var fileFilter = filter(['**', '!*/templates', '!*/css', '!*/js']);
var txtFilter = filter(["**/*.txt"], { restore: true });
gulp.src(tmpPath + '/**/*.*')
// Process TXT files: Add the UTF-8 BOM character
.pipe(txtFilter)
.pipe(header('\ufeff'))
.pipe(txtFilter.restore)
.pipe(zip('cesium-web-'+version+'.zip'))
.pipe(fileFilter)
.pipe(gulp.dest('./platforms/web/build'))
.on('end', done);
});
......

Licence Ğ1 - v0.2
=================
......

Licence Ğ1 - v0.2
=================
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment