Added missing .config for the OCR command and added a question to the build script so it can be used to prepare files and stop.

This commit is contained in:
RKrom 2013-12-17 16:08:09 +01:00
commit be515aeac6

View file

@ -73,9 +73,13 @@ Function ReleaseNotes {
$jiras | foreach {
$jira = $_
#echo "https://greenshot.atlassian.net/browse/$_"
$jiraJson = $wc.DownloadString("https://greenshot.atlassian.net/rest/api/2/issue/$jira")
$xml = Convert-JsonToXml $jiraJson
$summary = $xml.root.fields.summary."#text"
try {
$jiraJson = $wc.DownloadString("https://greenshot.atlassian.net/rest/api/2/issue/$jira")
$xml = Convert-JsonToXml $jiraJson
$summary = $xml.root.fields.summary."#text"
} catch {
$summary = "no connection to JIRA available"
}
echo "$jira : $summary"
}
}
@ -132,7 +136,7 @@ Function PackagePortable {
}
Copy-Item -Path "$destbase\portable" -Destination "$destbase\portabletmp" -Recurse
$INCLUDE=@("*.gsp", "*.dll", "*.exe")
$INCLUDE=@("*.gsp", "*.dll", "*.exe", "*.config")
Get-ChildItem -Path "$sourcebase\Plugins\" -Recurse -Include $INCLUDE | foreach {
$path = $_.fullname -replace ".*\\Plugins\\", "$destbase\portabletmp\App\Greenshot\Plugins\"
New-Item -ItemType File -Path "$path" -Force | Out-Null
@ -193,7 +197,7 @@ Function PackageZip {
echo ";In this file you should add your default settings" | Set-Content "$destinstaller\greenshot-defaults.ini" -encoding UTF8
echo ";In this file you should add your fixed settings" | Set-Content "$destinstaller\greenshot-fixed.ini" -encoding UTF8
$INCLUDE=@("*.gsp", "*.dll", "*.exe")
$INCLUDE=@("*.gsp", "*.dll", "*.exe", "*.config")
Get-ChildItem -Path "$sourcebase\Plugins\" -Recurse -Include $INCLUDE | foreach {
$path = $_.fullname -replace ".*\\Plugins\\", "$destinstaller\Plugins\"
New-Item -ItemType File -Path "$path" -Force | Out-Null
@ -245,6 +249,12 @@ Function PackageInstaller {
FillTemplates
$continue = Read-Host 'Preperations are ready, continue with the build? (y/n)'
if ($continue -ne "y") {
echo "skipped build."
exit 0
}
Build
echo "Generating MD5"