Skip to content

Commit

Permalink
add pdbs and logs
Browse files Browse the repository at this point in the history
  • Loading branch information
lurume84 committed Apr 24, 2020
1 parent 34dc7c7 commit 72ffddc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion appveyor.yml
Expand Up @@ -26,7 +26,7 @@ build_script:
- cmd: ./build.bat
- cmd: cd ..
- cmd: makensis.exe src\DesktopInstaller\Installer.nsi
- cmd: 7z a bin\Release\DesktopApp\PDBs.7z bin\Release\DesktopApp\*.pdb
- cmd: 7z a bin\Release\DesktopApp\PDBs.7z -r bin\Release\DesktopApp\*.pdb

artifacts:
- path: bin\Release\DesktopInstaller\BlingSetup.exe
Expand Down
12 changes: 10 additions & 2 deletions src/DesktopCore/System/Services/CrashReportService.cpp
Expand Up @@ -37,7 +37,7 @@ namespace desktop { namespace core { namespace service {
info.pszErrorReportSaveDir = folder.c_str();

info.nRestartTimeout = 50;

m_helper = std::make_unique<CrAutoInstallHelper>(&info);
if (m_helper->m_nInstallStatus != 0)
{
Expand All @@ -47,7 +47,15 @@ namespace desktop { namespace core { namespace service {
return false;
}

bool result = crAddProperty("ReportService", "CrashReportServicev1.0");
auto logFile = m_appService->getMyDocuments() + "Logs\\Bling.log";

bool result = crAddFile2(
logFile.c_str(),
"Bling.log",
"Log file",
CR_AF_MAKE_FILE_COPY | CR_AF_ALLOW_DELETE);

result = crAddProperty("ReportService", "CrashReportServicev1.0");

return result;
}
Expand Down

0 comments on commit 72ffddc

Please sign in to comment.