Skip to content
This repository has been archived by the owner on Mar 18, 2024. It is now read-only.

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
~Removes "set-descriptionfromreadme" from all update scripts and deletes from scripts folder, as noted in majkinetor/au#91 it's been intergrated into the AU script so the .ps1 file is not needed anymore.
~Updated "update_all" to do 2 repeats with a 120 second sleep between
~Switched appveyor build shield from true to false in "test_all" to allow the shield to show.
  • Loading branch information
JourneyOver committed Oct 1, 2017
1 parent 2374620 commit 5075a13
Show file tree
Hide file tree
Showing 18 changed files with 5 additions and 116 deletions.
7 changes: 1 addition & 6 deletions automatic/_template/update.ps1
Original file line number Diff line number Diff line change
@@ -1,23 +1,18 @@
Import-Module au
Import-Module "$PSScriptRoot\..\..\scripts\au_extensions.psm1"

$releases = ''

function global:au_SearchReplace {
@{
".\tools\chocolateyInstall.ps1" = @{
"([$]url\s*=\s*)('.*')" = "`$1'$($Latest.URL32)'"
"([$]url64\s*=\s*)('.*')" = "`$1'$($Latest.URL64)'"
"([$]url64\s*=\s*)('.*')" = "`$1'$($Latest.URL64)'"
"([$]checksum\s*=\s*)('.*')" = "`$1'$($Latest.Checksum32)'"
"([$]checksum64\s*=\s*)('.*')" = "`$1'$($Latest.Checksum64)'"
}
}
}

function global:au_AfterUpdate {
Set-DescriptionFromReadme -SkipFirst 1
}

function global:au_GetLatest {
$download_page = Invoke-WebRequest -Uri $releases -UseBasicParsing

Expand Down
5 changes: 0 additions & 5 deletions automatic/any2ico.portable/update.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
Import-Module au
Import-Module "$PSScriptRoot\..\..\scripts\au_extensions.psm1"

$releases = 'http://www.carifred.com/quick_any2ico/'

Expand All @@ -12,10 +11,6 @@ function global:au_SearchReplace {
}
}

function global:au_AfterUpdate {
Set-DescriptionFromReadme -SkipFirst 1
}

function global:au_GetLatest {
$download_page = Invoke-WebRequest -Uri $releases -UseBasicParsing

Expand Down
5 changes: 0 additions & 5 deletions automatic/axcrypt/update.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
Import-Module au
Import-Module "$PSScriptRoot\..\..\scripts\au_extensions.psm1"

$releases = 'https://www.axcrypt.net/download/'
$downloadraw_url = 'https://account.axcrypt.net/download/'
Expand All @@ -15,10 +14,6 @@ function global:au_SearchReplace {
}
}

function global:au_AfterUpdate {
Set-DescriptionFromReadme -SkipFirst 1
}

function global:au_GetLatest {
$download_page = Invoke-WebRequest -Uri $releases -UseBasicParsing
$version_page = Invoke-WebRequest -Uri $versionnum -UseBasicParsing
Expand Down
5 changes: 0 additions & 5 deletions automatic/bsplayer/update.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
Import-Module au
Import-Module "$PSScriptRoot\..\..\scripts\au_extensions.psm1"

$releases = 'http://bsplayer.com/bsplayer-english/download-free.html'
$buildreal = 'http://www.softpedia.com/get/Multimedia/Video/Video-Players/BS-Player.shtml'
Expand All @@ -15,10 +14,6 @@ function global:au_SearchReplace {
}
}

function global:au_AfterUpdate {
Set-DescriptionFromReadme -SkipFirst 1
}

function global:au_GetLatest {
$download_page = Invoke-WebRequest -Uri $releases -UseBasicParsing
$build_page = Invoke-WebRequest -Uri $buildreal -UseBasicParsing
Expand Down
5 changes: 0 additions & 5 deletions automatic/centbrowser/update.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
Import-Module au
Import-Module "$PSScriptRoot\..\..\scripts\au_extensions.psm1"

$releases_32 = 'http://static.centbrowser.com/installer_32/'
$releases_64 = 'http://static.centbrowser.com/installer_64/'
Expand All @@ -16,10 +15,6 @@ function global:au_SearchReplace {
}
}

function global:au_AfterUpdate {
Set-DescriptionFromReadme -SkipFirst 1
}

function global:au_GetLatest {
$download_page_32 = Invoke-WebRequest -Uri $releases_32 -UseBasicParsing
$download_page_64 = Invoke-WebRequest -Uri $releases_64 -UseBasicParsing
Expand Down
5 changes: 0 additions & 5 deletions automatic/centbrowser_beta/update.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
Import-Module au
Import-Module "$PSScriptRoot\..\..\scripts\au_extensions.psm1"

$releases_32 = 'http://static.centbrowser.com/beta_32/'
$releases_64 = 'http://static.centbrowser.com/beta_64/'
Expand All @@ -16,10 +15,6 @@ function global:au_SearchReplace {
}
}

function global:au_AfterUpdate {
Set-DescriptionFromReadme -SkipFirst 1
}

function global:au_GetLatest {
$download_page_32 = Invoke-WebRequest -Uri $releases_32 -UseBasicParsing
$download_page_64 = Invoke-WebRequest -Uri $releases_64 -UseBasicParsing
Expand Down
5 changes: 0 additions & 5 deletions automatic/duckietv/update.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
Import-Module au
Import-Module "$PSScriptRoot\..\..\scripts\au_extensions.psm1"

$releases = 'https://github.com/SchizoDuckie/DuckieTV/releases'

Expand All @@ -14,10 +13,6 @@ function global:au_SearchReplace {
}
}

function global:au_AfterUpdate {
Set-DescriptionFromReadme -SkipFirst 1
}

function global:au_GetLatest {
$download_page = Invoke-WebRequest -Uri $releases -UseBasicParsing

Expand Down
5 changes: 0 additions & 5 deletions automatic/duckietv_pre/update.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
Import-Module au
Import-Module "$PSScriptRoot\..\..\scripts\au_extensions.psm1"

$releases = 'https://github.com/DuckieTV/Nightlies/releases'

Expand All @@ -14,10 +13,6 @@ function global:au_SearchReplace {
}
}

function global:au_AfterUpdate {
Set-DescriptionFromReadme -SkipFirst 1
}

function global:au_GetLatest {
$download_page = Invoke-WebRequest -Uri $releases -UseBasicParsing

Expand Down
5 changes: 0 additions & 5 deletions automatic/jackett/update.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
Import-Module au
Import-Module "$PSScriptRoot\..\..\scripts\au_extensions.psm1"

$releases = 'https://github.com/Jackett/Jackett/releases'

Expand All @@ -13,10 +12,6 @@ function global:au_SearchReplace {
}
}

function global:au_AfterUpdate {
Set-DescriptionFromReadme -SkipFirst 1
}

function global:au_GetLatest {
$download_page = Invoke-WebRequest -Uri $releases -UseBasicParsing

Expand Down
5 changes: 0 additions & 5 deletions automatic/plasso/update.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
Import-Module au
Import-Module "$PSScriptRoot\..\..\scripts\au_extensions.psm1"

$releases = 'https://bitsum.com/changes/processlasso/'
$vrelease = 'https://bitsum.com/userservices/versioninfo.php?ProductName=ProcessLasso'
Expand Down Expand Up @@ -27,10 +26,6 @@ function global:au_SearchReplace {
}
}

function global:au_AfterUpdate {
Set-DescriptionFromReadme -SkipFirst 1
}

function global:au_GetLatest {
$download_page = Invoke-WebRequest -Uri $releases -UseBasicParsing
$version_number = Invoke-WebRequest -Uri $vrelease -UseBasicParsing
Expand Down
5 changes: 0 additions & 5 deletions automatic/radarr/update.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
Import-Module au
Import-Module "$PSScriptRoot\..\..\scripts\au_extensions.psm1"

$releases = 'https://github.com/Radarr/Radarr/releases'

Expand All @@ -12,10 +11,6 @@ function global:au_SearchReplace {
}
}

function global:au_AfterUpdate {
Set-DescriptionFromReadme -SkipFirst 1
}

function global:au_GetLatest {
$download_page = Invoke-WebRequest -Uri $releases -UseBasicParsing

Expand Down
5 changes: 0 additions & 5 deletions automatic/swift-im/update.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
Import-Module au
Import-Module "$PSScriptRoot\..\..\scripts\au_extensions.psm1"

$releases = 'http://swift.im/downloads.html'
$fjoin = 'http://swift.im'
Expand All @@ -18,10 +17,6 @@ function global:au_SearchReplace {
}
}

function global:au_AfterUpdate {
Set-DescriptionFromReadme -SkipFirst 1
}

function global:au_GetLatest {
$download_page = Invoke-WebRequest -Uri $releases -UseBasicParsing

Expand Down
5 changes: 0 additions & 5 deletions automatic/tsedat/update.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
Import-Module au
Import-Module "$PSScriptRoot\..\..\scripts\au_extensions.psm1"

$releases = 'http://www2.fs.u-bunkyo.ac.jp/~gilner/_files'
$fakelink = 'http://www2.fs.u-bunkyo.ac.jp/~gilner/_files/TheSage_Setup_0-0-0000.exe'
Expand All @@ -14,10 +13,6 @@ function global:au_SearchReplace {
}
}

function global:au_AfterUpdate {
Set-DescriptionFromReadme -SkipFirst 1
}

function global:au_GetLatest {
$download_page = Invoke-WebRequest -Uri $releases -UseBasicParsing

Expand Down
5 changes: 0 additions & 5 deletions automatic/tvrenamer.portable/update.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
Import-Module au
Import-Module "$PSScriptRoot\..\..\scripts\au_extensions.psm1"

$releases = 'https://github.com/tvrenamer/tvrenamer/releases/latest'

Expand All @@ -14,10 +13,6 @@ function global:au_SearchReplace {
}
}

function global:au_AfterUpdate {
Set-DescriptionFromReadme -SkipFirst 1
}

function global:au_GetLatest {
$download_page = Invoke-WebRequest -Uri $releases -UseBasicParsing

Expand Down
5 changes: 0 additions & 5 deletions automatic/winpatrol/update.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
Import-Module au
Import-Module "$PSScriptRoot\..\..\scripts\au_extensions.psm1"

$releases = 'http://www.winpatrol.com/download.html'

Expand All @@ -13,10 +12,6 @@ function global:au_SearchReplace {
}
}

function global:au_AfterUpdate {
Set-DescriptionFromReadme -SkipFirst 1
}

function global:au_GetLatest {
$download_page = Invoke-WebRequest -Uri $releases -UseBasicParsing

Expand Down
36 changes: 0 additions & 36 deletions scripts/Set-DescriptionFromReadme.ps1

This file was deleted.

4 changes: 2 additions & 2 deletions test_all.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ $options = [ordered]@{
Path = "$PSScriptRoot\Update-Force-Test-${n}.md" #Path where to save the report
Params = @{ #Report parameters:
Github_UserRepo = $Env:github_user_repo # Markdown: shows user info in upper right corner
NoAppVeyor = $true # Markdown: do not show AppVeyor build shield
NoAppVeyor = $false # Markdown: do not show AppVeyor build shield
Title = "Update Force Test - Group ${n}"
UserMessage = "[Update report](https://gist.github.com/$Env:gist_id) | [Build](https://ci.appveyor.com/project/JourneyOver/chocolatey-packages-khbb9) | **USING AU NEXT VERSION**" # Markdown, Text: Custom user message to show
UserMessage = "[Update report](https://gist.github.com/$Env:gist_id) | **USING AU NEXT VERSION**" # Markdown, Text: Custom user message to show
}
}

Expand Down
4 changes: 2 additions & 2 deletions update_all.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ $Options = [ordered]@{
'Internal Server Error'
'An exception occurred during a WebClient request'
)
RepeatSleep = 0 #How much to sleep between repeats in seconds, by default 0
RepeatCount = 1 #How many times to repeat on errors, by default 1
RepeatSleep = 120 #How much to sleep between repeats in seconds, by default 0
RepeatCount = 2 #How many times to repeat on errors, by default 1

Report = @{
Type = 'markdown' #Report type: markdown or text
Expand Down

0 comments on commit 5075a13

Please sign in to comment.