Skip to content

Commit

Permalink
[email protected]: Add required registry keys
Browse files Browse the repository at this point in the history
  • Loading branch information
filips123 committed Jul 2, 2023
1 parent 57a525d commit 7a87e84
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions bucket/firefoxpwa.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
{
"version": "2.6.2",
"description": "A tool to install, manage and use Progressive Web Apps (PWAs) in Mozilla Firefox.",
"description": "A tool to install, manage and use Progressive Web Apps (PWAs) in Mozilla Firefox (native component)",
"homepage": "https://github.com/filips123/PWAsForFirefox",
"license": "MPL-2.0 license",
"license": "MPL-2.0",
"notes": [
"You have successfully installed the native part of the PWAsForFirefox project",
"You should also install the Firefox extension if you haven't already",
"Download: https://addons.mozilla.org/firefox/addon/pwas-for-firefox/"
],
"suggest": {
"vcredist": "extras/vcredist2022",
"firefox": "extras/firefox"
},
"architecture": {
"64bit": {
"url": "https://github.com/filips123/PWAsForFirefox/releases/download/v2.6.2/firefoxpwa-2.6.2-x86_64.msi",
Expand All @@ -13,6 +22,19 @@
"hash": "4fec475df70ae15297b036c9df64a8d4c457f026ccdb24e3ba5a180fb8a0bade"
}
},
"post_install": [
"$hive = switch ($global) { $true { \"HKLM\" } $false { \"HKCU\" }}",
"If (!(Test-Path(\"${hive}:\\Software\\filips\\FirefoxPWA\"))) { New-Item -Path \"${hive}:\\Software\\filips\\FirefoxPWA\" -Force | Out-Null }",
"New-ItemProperty -Path \"${hive}:\\Software\\filips\\FirefoxPWA\" -Name \"Path\" -Value \"${dir}\" -Force | Out-Null",
"New-ItemProperty -Path \"${hive}:\\Software\\filips\\FirefoxPWA\" -Name \"Version\" -Value \"${version}\" -Force | Out-Null",
"If (!(Test-Path(\"${hive}:\\Software\\Mozilla\\NativeMessagingHosts\\firefoxpwa\"))) { New-Item -Path \"${hive}:\\Software\\Mozilla\\NativeMessagingHosts\\firefoxpwa\" -Force | Out-Null }",
"New-ItemProperty -Path \"${hive}:\\Software\\Mozilla\\NativeMessagingHosts\\firefoxpwa\" -Name \"(Default)\" -Value \"${dir}\\firefoxpwa.json\" -Force | Out-Null"
],
"post_uninstall": [
"$hive = switch ($global) { $true { \"HKLM\" } $false { \"HKCU\" }}",
"Remove-Item -Path \"${hive}:\\Software\\filips\\FirefoxPWA\" -Force | Out-Null",
"Remove-Item -Path \"${hive}:\\Software\\Mozilla\\NativeMessagingHosts\\firefoxpwa\" -Force | Out-Null"
],
"extract_dir": "PFiles\\FirefoxPWA",
"bin": "firefoxpwa.exe",
"checkver": "github",
Expand Down

0 comments on commit 7a87e84

Please sign in to comment.