1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- # AU template: https://raw.githubusercontent.com/majkinetor/au/master/update_all_default.ps1
- # env vars: https://raw.githubusercontent.com/majkinetor/au/master/update_vars_default.ps1
- param($Name = $null)
- if (Test-Path $PSScriptRoot/update_vars.ps1) { . $PSScriptRoot/update_vars.ps1 }
- $Options = [ordered]@{
- Timeout = 100 #Connection timeout in seconds
- Threads = 10 #Number of background jobs to use
- Push = $Env:au_Push -eq 'true' #Push to chocolatey
- PluginPath = '' #Path to user plugins
- Report = @{
- Type = 'markdown' #Report type: markdown or text
- Path = "$PSScriptRoot\Update-AUPacakges.md" #Path where to save the report
- Params= @{ #Report parameters:
- Github_UserRepo = $Env:github_UserRepo # Markdown: shows user info in upper right corner
- UserMessage = '' # Markdown, Text: Custom user message to show
- }
- }
- Gist = @{
- Id = '' #Your gist id or leave empty for anonymous
- ApiKey = '' #Your github api key
- Path = "$PSScriptRoot\Update-AUPacakges.md" #List of files to add to gist
- }
- #Git = @{
- #User = '' #Git username, leave empty if github api key is used
- #Password = $Env:github_api_key #Password if username is not empty, otherwise api key
- #}
- RunInfo = @{
- Exclude = 'password', 'apikey' #Option keys which contain those words will be removed
- Path = "$PSScriptRoot\update_info.xml" #Path where to save run info
- }
- Mail = if ($Env:mail_user) {
- @{
- To = $Env:mail_user
- Server = 'smtp.gmail.com'
- UserName = $Env:mail_user
- Password = $Env:mail_pass
- Port = 587
- EnableSsl = $true
- Attachments = "$PSScriptRoot\update_info.xml"
- UserMessage = ''
- SendAlways = $false #Send notifications every time
- }
- } else {}
- }
- $global:au_NoPlugins = $false #Quickly enable or disable plugins here
- $global:au_Root = "$PSScriptRoot\..\automatic" #Path to the AU packages
- $info = updateall -Name $Name -Options $Options
- #Uncomment to fail the build on AppVeyor on any package error
- #if ($info.error_count.total) { throw 'Errors during update' }
|