Skip to content

Commit

Permalink
fix(xpcf_grpc_gen): remove xpcf_grpc_gen_bin.zip before download
Browse files Browse the repository at this point in the history
  • Loading branch information
Stéphane Leduc committed Jul 31, 2024
1 parent de9282b commit 203508b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tools/generators/grpc/GRPCProtoGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,12 @@ void GRPCProtoGenerator::finalizeImpl(std::map<MetadataType,std::string> metadat
fs::path remakenGrpcRoot = RemakenPathHelper::computeRemakenRootPackageDir();

bp::ipstream out;

fs::path zipFilePath = "./xpcf_grpc_gen_bin.zip";
if (fs::exists(zipFilePath) ) {
fs::remove(zipFilePath);
}

bp::system("wget https://github.com/b-com-software-basis/thirdparties-binaries/releases/download/xpcf_grpc_gen_bin/xpcf_grpc_gen_bin.zip", bp::std_out > out);
try {
bp::system("unzip -o ./xpcf_grpc_gen_bin.zip", bp::std_out > out);
Expand All @@ -358,6 +364,8 @@ void GRPCProtoGenerator::finalizeImpl(std::map<MetadataType,std::string> metadat
throw(e);
}
}


fs::path grpcLibs = "./xpcf_grpc_gen_bin/lib/";
fs::path grpcBin = "./xpcf_grpc_gen_bin/bin/";
fs::path protocBin = grpcBin;
Expand Down

0 comments on commit 203508b

Please sign in to comment.