mirror of
https://github.com/PhoenixPE/PhoenixPE.git
synced 2025-09-16 18:18:04 +02:00
Support log enhancements
This commit is contained in:
@@ -190,7 +190,7 @@ Else,If,%OnBuildExitReason%,EQUAL,COMMAND,Begin
|
|||||||
Message,%BuildExitMsg%,ERROR
|
Message,%BuildExitMsg%,ERROR
|
||||||
End
|
End
|
||||||
|
|
||||||
[GenerateSupportLog]
|
[#GenerateSupportLog#]
|
||||||
// ===============================================================================================================================
|
// ===============================================================================================================================
|
||||||
// Name...........: GenerateSupportLog
|
// Name...........: GenerateSupportLog
|
||||||
// Description....: Export the build log and 7z it and any .log files found in %ProjectTemp%
|
// Description....: Export the build log and 7z it and any .log files found in %ProjectTemp%
|
||||||
@@ -215,15 +215,14 @@ Set,%LogFile%,"%Timestamp%-%ProjectTitle%-Logs.7z"
|
|||||||
|
|
||||||
// Collect various information useful for troubleshooting
|
// Collect various information useful for troubleshooting
|
||||||
If,ExistFile,"%TargetWindows%\Logs\DISM\dism.log",Filecopy,"%TargetWindows%\Logs\DISM\dism.log","%ProjectTemp%"
|
If,ExistFile,"%TargetWindows%\Logs\DISM\dism.log",Filecopy,"%TargetWindows%\Logs\DISM\dism.log","%ProjectTemp%"
|
||||||
System,ErrorOff,1
|
|
||||||
Filecopy,"%TargetSystem32%\pecmd*.ini","%ProjectTemp%"
|
|
||||||
|
|
||||||
// Compress our build log and our other logs into a zip archive
|
// Compress our build log and our other logs into a zip archive
|
||||||
Echo,"Archiving Support Log...."
|
Echo,"Archiving Support Log...."
|
||||||
// Disable fail on error in case there are no .log or .ini files
|
// Disable fail on error in case there are no .au3, .log or .ini files
|
||||||
System,ErrorOff,2
|
System,ErrorOff,3
|
||||||
Compress,7z,%ProjectTemp%\*.log,%BaseDir%\Logs\%LogFile%
|
Compress,7z,%ProjectTemp%\*.log,%BaseDir%\Logs\%LogFile%
|
||||||
Compress,7z,%ProjectTemp%\*.ini,%BaseDir%\Logs\%LogFile%
|
Compress,7z,%ProjectTemp%\*.ini,%BaseDir%\Logs\%LogFile%
|
||||||
|
Compress,7z,%TargetSystem32%\PhoenixPE*.au3,%BaseDir%\Logs\%LogFile%
|
||||||
Compress,7z,%ProjectTemp%\BuildLog.html,%BaseDir%\Logs\%LogFile%
|
Compress,7z,%ProjectTemp%\BuildLog.html,%BaseDir%\Logs\%LogFile%
|
||||||
|
|
||||||
// Cleanup old logs (%num_LogsToKeep% var is read by PostBuildCleanup section)
|
// Cleanup old logs (%num_LogsToKeep% var is read by PostBuildCleanup section)
|
||||||
|
Reference in New Issue
Block a user