code refactoring

This commit is contained in:
leedongmyung[desktop] 2023-11-25 14:06:53 +09:00
parent bd852414f4
commit 6b5ce8c34a
3 changed files with 4 additions and 8 deletions

View file

@ -11,10 +11,9 @@ class BuildDotNet extends Command {
var data = DataBuildDotNet.fromJson(command.param);
var workspace = getWorkspace(data.workspace);
var shell = StringBuffer();
shell.writeln('cd $workspace');
shell.writeln(
'MSBuild ${data.projectFile} /t:build /p:Configuration=Release;Platform=x86');
var shell = StringBuffer(getCDPath(workspace));
shell.write(
' && MSBuild ${data.projectFile} /t:build /p:Configuration=Release;Platform=x86');
var process = await ProcessExecutor.start(shell,
workspace: workspace, printStderr: false);

View file

@ -1,7 +1,6 @@
import 'dart:async';
import 'package:dart_framework/utils/path.dart';
import 'package:oto_cli/oto/application.dart';
import 'package:oto_cli/oto/commands/command.dart';
import 'package:oto_cli/oto/data/command_data.dart';

View file

@ -1,10 +1,8 @@
import 'dart:async';
import 'dart:io';
import 'package:oto_cli/oto/application.dart';
import 'package:oto_cli/oto/commands/command.dart';
import 'package:oto_cli/oto/data/command_data.dart';
import 'package:dart_framework/utils/path.dart';
// ignore: depend_on_referenced_packages
import 'package:path/path.dart' as path;
@ -14,7 +12,7 @@ class PublishiOS extends Command {
@override
Future execute(DataCommand command) async {
var data = DataPublishiOS.fromJson(command.param);
var workspace = Path.getNormal(Application.instance.jenkinsData!.workspace);
var workspace = getWorkspace(data.workspace);
var menifestURL = replaceTag(data.menifestURL);
var destinationPath = replaceTag(data.destinationPath);