Skip to content

Commit

Permalink
(teeworlds) Added changelog for package
Browse files Browse the repository at this point in the history
ref #6
  • Loading branch information
AdmiringWorm committed Jan 7, 2018
1 parent c66ded9 commit 8c77a91
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 6 deletions.
16 changes: 16 additions & 0 deletions automatic/teeworlds/Changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# ![Teeworlds Changelog](https://img.shields.io/badge/Teeworlds-Package%20Changelog-blue.svg?style=for-the-badge)

## UPCOMING
- **ENHANCEMENT:** Added changelog for package

## Version (2017-11-03)
- Fixed wrong package in description [AU teeworlds]

## Version 0.6.4 (2017-11-03)
- Added missing example [AU teeworlds]

## Version 0.6.4.20171102 (2017-11-02)
- Initial implementation of the teeworlds chocolatey package

## Version 0.6.4 (2017-11-02)
- Initial implementation of the teeworlds chocolatey package
5 changes: 4 additions & 1 deletion automatic/teeworlds/teeworlds.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@
**Example:**
`choco install teeworlds --params '"/Desktop /NoStartMenu"'`
]]></description>
<releaseNotes>https://teeworlds.com/?page=downloads&amp;id=12085</releaseNotes>
<releaseNotes>
[Software Changelog](https://teeworlds.com/?page=downloads&amp;id=12085)
[Package Changelog](https://github.com/AdmiringWorm/chocolatey-packages/blob/master/automatic/teeworlds/Changelog.md)
</releaseNotes>
<dependencies>
<dependency id="chocolatey-core.extension" version="1.3.3" />
<dependency id="vcredist2010" version="10.0.40219.2" />
Expand Down
15 changes: 10 additions & 5 deletions automatic/teeworlds/update.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ function global:au_BeforeUpdate { Get-RemoteFiles -Purge -NoSuffix }

function global:au_SearchReplace {
@{
".\legal\VERIFICATION.txt" = @{
".\legal\VERIFICATION.txt" = @{
"(?i)(^\s*location on\:?\s*)\<.*\>" = "`${1}<$releases>"
"(?i)(\s*1\..+)\<.*\>" = "`${1}<$($Latest.URL32)>"
"(?i)(^\s*checksum\s*type\:).*" = "`${1} $($Latest.ChecksumType32)"
"(?i)(^\s*checksum(32)?\:).*" = "`${1} $($Latest.Checksum32)"
"(?i)(\s*1\..+)\<.*\>" = "`${1}<$($Latest.URL32)>"
"(?i)(^\s*checksum\s*type\:).*" = "`${1} $($Latest.ChecksumType32)"
"(?i)(^\s*checksum(32)?\:).*" = "`${1} $($Latest.Checksum32)"
}
".\tools\chocolateyInstall.ps1" = @{
"(?i)(^\s*file\s*=\s*`"[$]toolsPath\\).*" = "`${1}$($Latest.FileName32)`""
Expand All @@ -22,7 +22,12 @@ function global:au_SearchReplace {
}

function global:au_AfterUpdate {
Update-Metadata -key "releaseNotes" -value $Latest.ReleaseNotes
$releaseNotes = "
[Software Changelog]($($Latest.ReleaseNotes)
[Package Changelog](https://github.com/AdmiringWorm/chocolatey-packages/blob/master/teeworlds/Changelog.md)
"
Update-Metadata -key "releaseNotes" -value $releaseNotes
Update-Changelog -useIssueTitle
}

function global:au_GetLatest {
Expand Down

0 comments on commit 8c77a91

Please sign in to comment.