-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #32 from susumuota/feat-windows-installer
feat: add Windows installer and uninstaller scripts.
- Loading branch information
Showing
6 changed files
with
82 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# SPDX-FileCopyrightText: 2023 Susumu OTA <[email protected]> | ||
# SPDX-License-Identifier: MIT | ||
|
||
param([Parameter(Mandatory)][ValidatePattern("^[a-z]+$")][string] $extension_id) | ||
|
||
$json = ".\io.github.susumuota.nostr_keyx.json" | ||
$path = "HKCU:\Software\Google\Chrome\NativeMessagingHosts\io.github.susumuota.nostr_keyx" | ||
$stab = $json + ".stab" | ||
|
||
Get-Content $stab | ForEach-Object { $_ -creplace "__EXTENSION_ID__", $extension_id } | Out-File $json -Encoding ascii | ||
New-Item -Path $path -Value (Convert-Path $json) -Force | ||
|
||
Write-Output "Done!" | ||
Pause |
4 changes: 2 additions & 2 deletions
4
...ndows/io.github.susumuota.nostr_keyx.json → .../io.github.susumuota.nostr_keyx.json.stab
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
{ | ||
"name": "io.github.susumuota.nostr_keyx", | ||
"description": "A NIP-07 browser extension that uses the OS's native keychain application to protect your private keys.", | ||
"path": "C:\\path\\to\\dist\\windows\\keychain.bat", | ||
"path": "keychain.bat", | ||
"type": "stdio", | ||
"allowed_origins": [ | ||
"chrome-extension://(WRITE EXTENSION ID HERE WITHOUT BRACKETS)/" | ||
"chrome-extension://__EXTENSION_ID__/" | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# SPDX-FileCopyrightText: 2023 Susumu OTA <[email protected]> | ||
# SPDX-License-Identifier: MIT | ||
|
||
$path = "HKCU:\Software\Google\Chrome\NativeMessagingHosts\io.github.susumuota.nostr_keyx" | ||
|
||
Remove-Item -Path $path -Force | ||
|
||
Write-Output "Done!" | ||
Pause |