From 7134184c5efd2562159457575f11b48d6ac1f415 Mon Sep 17 00:00:00 2001 From: leedongmyung Date: Fri, 10 Nov 2023 07:02:47 +0900 Subject: [PATCH] =?UTF-8?q?=EB=A7=A5=20=ED=85=8C=EC=8A=A4=ED=8A=B8=20?= =?UTF-8?q?=ED=99=98=EA=B2=BD=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/launch.json | 9 ++++++++- assets/data/app_data.json | 2 +- build_osx.yaml | 31 +++++++++++++++++++++++++++++++ lib/oto/defined_data.dart | 3 +++ pubspec.yaml | 8 ++++---- 5 files changed, 47 insertions(+), 6 deletions(-) create mode 100644 build_osx.yaml diff --git a/.vscode/launch.json b/.vscode/launch.json index 3308c3b..0cbb5b6 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -19,12 +19,19 @@ "args": ["install", "-h"] }, { - "name": "exe", + "name": "exe win", "request": "launch", "type": "dart", "program": "./bin/main.dart", "args": ["exe", "-f ./build_win.yaml"] }, + { + "name": "exe osx", + "request": "launch", + "type": "dart", + "program": "./bin/main.dart", + "args": ["exe", "-f ./build_osx.yaml"] + }, { "name": "test", "request": "launch", diff --git a/assets/data/app_data.json b/assets/data/app_data.json index 5261894..b4c69a7 100644 --- a/assets/data/app_data.json +++ b/assets/data/app_data.json @@ -1 +1 @@ -{"name":"Build Manager","version":"0.0.16","gitHash":"3e51c48f756f5b5d0ef9643309ebe0f3df2ce025","buildDate":"2023-11-04 18:48:24"} \ No newline at end of file +{"name":"OTO","version":"0.0.48","gitHash":"1d23272ea3c5ec1c18013a35b0e0fe90e6079bfa","buildDate":"2023-11-06 17:46:00"} \ No newline at end of file diff --git a/build_osx.yaml b/build_osx.yaml new file mode 100644 index 0000000..58bd221 --- /dev/null +++ b/build_osx.yaml @@ -0,0 +1,31 @@ +--- +common: + workspace: "." + +commands: +### Version 쓰기 +- command: CreateAppData + param: + scm: Git + name: OTO + relativeAssetPath: assets/data + returnVersion: "" + returnHash: "" + +### 프로젝트 패키지 업데이트 +- command: BuildDart + param: {} + +### 실행가능한 파일로 빌드 +- command: BuildDartCompile + param: + targetDartFile: "./bin/main.dart" + buildFileName: oto_cli + + +### 최종 zip 파일 형태로 저장 +- command: Zip + param: + zipFile: "/release/oto_osx_v.zip" + zipList: + - "/release/oto_service_cli" diff --git a/lib/oto/defined_data.dart b/lib/oto/defined_data.dart index fb44efd..fadeab7 100644 --- a/lib/oto/defined_data.dart +++ b/lib/oto/defined_data.dart @@ -55,6 +55,8 @@ class TestData { { "command": "BuildDartCompile", "param": { + "scm": "Git", + "name": "OTO", "targetPath": "/Users/toki/works/dart/desktop_service_cli", "targetDartFile": "./bin/desktop_service_cli.dart", "buildFileName": "desktop_service_cli" @@ -122,6 +124,7 @@ commands: - command: CreateAppData param: scm: Git + name: OTO relativeAssetPath: assets/data returnVersion: "" returnHash: "" diff --git a/pubspec.yaml b/pubspec.yaml index d695128..130bf74 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -13,10 +13,10 @@ dependencies: json_annotation: ^4.8.0 resource_importer: ^0.2.0 dart_framework: - # path: '../dart_framework' - git: - url: toki@toki-labs.com:/Volumes/Data2/git/dart_framework.git - ref: master + path: '../dart_framework' + # git: + # url: toki@toki-labs.com:/Volumes/Data2/git/dart_framework.git + # ref: master dev_dependencies: lints: ^3.0.0