Skip to content

Commit

Permalink
Merge pull request #2400 from TheCakeIsNaOH/scribus
Browse files Browse the repository at this point in the history
(scribus) Switch to half-embedded
  • Loading branch information
JPRuskin authored Jun 13, 2024
2 parents 8e38a3b + 068e9dd commit c1495fc
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 13 deletions.
8 changes: 4 additions & 4 deletions automatic/scribus/legal/VERIFICATION.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ location on <https://sourceforge.net/projects/scribus/files/scribus/>
and can be verified by doing the following:

1. Download the following:
32-Bit software: <https://sourceforge.net/projects/scribus/files/scribus/1.6.1/scribus-1.6.1-windows.exe/download>
64-Bit software: <https://sourceforge.net/projects/scribus/files/scribus/1.6.1/scribus-1.6.1-windows-x64.exe/download>
32-Bit software: NOT INCLUDED IN PACKAGE
64-Bit software: <https://sourceforge.net/projects/scribus/files/scribus/1.4.8/scribus-1.4.8-windows-x64.exe/download>
2. Get the checksum using one of the following methods:
- Using powershell function 'Get-FileHash'
- Use chocolatey utility 'checksum.exe'
3. The checksums should match the following:

checksum type: sha256
checksum32: 82E7BED899524F2084F698F90FBFC41269C1D3B7C9F22EE8434866F0A51F1CFA
checksum64: 7EAA92581A8262A2F339B7CC4CB8982FA52454D27E6738E23EC14A66DB2A8FED
checksum32: NOT INCLUDED IN PACKAGE
checksum64: 1197587EBAF4622F348DA594F3D96442847024476F078B1C1B515A736A507181

The file 'LICENSE.txt' has been obtained from <https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt>
15 changes: 11 additions & 4 deletions automatic/scribus/tools/chocolateyInstall.ps1
Original file line number Diff line number Diff line change
@@ -1,17 +1,24 @@
$ErrorActionPreference = 'Stop'
$ErrorActionPreference = 'Stop'

$toolsPath = Split-Path -parent $MyInvocation.MyCommand.Definition

$packageArgs = @{
packageName = $env:ChocolateyPackageName
fileType = 'exe'
file = "$toolsPath\scribus-1.6.1-windows.exe"
file64 = "$toolsPath\scribus-1.6.1-windows-x64.exe"
url = ''
checksum = ''
checksumType = 'sha256'
file64 = "$toolsPath\scribus-1.4.8-windows-x64.exe"
softwareName = 'Scribus*'
silentArgs = '/S'
validExitCodes = @(0)
}

Install-ChocolateyInstallPackage @packageArgs
if ((Get-OSArchitectureWidth -compare 32) -or ($env:chocolateyForceX86 -eq $true)) {
Install-ChocolateyPackage @packageArgs
}
else {
Install-ChocolateyInstallPackage @packageArgs
}

Get-ChildItem $toolsPath\*.exe | ForEach-Object { Remove-Item $_ -ea 0; if (Test-Path $_) { Set-Content "$_.ignore" } }
12 changes: 7 additions & 5 deletions automatic/scribus/update.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,23 @@

$releases = 'https://sourceforge.net/projects/scribus/files/scribus/'

function global:au_BeforeUpdate { Get-RemoteFiles -Purge -NoSuffix -FileNameSkip 1 }
function global:au_BeforeUpdate {
Get-RemoteFiles -Purge -NoSuffix -FileNameSkip 1
Remove-Item "$PSScriptRoot\tools\$($Latest.FileName32)"
}

function global:au_SearchReplace {
@{
".\legal\VERIFICATION.txt" = @{
"(?i)(^\s*location on\:?\s*)\<.*\>" = "`${1}<$releases>"
"(?i)(\s*32\-Bit Software.*)\<.*\>" = "`${1}<$($Latest.URL32)>"
"(?i)(\s*64\-Bit Software.*)\<.*\>" = "`${1}<$($Latest.URL64)>"
"(?i)(^\s*checksum\s*type\:).*" = "`${1} $($Latest.ChecksumType32)"
"(?i)(^\s*checksum(32)?\:).*" = "`${1} $($Latest.Checksum32)"
"(?i)(^\s*checksum\s*type\:).*" = "`${1} $($Latest.ChecksumType64)"
"(?i)(^\s*checksum64\:).*" = "`${1} $($Latest.Checksum64)"
}
".\tools\chocolateyInstall.ps1" = @{
"(?i)(^\s*file\s*=\s*`"[$]toolsPath\\).*" = "`${1}$($Latest.FileName32)`""
"(?i)(^\s*file64\s*=\s*`"[$]toolsPath\\).*" = "`${1}$($Latest.FileName64)`""
"(?i)(^\s*Url\s*=\s*)''" = "`${1}'$($Latest.URL32)'"
"(?i)(^\s*Checksum\s*=\s*)''" = "`${1}'$($Latest.Checksum32)'"
}
}
}
Expand Down

0 comments on commit c1495fc

Please sign in to comment.