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
The asar archive's meta information is only read for once and cached during app's whole life time, we should probably check the file's modification date before reading.
@YuriSolovyov This is intended, reloading page only re-read renderer process code, so updating the asar archive while app is running will result in the main process running old code while the renderer process running the new code, it is definitely going to cause troubles.
@zcbenz
Why can't we re-read file on reload without locking it?
Even if we can't restart browser process, it is fine, renderer process restart should work in most cases, since it is what usually gets updated (styles, images, scripts).
This is a problem because it kind of breaks typical web development workfow like: change -> reload page -> check it
any solution to this? i ran in this locked file problem trying to push update to electron app, but cant overwrite asar file in windows, even with admin privileges (in linux sudo ./app solves permissions, file is not locked). need a way to push app.asar updates to clients
Activity
zcbenz commentedon Mar 9, 2015
The asar archive's meta information is only read for once and cached during app's whole life time, we should probably check the file's modification date before reading.
dustinblackman commentedon May 11, 2015
Is there a method to clear cache? I've run in the a similar problem.
YurySolovyov commentedon May 12, 2015
Thanks a lot, development workflow is much better now.
dustinblackman commentedon May 12, 2015
Appreciated! Will give it a shot tonight.
YurySolovyov commentedon Aug 2, 2015
Now the problem is that
.asarfile is blocked for overwriting while app is running/cc @zcbenz
Edit:
error looks like:
zcbenz commentedon Aug 3, 2015
@YuriSolovyov This is intended, reloading page only re-read renderer process code, so updating the asar archive while app is running will result in the main process running old code while the renderer process running the new code, it is definitely going to cause troubles.
YurySolovyov commentedon Aug 3, 2015
@zcbenz
Why can't we re-read file on reload without locking it?
Even if we can't restart browser process, it is fine, renderer process restart should work in most cases, since it is what usually gets updated (styles, images, scripts).
This is a problem because it kind of breaks typical web development workfow like:
change -> reload page -> check itvaltersboze commentedon Oct 27, 2016
any solution to this? i ran in this locked file problem trying to push update to electron app, but cant overwrite asar file in windows, even with admin privileges (in linux sudo ./app solves permissions, file is not locked). need a way to push app.asar updates to clients
daaru00 commentedon Nov 29, 2016
+1