@@ -13,12 +13,18 @@ public class CppHeaderReference
1313 public static async Task UpdateCppReference ( string outputPath )
1414 {
1515 outputPath = Path . GetFullPath ( outputPath ) ;
16- var cppHeaderUrl = "https://raw.githubusercontent.com/velopack/velopack/refs/heads/develop/src/lib-cpp/include/Velopack.h" ;
16+
17+ var cHeaderUrl = "https://raw.githubusercontent.com/velopack/velopack/refs/heads/develop/src/lib-cpp/include/Velopack.h" ;
18+ var cHeader = Util . DownloadString ( cHeaderUrl ) ;
19+ var cHeaderPath = Path . Combine ( outputPath , "Velopack.h" ) ;
20+
21+ var cppHeaderUrl = "https://raw.githubusercontent.com/velopack/velopack/refs/heads/develop/src/lib-cpp/include/Velopack.hpp" ;
1722 var cppHeader = Util . DownloadString ( cppHeaderUrl ) ;
23+ var cppHeaderPath = Path . Combine ( outputPath , "Velopack.hpp" ) ;
24+
25+ await File . WriteAllTextAsync ( cHeaderPath , cHeader ) ;
26+ await File . WriteAllTextAsync ( cppHeaderPath , cppHeader ) ;
1827
19- var headerPath = Path . Combine ( outputPath , "Velopack.h" ) ;
20- await File . WriteAllTextAsync ( headerPath , cppHeader ) ;
21-
2228 Console . WriteLine ( $ "Mounting { outputPath } ") ;
2329 await Util . StartShellProcess ( "docker" ,
2430 [
@@ -59,7 +65,8 @@ await Util.StartShellProcess("docker",
5965 Console . WriteLine ( f ) ;
6066 }
6167
62- File . Delete ( headerPath ) ;
68+ File . Delete ( cHeaderPath ) ;
69+ File . Delete ( cppHeaderPath ) ;
6370 File . Delete ( Path . Combine ( outputPath , "standardese_files.md" ) ) ;
6471 File . Delete ( Path . Combine ( outputPath , "standardese_modules.md" ) ) ;
6572
0 commit comments