Skip to content
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

font-list not work in --asar electron packager #4

Closed
bilal-mo-saed opened this issue Aug 19, 2019 · 3 comments
Closed

font-list not work in --asar electron packager #4

bilal-mo-saed opened this issue Aug 19, 2019 · 3 comments

Comments

@bilal-mo-saed
Copy link

when build my electron project by
electron-packager . test --overwrite --asar=true --platform=win32 --arch=ia32 --icon=assets/image/logo.ico --prune=true --out=release-builds --version-string.CompanyName=CE --version-string.FileDescription=CE --version-string.ProductName="test"

font-list not work but when remove --asar worked

show message
error: Command failed: cscript "C:\Users\Your\release-builds\rc-win32-ia32\resources\app.asar\node_modules\font-list\libs\win32\fonts.vbs"
at ChildProcess.exithandler (child_process.js:304)
at ChildProcess.emit (events.js:200)
at maybeClose (internal/child_process.js:1021)
at Process.ChildProcess._handle.onexit (internal/child_process.js:283)

@bilal-mo-saed bilal-mo-saed changed the title font-list not work in --asar font-list not work in --asar electron packager Aug 19, 2019
@luiskugel
Copy link

I have the same problem. Does anyone have an idea how to fix this ?

@oldj
Copy link
Owner

oldj commented Nov 1, 2019

On Windows systems, you need to extract the .vbs file from the asar package to a temporary directory, and then execute it, otherwise it will fail because the file cannot be found.
I will submit an update to deal with this issue later.

oldj added a commit that referenced this issue Nov 1, 2019
@oldj
Copy link
Owner

oldj commented Nov 1, 2019

Try v1.2.1 or newer, it should work.

@oldj oldj closed this as completed Nov 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants