Skip to content
Merged
Show file tree
Hide file tree
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
77 changes: 74 additions & 3 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,26 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug Main Process Prod",
"type": "node",
"request": "launch",
"cwd": "${workspaceRoot}",
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron-vite",
"windows": {
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron-vite.cmd"
},
"runtimeArgs": [
"--sourcemap",
"--"
],
"env": {
"REMOTE_DEBUGGING_PORT": "9222",
},
"presentation": {
"hidden": false
}
},
{
"name": "Debug Main Process",
"type": "node",
Expand All @@ -10,7 +30,55 @@
"windows": {
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron-vite.cmd"
},
"runtimeArgs": ["--sourcemap", "--", "DEV=true"],
"runtimeArgs": [
"--sourcemap",
"--",
"DEV=true"
],
"env": {
"REMOTE_DEBUGGING_PORT": "9222",
},
"presentation": {
"hidden": false
}
},
{
"name": "Debug Main Process Second",
"type": "node",
"request": "launch",
"cwd": "${workspaceRoot}",
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron-vite",
"windows": {
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron-vite.cmd"
},
"runtimeArgs": [
"--sourcemap",
"--",
"DEV=true",
"INSTANCE=1"
],
"env": {
"REMOTE_DEBUGGING_PORT": "9222",
},
"presentation": {
"hidden": false
}
},
{
"name": "Debug Main Process Third",
"type": "node",
"request": "launch",
"cwd": "${workspaceRoot}",
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron-vite",
"windows": {
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron-vite.cmd"
},
"runtimeArgs": [
"--sourcemap",
"--",
"DEV=true",
"INSTANCE=2"
],
"env": {
"REMOTE_DEBUGGING_PORT": "9222",
},
Expand All @@ -33,10 +101,13 @@
"compounds": [
{
"name": "Debug main and renderer processes",
"configurations": ["Debug Main Process", "Debug Renderer Process"],
"configurations": [
"Debug Main Process",
"Debug Renderer Process"
],
"presentation": {
"order": 1
}
}
]
}
}
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,11 @@ $ npm run publish:minor
# For patch
$ npm run publish:patch
```

### Env variables ONLY FOR TEST PURPOSE

> `DEV=true`\
> run app in DEV mode

> `INSTANCE=<numer_of_the_instance>`\
> enables multiple instances of the process. Use this function with extreme caution, it can cause many problems - for testing purposes only. When this variable is set, a new `user_data_<instance_number>.json` is created and the instance only changes its related file.
Loading
Loading