Skip to content

Commit

Permalink
Merge pull request #1974 from brogers5/codelite-remove-32-bit-support
Browse files Browse the repository at this point in the history
  • Loading branch information
AdmiringWorm committed Sep 13, 2022
2 parents fd269c5 + e10de20 commit b51cf2c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
6 changes: 2 additions & 4 deletions automatic/codelite/legal/VERIFICATION.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,13 @@ Verification is intended to assist the Chocolatey moderators and community
in verifying that this package's contents are trustworthy.

1. Download the following:
32-Bit software <https://downloads.codelite.org/downloads.php?windows>
64-Bit software <https://downloads.codelite.org/downloads.php?windows_64>
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:
3. The checksum should match the following:

checksum type: sha256
checksum32: 475BCFDBDE9E37594A3D18DC3B7E5DA03CB26183D3C8FC94327DCC1317D276EC
checksum64: FA7D6E6FB62F595DF35697931937D7451E7B32F540707A5B245B140BFC2FF550
checksum64: FD8CA4E996998BFDDABE5B16445A783B675FE94198867780D15F0ACCEA8CE348

The file 'LICENSE.txt' has been obtained from <https://github.com/eranif/codelite/blob/5c29b6cb2a48dbf2d9b243a173c540cf85d70f4f/LICENSE>
2 changes: 1 addition & 1 deletion automatic/codelite/tools/chocolateyInstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ $toolsPath = Split-Path $MyInvocation.MyCommand.Definition
$packageArgs = @{
packageName = 'codelite'
fileType = 'exe'
file = "$toolsPath\codelite_x32.exe"
file = ''
file64 = "$toolsPath\codelite_x64.exe"
silentArgs = '/VERYSILENT /SP- /SUPPRESSMSGBOXES'
validExitCodes = @(0)
Expand Down
6 changes: 0 additions & 6 deletions automatic/codelite/update.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,11 @@ $releases = "https://downloads.codelite.org/"
function global:au_SearchReplace {
@{
".\tools\chocolateyInstall.ps1" = @{
"(?i)(^\s*file\s*=\s*`"[$]toolsPath\\).*" = "`${1}$($Latest.FileName32)`""
"(?i)(^\s*file64\s*=\s*`"[$]toolsPath\\).*" = "`${1}$($Latest.FileName64)`""
}
".\legal\VERIFICATION.txt" = @{
"(?i)(\s*32\-Bit Software.*)\<.*\>" = "`${1}<$($Latest.URL32)>"
"(?i)(\s*64\-Bit Software.*)\<.*\>" = "`${1}<$($Latest.URL64)>"
"(?i)(^\s*checksum\s*type\:).*" = "`${1} $($Latest.ChecksumType64)"
"(?i)(^\s*checksum32\:).*" = "`${1} $($Latest.Checksum32)"
"(?i)(^\s*checksum64\:).*" = "`${1} $($Latest.Checksum64)"
}

Expand All @@ -29,15 +26,12 @@ function global:au_BeforeUpdate {
function global:au_GetLatest {
$download_page = Invoke-WebRequest -Uri $releases -UseBasicParsing

$re = 'windows$'
$re64 = 'windows_64$'
$url = $download_page.links | ? href -match $re | select -First 1 -Expand href | % { Get-RedirectedUrl $_ 3>$null }
$url64 = $download_page.links | ? href -match $re64 | select -First 1 -Expand href { % Get-RedirectedUrl $_ 3>$null }
$version = $download_page.content -match "CodeLite ([\d\.]+) - Stable Release" | select -first 1 | % { $Matches[1] }

@{
URL64 = $url64
URL32 = $url
Version = $version
ReleaseNotes = "https://github.com/eranif/codelite/releases/tag/$version"
FileType = "exe"
Expand Down

0 comments on commit b51cf2c

Please sign in to comment.