You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I use electron shell to open file from public folder via __static variable. In development this works but when i build project and install it there is no files from public folder
To Reproduce
create file in public
open it in main process via electron shell
import { shell } from 'electron'
import path from 'path'
const dir = path.join(__static, 'myElectronFile.exe' )
shell.openItem(dir)
Expected behavior
start exe file in production
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
The issue is that your app is packaged into an asar archive. openItem only works if the file is in an uncompressed directory. Follow these instructions to package a file outside of the asar.
Describe the bug
I use electron shell to open file from public folder via __static variable. In development this works but when i build project and install it there is no files from public folder
To Reproduce
create file in public
open it in main process via electron shell
import { shell } from 'electron'
import path from 'path'
const dir = path.join(__static, 'myElectronFile.exe' )
shell.openItem(dir)
Expected behavior
start exe file in production
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: