Skip to content
This repository has been archived by the owner on Nov 12, 2018. It is now read-only.

electron打包程序执行的时候出问题 #693

Open
NeilZhy opened this issue Nov 10, 2018 · 0 comments
Open

electron打包程序执行的时候出问题 #693

NeilZhy opened this issue Nov 10, 2018 · 0 comments

Comments

@NeilZhy
Copy link

NeilZhy commented Nov 10, 2018

你好,请问一下,我在使用electron的时候,需要使用模板引擎去创建不同的html文件,然后在程序运行的过程中使用BrowserWindow.load去加载这个html文件,在Ubuntu下面调试运行的时候是没有问题的,但是经过打包成exe文件之后,运行的时候会报错,找不到这个文件,我查了一下,使用打包工具的时候,会把我创建html文件的目录位置打包成asar文件,而这种文件是只读的,所以程序在执行的时候,并没有在这个文件下面创建或者修改文件,所以导致我加载文件的时候失败,请问对于这种需求,有什么好的解决方案吗??

@NeilZhy NeilZhy changed the title electron打包程序执行的时候楚问题 electron打包程序执行的时候出问题 Nov 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant