Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[email protected]: Add required registry keys #11499

Merged
merged 1 commit into from
Jul 3, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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