@@ -63745,7 +63745,7 @@ var tool_cache = __toESM(require_tool_cache(), 1);
6374563745var cache = __toESM(require_cache2(), 1);
6374663746var import_semver = __toESM(require_semver3(), 1);
6374763747import {existsSync, readFileSync as readFileSync3, chmodSync} from "fs";
63748- import {join} from "path";
63748+ import {join, dirname } from "path";
6374963749async function run() {
6375063750  try {
6375163751    checkPlatformCompatibility();
@@ -63780,7 +63780,10 @@ async function run() {
6378063780    const installedPath = await installFlutterGen(version, cacheEnabled, cacheKey, cachePath);
6378163781    core2.info(`FlutterGen installed: ${installedPath}`);
6378263782    await makeExecutable(installedPath);
63783-     await execa("fluttergen", ["--version"], { stdio: "inherit" });
63783+     const { stdout } = await execa("fluttergen", ["--version"]);
63784+     if (stdout !== `FlutterGen v${version}`) {
63785+       throw new Error(`commnad doesn't work as expected: ${stdout}`);
63786+     }
6378463787    core2.setOutput("version", version);
6378563788  } catch (error2) {
6378663789    if (error2 instanceof Error) {
@@ -63835,9 +63838,9 @@ async function installFlutterGen(version, cacheEnabled, cacheKey, cachePath) {
6383563838}
6383663839async function makeExecutable(installedPath) {
6383763840  const fluttergenPath = join(installedPath, "fluttergen");
63838-   chmodSync(fluttergenPath, 755);
63839-   core2.addPath(installedPath );
63841+   chmodSync(fluttergenPath, " 755" );
63842+   core2.addPath(dirname(fluttergenPath) );
6384063843}
6384163844run();
6384263845
63843- //# debugId=2ECF789E3C76642064756E2164756E21 
63846+ //# debugId=882A08D3CC4BC75964756E2164756E21 
0 commit comments