import { ImageEncryptTask } from "./tasks/ImageEncryptTask" ; import { TaskConfig } from "./tasks/TaskConfig" ; import { InjectPluginTask } from "./tasks/InjectPluginTask" ; import { TextEncryptTask } from "./tasks/TextEncryptTask" ; export class CocosBuildEncrypt { start ( ) { let taskConfig = new TaskConfig ( ) ; let tasks = [ new ImageEncryptTask ( ) , new TextEncryptTask ( ) , new InjectPluginTask ( ) , ] ; tasks . forEach ( ( task ) => { task . handle ( taskConfig ) ; } ) ; console . log ( "恭喜，处理成功！" ) ; } } new CocosBuildEncrypt ( ) . start ( ) ;