|
@@ -13,6 +13,7 @@ const https = require('https')
|
|
|
const minimist = require('minimist')
|
|
|
const GulpSSH = require('gulp-ssh')
|
|
|
const vinylPaths = require('vinyl-paths')
|
|
|
+const rename = require('gulp-rename')
|
|
|
// 配置
|
|
|
const knownOptions = {
|
|
|
string: 'version',
|
|
@@ -613,3 +614,10 @@ gulp.task('modifyDataJson', cb => {
|
|
|
}
|
|
|
cb()
|
|
|
})
|
|
|
+
|
|
|
+gulp.task('copyMp3', () => {
|
|
|
+ return gulp.src([`D:/zedu_jxb/gameRes/gameChildSeme/**/**~1.mp3`]).pipe(rename(function (path) {
|
|
|
+ // Updates the object in-place
|
|
|
+ path.basename = path.basename.replace("~1", "")
|
|
|
+ })).pipe(gulp.dest('D:/zedu_jxb/gameRes/gameChildSeme/'))
|
|
|
+})
|