From 6c0847a2a8bd7e55935264ba3495758b344dc137 Mon Sep 17 00:00:00 2001 From: leedongmyung Date: Sun, 12 Nov 2023 15:55:02 +0900 Subject: [PATCH] test --- lib/oto/application.dart | 3 ++- lib/oto/defined_data.dart | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/oto/application.dart b/lib/oto/application.dart index 6cb1a68..9cbc424 100644 --- a/lib/oto/application.dart +++ b/lib/oto/application.dart @@ -114,7 +114,8 @@ class Application { if (Platform.isWindows) { content = file .readAsStringSync(encoding: SystemEncoding()) - .replaceAll('BuildData=', ''); + .replaceAll('BuildData=', '') + .replaceAll('\\', '/'); var regEx = RegExp(r'(%)([a-zA-Z0-9]+)(%)'); var list = regEx.allMatches(content); var params = []; diff --git a/lib/oto/defined_data.dart b/lib/oto/defined_data.dart index fadeab7..94d387e 100644 --- a/lib/oto/defined_data.dart +++ b/lib/oto/defined_data.dart @@ -8,7 +8,7 @@ import 'package:oto_cli/oto/build/build_flutter.dart'; class FileData { static Map? get jenkinsMap { return { - "workspace": Directory.current.path, + "workspace": Directory.current.path.replaceAll('\\', '/'), "jenkinsHome": "", "jenkinsUrl": "", "buildUrl": "", @@ -32,7 +32,9 @@ class TestData { }; if (Platform.isMacOS) { map = { - "common": {"workspace": Directory.current.path}, + "common": { + "workspace": Directory.current.path.replaceAll('\\', '/'), + }, "commands": [ // { // "command": "BuildDart",