Skip to content

Commit

Permalink
Set Puro env
Browse files Browse the repository at this point in the history
  • Loading branch information
rehlma committed Jun 10, 2024
1 parent f2f9dab commit 9fd36fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 4 additions & 0 deletions puro_sidekick_plugin/lib/src/install_puro.dart
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ int installPuroMacOs(String downloadUrl, String downloadPath, dcli.Progress? pro
terminal: progress == null,
);

dcli.env['PURO_ROOT'] = "$downloadPath";

return chmodProcess.exitCode ?? -1;
}

Expand Down Expand Up @@ -121,6 +123,8 @@ int installPuroLinux(String downloadUrl, String downloadPath, dcli.Progress? pro
terminal: progress == null,
);

dcli.env['PURO_ROOT'] = "$downloadPath";

return chmodProcess.exitCode ?? -1;
}

Expand Down
5 changes: 0 additions & 5 deletions puro_sidekick_plugin/lib/src/puro.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@ int puro(
throw PuroNotFoundException();
}

print('Running puro from $puroPath');
print('Working directory: ${workingDir.path}');
print('Install directory: ${installDir.path}');
print('Args: $args');

final process = dcli.startFromArgs(
puroPath,
['--no-update-check', '--no-install', ...args],
Expand Down

0 comments on commit 9fd36fb

Please sign in to comment.