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
[Help] how to run the built application and npm run dev
at the same time?
#375
Comments
Need comment this:
) |
Maybe the following code is better. - if (!app.requestSingleInstanceLock()) {
- app.quit()
- process.exit(0)
- } |
Indeed, allowing many instances if it is not required is a bad idea. So I decided to do this:
@caoxiemeihao thanks |
The compiled application and launched through |
import { app } from 'electron'
app.getName() |
If I understand correctly, then the OS generates a PID based on the application name. When assembled, the name is taken from |
On macos unable to run built app and
npm run dev
at the same time.If built app is running, then
npm run dev
returnsotherwise nothing happens.
The text was updated successfully, but these errors were encountered: