mirror of
https://github.com/greenshot/greenshot
synced 2025-08-21 14:03:23 -07:00
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:
parent
b59d09ffc4
commit
be515aeac6
1 changed files with 15 additions and 5 deletions
14
build.ps1
14
build.ps1
|
@ -73,9 +73,13 @@ Function ReleaseNotes {
|
||||||
$jiras | foreach {
|
$jiras | foreach {
|
||||||
$jira = $_
|
$jira = $_
|
||||||
#echo "https://greenshot.atlassian.net/browse/$_"
|
#echo "https://greenshot.atlassian.net/browse/$_"
|
||||||
|
try {
|
||||||
$jiraJson = $wc.DownloadString("https://greenshot.atlassian.net/rest/api/2/issue/$jira")
|
$jiraJson = $wc.DownloadString("https://greenshot.atlassian.net/rest/api/2/issue/$jira")
|
||||||
$xml = Convert-JsonToXml $jiraJson
|
$xml = Convert-JsonToXml $jiraJson
|
||||||
$summary = $xml.root.fields.summary."#text"
|
$summary = $xml.root.fields.summary."#text"
|
||||||
|
} catch {
|
||||||
|
$summary = "no connection to JIRA available"
|
||||||
|
}
|
||||||
echo "$jira : $summary"
|
echo "$jira : $summary"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -132,7 +136,7 @@ Function PackagePortable {
|
||||||
}
|
}
|
||||||
Copy-Item -Path "$destbase\portable" -Destination "$destbase\portabletmp" -Recurse
|
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 {
|
Get-ChildItem -Path "$sourcebase\Plugins\" -Recurse -Include $INCLUDE | foreach {
|
||||||
$path = $_.fullname -replace ".*\\Plugins\\", "$destbase\portabletmp\App\Greenshot\Plugins\"
|
$path = $_.fullname -replace ".*\\Plugins\\", "$destbase\portabletmp\App\Greenshot\Plugins\"
|
||||||
New-Item -ItemType File -Path "$path" -Force | Out-Null
|
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 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
|
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 {
|
Get-ChildItem -Path "$sourcebase\Plugins\" -Recurse -Include $INCLUDE | foreach {
|
||||||
$path = $_.fullname -replace ".*\\Plugins\\", "$destinstaller\Plugins\"
|
$path = $_.fullname -replace ".*\\Plugins\\", "$destinstaller\Plugins\"
|
||||||
New-Item -ItemType File -Path "$path" -Force | Out-Null
|
New-Item -ItemType File -Path "$path" -Force | Out-Null
|
||||||
|
@ -245,6 +249,12 @@ Function PackageInstaller {
|
||||||
|
|
||||||
FillTemplates
|
FillTemplates
|
||||||
|
|
||||||
|
$continue = Read-Host 'Preperations are ready, continue with the build? (y/n)'
|
||||||
|
|
||||||
|
if ($continue -ne "y") {
|
||||||
|
echo "skipped build."
|
||||||
|
exit 0
|
||||||
|
}
|
||||||
Build
|
Build
|
||||||
|
|
||||||
echo "Generating MD5"
|
echo "Generating MD5"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue