cd: windows choco copy failed

This commit is contained in:
Kingkor Roy Tirtho 2024-05-07 21:31:41 +06:00
parent ec62cff812
commit bb3f83d46b

View File

@ -63,7 +63,7 @@ class WindowsBuildCommand extends Command with BuildCommandCommonSteps {
final exeFile = File(exePath); final exeFile = File(exePath);
final hash = sha256.convert(exeFile.readAsBytesSync()).toString(); final hash = sha256.convert(await exeFile.readAsBytes()).toString();
final chocoVerificationFile = File(chocoFiles.first); final chocoVerificationFile = File(chocoFiles.first);
@ -74,8 +74,9 @@ class WindowsBuildCommand extends Command with BuildCommandCommonSteps {
), ),
); );
final chocoToolsPath = join(cwd.path, "choco-struct", "tools"); await exeFile.copy(
exeFile.copySync(chocoToolsPath); join(cwd.path, "choco-struct", "tools", basename(exeFile.path)),
);
await shell.run( await shell.run(
"choco pack ${chocoFiles[1]} --outputdirectory ${join(cwd.path, "dist")}", "choco pack ${chocoFiles[1]} --outputdirectory ${join(cwd.path, "dist")}",