인코딩 변경
This commit is contained in:
parent
d3b458b736
commit
d5a525b438
3 changed files with 9 additions and 6 deletions
|
|
@ -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
|
||||
|
|
@ -3,7 +3,7 @@ common:
|
|||
workspace: "."
|
||||
|
||||
commands:
|
||||
### Version 쓰기
|
||||
### Version 쓰기
|
||||
- command: CreateAppData
|
||||
param:
|
||||
scm: Git
|
||||
|
|
@ -12,17 +12,17 @@ commands:
|
|||
returnVersion: "<!common.version>"
|
||||
returnHash: "<!common.hash>"
|
||||
|
||||
### 프로젝트 패키지 업데이트
|
||||
### 프로젝트 패키지 업데이트
|
||||
- command: BuildDart
|
||||
param: {}
|
||||
|
||||
### 실행가능한 파일로 빌드
|
||||
### 실행가능한 파일로 빌드
|
||||
- command: BuildDartCompile
|
||||
param:
|
||||
targetDartFile: "./bin/main.dart"
|
||||
buildFileName: oto_cli
|
||||
|
||||
### 최종 zip 파일 형태로 저장
|
||||
### 최종 zip 파일 형태로 저장
|
||||
- command: Zip
|
||||
param:
|
||||
zipFile: "<!common.workspace>/release/oto_win_v<!common.version>.zip"
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue