mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-08-10 15:30:14 -04:00
feat(gui, tauri): Accept --testnet flag, default to mainnet (#106)
This PR tackles #92 - Add the `tauri-plugin-cli` (only on desktop) - Check in the frontend if the `--testnet` flag is set. If it's set we pass `testnet=true` to the `initialize_context` command on invokation - We add the `vite-plugin-top-level-await` to allow top level await in all browsers - Remove the `bitcoin_confirmation_target` from settings for simplicity
This commit is contained in:
parent
9e94dca7aa
commit
83f831ccac
23 changed files with 311 additions and 53 deletions
|
@ -9,6 +9,7 @@
|
|||
"clipboard-manager:allow-write-text",
|
||||
"shell:allow-open",
|
||||
"store:default",
|
||||
"process:default"
|
||||
"process:default",
|
||||
"cli:allow-cli-matches"
|
||||
]
|
||||
}
|
||||
|
|
11
src-tauri/capabilities/desktop.json
Normal file
11
src-tauri/capabilities/desktop.json
Normal file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"identifier": "desktop-capability",
|
||||
"platforms": [
|
||||
"macOS",
|
||||
"windows",
|
||||
"linux"
|
||||
],
|
||||
"permissions": [
|
||||
"cli:default"
|
||||
]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue