diff --git a/assets/script/batch/build.bat b/assets/script/batch/build.bat index 4b04a3b..08db59d 100644 --- a/assets/script/batch/build.bat +++ b/assets/script/batch/build.bat @@ -11,4 +11,5 @@ SET BuildData > build_data.conf SET BUILDER=%~dp0 cd "%BUILDER%..\..\.." echo "===> Build Project Path: %cd%" +flutter packages upgrade dart run "./bin/main.dart" exe -j \ No newline at end of file diff --git a/build_win.yaml b/build_win.yaml index 9373823..631f513 100644 --- a/build_win.yaml +++ b/build_win.yaml @@ -3,7 +3,7 @@ common: workspace: "." commands: -### Version 쓰기 +### Version - command: CreateAppData param: scm: Git @@ -12,17 +12,17 @@ commands: returnVersion: "" returnHash: "" -### 프로젝트 패키지 업데이트 +### Ʈ Ű Ʈ - command: BuildDart param: {} -### 실행가능한 파일로 빌드 +### డ Ϸ - command: BuildDartCompile param: targetDartFile: "./bin/main.dart" buildFileName: oto_cli -### 최종 zip 파일 형태로 저장 +### zip · - command: Zip param: zipFile: "/release/oto_win_v.zip" diff --git a/lib/cli/commands/command_exe.dart b/lib/cli/commands/command_exe.dart index f66d77d..d08c1dd 100644 --- a/lib/cli/commands/command_exe.dart +++ b/lib/cli/commands/command_exe.dart @@ -1,6 +1,7 @@ import 'dart:async'; import 'dart:io'; +import 'package:dart_framework/charset/euc_kr.dart'; import 'package:oto_cli/cli/cli.dart'; import 'package:oto_cli/cli/commands/command_base.dart'; import 'package:dart_framework/utils/system_util.dart'; @@ -44,8 +45,9 @@ class CommandExe extends CommandBase { void startYaml(String target) { var file = File(target); if (file.existsSync()) { - Application.instance - .build(BuildType.file, yamlContent: file.readAsStringSync()); + Application.instance.build(BuildType.file, + yamlContent: file.readAsStringSync( + encoding: Platform.isWindows ? eucKr : systemEncoding)); } else { CLI.print([ CLI.style('There are no files in path "$target"', color: Color.red)