Joplin 1.0.104
This commit is contained in:
parent
a44de74cca
commit
39c5b780f1
@ -2,7 +2,7 @@
|
|||||||
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
|
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
|
||||||
<metadata>
|
<metadata>
|
||||||
<id>joplin</id>
|
<id>joplin</id>
|
||||||
<version>1.0.96</version>
|
<version>1.0.104</version>
|
||||||
<title>Joplin</title>
|
<title>Joplin</title>
|
||||||
<authors>Laurent Cozic</authors>
|
<authors>Laurent Cozic</authors>
|
||||||
<owners>foo.li systeme + software</owners>
|
<owners>foo.li systeme + software</owners>
|
||||||
@ -12,8 +12,8 @@
|
|||||||
<requireLicenseAcceptance>true</requireLicenseAcceptance>
|
<requireLicenseAcceptance>true</requireLicenseAcceptance>
|
||||||
<description>a note taking and to-do application with synchronization capabilities for Windows, macOS, Linux, Android and iOS. </description>
|
<description>a note taking and to-do application with synchronization capabilities for Windows, macOS, Linux, Android and iOS. </description>
|
||||||
<summary>Joplin Notes and To-Do</summary>
|
<summary>Joplin Notes and To-Do</summary>
|
||||||
<releaseNotes>https://github.com/laurent22/joplin/releases/tag/v1.0.96</releaseNotes>
|
<releaseNotes>https://github.com/laurent22/joplin/releases/tag/v1.0.104</releaseNotes>
|
||||||
<copyright>http://joplin.cozic.net</copyright>
|
<copyright>https://github.com/laurent22/joplin/blob/master/LICENSE</copyright>
|
||||||
<language />
|
<language />
|
||||||
<tags>notes todo admin</tags>
|
<tags>notes todo admin</tags>
|
||||||
</metadata>
|
</metadata>
|
||||||
|
@ -5,29 +5,10 @@ $packageName = 'joplin'
|
|||||||
$packageSearch = 'Joplin*'
|
$packageSearch = 'Joplin*'
|
||||||
$installerType = 'exe'
|
$installerType = 'exe'
|
||||||
$silentArgs = '/ALLUSERS=1 /S'
|
$silentArgs = '/ALLUSERS=1 /S'
|
||||||
$version = '1.0.96'
|
$version = '1.0.104'
|
||||||
$url = 'https://github.com/laurent22/joplin/releases/download/v' + $version + '/Joplin-Setup-' + $version + '.exe'
|
$url = 'https://github.com/laurent22/joplin/releases/download/v' + $version + '/Joplin-Setup-' + $version + '.exe'
|
||||||
$url64 = $url
|
$checksum = '1D8C3F34734723A366C2A779B7722F4934E79373'
|
||||||
$checksum = '1376026633BCBA4D2B703DCCBCA071234B9EC6EB'
|
|
||||||
$checksumType = 'sha1'
|
$checksumType = 'sha1'
|
||||||
$checksum64 = $checksum
|
|
||||||
$checksumType64 = $checksumType
|
|
||||||
|
|
||||||
try {
|
Install-ChocolateyPackage $packageName $installerType $silentArgs $url `
|
||||||
$app = Get-ItemProperty -Path @('HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*',
|
-checksum $checksum -checksumType $checksumType
|
||||||
'HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*') `
|
|
||||||
-ErrorAction:SilentlyContinue | Where-Object { $_.DisplayName -like $packageSearch }
|
|
||||||
|
|
||||||
if ($app -and ([version]$app.DisplayVersion -ge [version]$version)) {
|
|
||||||
Write-Output $(
|
|
||||||
'Joplin ' + $version + ' or greater is already installed. ' +
|
|
||||||
'No need to download and install again. Otherwise uninstall first.'
|
|
||||||
)
|
|
||||||
} else {
|
|
||||||
Install-ChocolateyPackage $packageName $installerType $silentArgs $url $url64 `
|
|
||||||
-checksum $checksum -checksumType $checksumType `
|
|
||||||
-checksum64 $checksum64 -checksumType64 $checksumType64
|
|
||||||
}
|
|
||||||
} catch {
|
|
||||||
throw $_.Exception
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user