oliverschwendener / ueli

Cross-Platform Keystroke Launcher
https://ueli.app
MIT License
3.62k stars 239 forks source link

[Bug] Blank screen when running app after `npm run package` #1163

Closed sashaweiss closed 1 month ago

sashaweiss commented 1 month ago

Describe the bug

When I run Ueli.app, produced by running npm run package, I get a blank UI and can't even open the dev tools.

To Reproduce

This persists when launching from the produced .dmg as well.

Expected behavior

release/mac-arm64/Ueli.app launches with a functioning UI.

Screenshots

image

Environment


Happy to help debug, and it's plausible I'm doing something wrong as I don't typically work with Electron. Please let me know what else I can provide to help debug!

sashaweiss commented 1 month ago

I figured it out – it was my mistake! I tried it with a clean build and it worked. I was running npm run dev a lot, but for whatever reason dist-renderer was missing (maybe that command doesn't create the dist-* directories?). Once I ran npm run build it showed up, and when I repackaged it worked as expected.

Thanks!