Skip to content

Commit

Permalink
OpenZFS: Add version 2.2.0rc5
Browse files Browse the repository at this point in the history
  • Loading branch information
brian6932 committed Nov 5, 2023
1 parent c26d456 commit eb1df11
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions bucket/openzfs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"version": "2.2.0rc5",
"description": "ZFS filesystem driver for Windows",
"homepage": "https://github.com/openzfsonwindows/openzfs",
"license": "CDDL",
"url": "https://github.com/openzfsonwindows/openzfs/releases/download/zfswin-2.2.0rc5/OpenZFSOnWindows-debug-2.2.0rc5.exe",
"hash": "8b70f59c4d9890510c08aa234d7f04d6dc069dd91fdc54773927851beedda907",
"innosetup": true,
"pre_install": [
"if (!$global) { Write-Host -Foreground Red \"$app should be installed globally.\"; break }",
"'symbols', 'CODE_OF_CONDUCT.md', 'HowToDebug.txt', 'README,*.md' | ForEach-Object { Remove-Item -Recurse \"$dir\\$_\" }"
],
"installer": {
"script": [
"# Add cert first before installing driver",
"$cert = (Get-AuthenticodeSignature \"$dir\\OpenZFS.cat\").SignerCertificate",
"if (!(Get-ChildItem Cert:/CurrentUser/TrustedPublisher -Recurse | Where-Object { $_.Thumbprint -eq $cert.Thumbprint })) {",
" Write-Host 'Cert not found, adding to trusted store...'",
" $store = [System.Security.Cryptography.X509Certificates.X509Store]::new([Security.Cryptography.X509Certificates.StoreName]::TrustedPublisher, [Security.Cryptography.X509Certificates.StoreLocation]::LocalMachine)",
" $store.Open([System.Security.Cryptography.X509Certificates.OpenFlags]::ReadWrite)",
" $store.Add($cert.Export([System.Security.Cryptography.X509Certificates.X509ContentType]::Cert))",
" $store.Close()",
"}",
"",
"Write-Host 'Installing driver...'",
"Invoke-ExternalCommand pnputil -ArgumentList @('/add-driver', \"$dir\\OpenZFS.inf\", '/install') -RunAs -ContinueExitCodes @{ 3010 = 'A system reboot is required to finalize the installation.' } | Out-Null"
]
},
"uninstaller": {
"script": [
"if ($cmd -ne 'uninstall') { return }",
"Invoke-ExternalCommand pnputil -ArgumentList @('/remove-device', 'ROOT\\OpenZFS\\0000') -RunAs -ContinueExitCodes @{ 3010 = 'A system reboot is required to finalize the uninstallation.' } | Out-Null",
"pnputil /delete-driver \"$dir\\OpenZFS.inf\" /uninstall | Out-Null"
]
},
"bin": [
"kstat.exe",
"raidz_test.exe",
"zdb.exe",
"zfs.exe",
"zfsinstaller.exe",
"zpool.exe",
"zstreamdump.exe"
],
"checkver": {
"url": "https://api.github.com/repositories/283909729/releases/latest",
"jsonpath": "$.tag_name",
"regex": "\\Azfswin-([\\w.]+)\\Z"
},
"autoupdate": {
"url": "https://github.com/openzfsonwindows/openzfs/releases/download/zfswin-$version/OpenZFSOnWindows-debug-$version.exe"
}
}

0 comments on commit eb1df11

Please sign in to comment.