diff --git a/contrib/make_plugin b/contrib/make_plugin index 6c454e768..ae256fcb1 100755 --- a/contrib/make_plugin +++ b/contrib/make_plugin @@ -18,7 +18,7 @@ if source_dir.endswith('/'): source_dir = source_dir[:-1] plugin_name = os.path.basename(source_dir) -dest_dir = os.path.dirname(source_dir) +dest_dir = os.getcwd() zip_path = os.path.join(dest_dir, plugin_name + '.zip') # remove old zipfile @@ -42,14 +42,11 @@ try: except FileNotFoundError: raise Exception(f"plugin doesn't contain manifest.json") -if not version: - raise Exception('version not set') - - -versioned_plugin_name = plugin_name + '-' + version + '.zip' -zip_path_with_version = os.path.join(dest_dir, versioned_plugin_name) -# rename zip file -os.rename(zip_path, zip_path_with_version) - -print(f'Created {zip_path_with_version}') - +if version: + versioned_plugin_name = plugin_name + '-' + version + '.zip' + zip_path_with_version = os.path.join(dest_dir, versioned_plugin_name) + # rename zip file + os.rename(zip_path, zip_path_with_version) + print(f'Created {zip_path_with_version}') +else: + print(f'Created {zip_path}') diff --git a/electrum/plugins/audio_modem/manifest.json b/electrum/plugins/audio_modem/manifest.json index e3172861c..cdbc6d9bc 100644 --- a/electrum/plugins/audio_modem/manifest.json +++ b/electrum/plugins/audio_modem/manifest.json @@ -1,6 +1,7 @@ { + "name": "audio_modem", "fullname": "Audio MODEM", "description": "Provides support for air-gapped transaction signing.", "requires": [["amodem", "http://github.com/romanz/amodem/"]], "available_for": ["qt"] -} \ No newline at end of file +} diff --git a/electrum/plugins/bitbox02/manifest.json b/electrum/plugins/bitbox02/manifest.json index ed4987043..497bd803b 100644 --- a/electrum/plugins/bitbox02/manifest.json +++ b/electrum/plugins/bitbox02/manifest.json @@ -1,7 +1,8 @@ { + "name": "bitbox02", "fullname": "BitBox02", "description": "Provides support for the BitBox02 hardware wallet", "requires": [["bitbox02", "https://github.com/digitalbitbox/bitbox02-firmware/tree/master/py/bitbox02"]], "registers_keystore": ["hardware", "bitbox02", "BitBox02"], "available_for": ["qt"] -} \ No newline at end of file +} diff --git a/electrum/plugins/coldcard/manifest.json b/electrum/plugins/coldcard/manifest.json index 52fdfd5ee..2ee8ff380 100644 --- a/electrum/plugins/coldcard/manifest.json +++ b/electrum/plugins/coldcard/manifest.json @@ -1,7 +1,8 @@ { + "name": "coldcard", "fullname": "Coldcard Wallet", "description": "Provides support for the Coldcard hardware wallet from Coinkite", "requires": [["ckcc-protocol", "github.com/Coldcard/ckcc-protocol"]], "registers_keystore": ["hardware", "coldcard", "Coldcard Wallet"], "available_for": ["qt", "cmdline"] -} \ No newline at end of file +} diff --git a/electrum/plugins/digitalbitbox/manifest.json b/electrum/plugins/digitalbitbox/manifest.json index dc47bb2a9..a77f6cf3b 100644 --- a/electrum/plugins/digitalbitbox/manifest.json +++ b/electrum/plugins/digitalbitbox/manifest.json @@ -1,4 +1,5 @@ { + "name": "digitalbitbox", "fullname": "Digital Bitbox", "description": "Provides support for Digital Bitbox hardware wallet", "registers_keystore": ["hardware", "digitalbitbox", "Digital Bitbox wallet"], diff --git a/electrum/plugins/jade/jade.py b/electrum/plugins/jade/jade.py index 16a65e235..8a6721889 100644 --- a/electrum/plugins/jade/jade.py +++ b/electrum/plugins/jade/jade.py @@ -33,6 +33,7 @@ _logger = get_logger(__name__) try: # Do imports + from .jadepy import jade from .jadepy.jade import JadeAPI from .jadepy.jade_serial import JadeSerialImpl from serial.tools import list_ports diff --git a/electrum/plugins/jade/manifest.json b/electrum/plugins/jade/manifest.json index 83de7b0ad..57c00105c 100644 --- a/electrum/plugins/jade/manifest.json +++ b/electrum/plugins/jade/manifest.json @@ -1,4 +1,5 @@ { + "name": "jade", "fullname": "Blockstream Jade Wallet", "description": "Provides support for the Blockstream Jade hardware wallet", "registers_keystore": ["hardware", "jade", "Jade wallet"], diff --git a/electrum/plugins/keepkey/manifest.json b/electrum/plugins/keepkey/manifest.json index 6679bb509..900de0284 100644 --- a/electrum/plugins/keepkey/manifest.json +++ b/electrum/plugins/keepkey/manifest.json @@ -1,4 +1,5 @@ { + "name": "keepkey", "fullname": "KeepKey", "description": "Provides support for KeepKey hardware wallet", "requires": [["keepkeylib", "github.com/keepkey/python-keepkey"]], diff --git a/electrum/plugins/labels/manifest.json b/electrum/plugins/labels/manifest.json index 53710dc52..27f37089a 100644 --- a/electrum/plugins/labels/manifest.json +++ b/electrum/plugins/labels/manifest.json @@ -1,5 +1,6 @@ { + "name": "labels", "fullname": "LabelSync", "description": "Save your wallet labels on a remote server, and synchronize them across multiple devices where you use Electrum. Labels, transactions IDs and addresses are encrypted before they are sent to the remote server.", "available_for": ["qt", "qml", "cmdline"] -} \ No newline at end of file +} diff --git a/electrum/plugins/ledger/manifest.json b/electrum/plugins/ledger/manifest.json index 4a091a39c..3fcab560d 100644 --- a/electrum/plugins/ledger/manifest.json +++ b/electrum/plugins/ledger/manifest.json @@ -1,4 +1,5 @@ { + "name": "ledger", "fullname": "Ledger Wallet", "description": "Provides support for Ledger hardware wallet", "requires": [["ledger_bitcoin", "github.com/LedgerHQ/app-bitcoin-new"]], diff --git a/electrum/plugins/nwc/manifest.json b/electrum/plugins/nwc/manifest.json index e31ba9a2e..082c1231c 100644 --- a/electrum/plugins/nwc/manifest.json +++ b/electrum/plugins/nwc/manifest.json @@ -1,6 +1,6 @@ { - "fullname": "Nostr Wallet Connect", "name": "nwc", + "fullname": "Nostr Wallet Connect", "description": "This plugin allows remote control of Electrum lightning wallets via Nostr NIP-47.", "author": "The Electrum Developers", "available_for": ["cmdline", "qt"], diff --git a/electrum/plugins/payserver/manifest.json b/electrum/plugins/payserver/manifest.json index 7d3b55af7..fd47bb92c 100644 --- a/electrum/plugins/payserver/manifest.json +++ b/electrum/plugins/payserver/manifest.json @@ -1,4 +1,5 @@ { + "name": "payserver", "fullname": "PayServer", "description": "run a HTTP server for receiving payments", "available_for": ["cmdline"] diff --git a/electrum/plugins/psbt_nostr/manifest.json b/electrum/plugins/psbt_nostr/manifest.json index e49ba3959..b8b2d47a4 100644 --- a/electrum/plugins/psbt_nostr/manifest.json +++ b/electrum/plugins/psbt_nostr/manifest.json @@ -1,4 +1,5 @@ { + "name": "psbt_nostr", "fullname": "PSBT over Nostr", "description": "This plugin facilitates the use of multi-signatures wallets. It sends and receives partially signed transactions from/to your cosigner wallet. PSBTs are sent and retrieved from Nostr relays.", "author": "The Electrum Developers", diff --git a/electrum/plugins/revealer/manifest.json b/electrum/plugins/revealer/manifest.json index f923b6dd5..7b1a83801 100644 --- a/electrum/plugins/revealer/manifest.json +++ b/electrum/plugins/revealer/manifest.json @@ -1,5 +1,6 @@ { + "name": "revealer", "fullname": "Revealer Backup Utility", - "description": "
Do you have something to hide ?

This plug-in allows you to create a visually encrypted backup of your wallet seeds, or of custom alphanumeric secrets.
", + "description": "This plug-in allows you to create a visually encrypted backup of your wallet seeds, or of custom alphanumeric secrets.", "available_for": ["qt"] } diff --git a/electrum/plugins/safe_t/manifest.json b/electrum/plugins/safe_t/manifest.json index 40dd51385..223077f5a 100644 --- a/electrum/plugins/safe_t/manifest.json +++ b/electrum/plugins/safe_t/manifest.json @@ -1,7 +1,8 @@ { + "name": "safe_t", "fullname": "Safe-T mini Wallet", "description": "Provides support for Safe-T mini hardware wallet", "requires": [["safetlib", "github.com/archos-safe-t/python-safet"]], "registers_keystore": ["hardware", "safe_t", "Safe-T mini wallet"], "available_for": ["qt", "cmdline"] -} \ No newline at end of file +} diff --git a/electrum/plugins/swapserver/manifest.json b/electrum/plugins/swapserver/manifest.json index 797fcbb64..3bb60dd9b 100644 --- a/electrum/plugins/swapserver/manifest.json +++ b/electrum/plugins/swapserver/manifest.json @@ -1,4 +1,5 @@ { + "name": "swapserver", "fullname": "SwapServer", "description": "Submarine swap server for an Electrum daemon.\n\nExample setup:\n\n electrum -o setconfig enable_plugin_swapserver True\n electrum -o setconfig swapserver_port 5455\n electrum daemon -v\n\n", "available_for": ["cmdline"] diff --git a/electrum/plugins/trezor/manifest.json b/electrum/plugins/trezor/manifest.json index 0abd780c1..fafe12691 100644 --- a/electrum/plugins/trezor/manifest.json +++ b/electrum/plugins/trezor/manifest.json @@ -1,4 +1,5 @@ { + "name": "trezor", "fullname": "Trezor Wallet", "description": "Provides support for Trezor hardware wallet", "requires": [["trezorlib","pypi.org/project/trezor/"]], diff --git a/electrum/plugins/trustedcoin/manifest.json b/electrum/plugins/trustedcoin/manifest.json index f9db5645b..dd6626a6b 100644 --- a/electrum/plugins/trustedcoin/manifest.json +++ b/electrum/plugins/trustedcoin/manifest.json @@ -1,4 +1,5 @@ { + "name": "trustedcoin", "fullname": "Two Factor Authentication", "description": "This plugin adds two-factor authentication to your wallet.
For more information, visit https://api.trustedcoin.com/#/electrum-help", "requires_wallet_type": ["2fa"], diff --git a/electrum/plugins/watchtower/manifest.json b/electrum/plugins/watchtower/manifest.json index 459801856..9747e43eb 100644 --- a/electrum/plugins/watchtower/manifest.json +++ b/electrum/plugins/watchtower/manifest.json @@ -1,4 +1,5 @@ { + "name": "watchtower", "fullname": "Watchtower", "description": "A watchtower is a daemon that watches your channels and prevents the other party from stealing funds by broadcasting an old state.\n\nExample:\n\ndaemon setup:\n\n electrum -o setconfig enable_plugin_watchtower True\n electrum -o setconfig watchtower_user wtuser\n electrum -o setconfig watchtower_password wtpassword\n electrum -o setconfig watchtower_port 12345\n electrum daemon -v\n\nclient setup:\n\n electrum -o setconfig watchtower_url http://wtuser:wtpassword@127.0.0.1:12345\n\n", "available_for": ["cmdline"]