From a79364fc11b80eb7502ae27c8d670a3da24bd5a5 Mon Sep 17 00:00:00 2001 From: Tianhao Zhou Date: Sat, 11 Apr 2020 18:10:01 -0700 Subject: [PATCH 1/3] dev: add dart sdk to path Adding Flutter bin to the path doesn't expose the dart SDK which many people might be interested in using. For example, dartdoc for documentation generation. --- src/installer.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/installer.ts b/src/installer.ts index e71f2fe..21bf979 100644 --- a/src/installer.ts +++ b/src/installer.ts @@ -62,6 +62,7 @@ export async function getFlutter( core.exportVariable('FLUTTER_HOME', toolPath); core.addPath(path.join(toolPath, 'bin')); + core.addPath(path.join(toolPath, 'bin/cache/dart-sdk')); } function osName(): string { From 6ebddd1b83546f2e772a85b5820a3cbe3455e948 Mon Sep 17 00:00:00 2001 From: Tianhao Zhou Date: Sat, 11 Apr 2020 18:23:34 -0700 Subject: [PATCH 2/3] fix: add the missing bin directory in dart sdk --- src/installer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/installer.ts b/src/installer.ts index 21bf979..dea3e3c 100644 --- a/src/installer.ts +++ b/src/installer.ts @@ -62,7 +62,7 @@ export async function getFlutter( core.exportVariable('FLUTTER_HOME', toolPath); core.addPath(path.join(toolPath, 'bin')); - core.addPath(path.join(toolPath, 'bin/cache/dart-sdk')); + core.addPath(path.join(toolPath, 'bin/cache/dart-sdk/bin')); } function osName(): string { From 9d3762c82ed1b59b7c20c1bc8c9e77b41ceb6383 Mon Sep 17 00:00:00 2001 From: Tianhao Zhou Date: Mon, 13 Apr 2020 14:41:49 -0700 Subject: [PATCH 3/3] fix: use join to comply with other os --- src/installer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/installer.ts b/src/installer.ts index dea3e3c..4d6b1be 100644 --- a/src/installer.ts +++ b/src/installer.ts @@ -62,7 +62,7 @@ export async function getFlutter( core.exportVariable('FLUTTER_HOME', toolPath); core.addPath(path.join(toolPath, 'bin')); - core.addPath(path.join(toolPath, 'bin/cache/dart-sdk/bin')); + core.addPath(path.join(toolPath, 'bin', 'cache', 'dart-sdk', 'bin')); } function osName(): string {