-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Autoupdater problem on mac if space in the name #1192
Comments
Do you use latest electron-updater version (1.3.2)? |
I am using this: https://www.npmjs.com/package/electron-auto-updater v1.0.0 |
Sorry that I not yet have time to publish package with deprecated notice. Please use |
Ah ok. It's hard for me to follow since I do development in several domains :) I'll replace it and see what happens. |
I just replaced it but I have some issues
Error: I tried looking in the docs but the only example there is in Typescript, and I don't understand Typescript. How do I add the event listeners? |
Very strange. Are you sure that |
Looks like it should be |
Figured it out by printing the object contents in the mean time. My bad. Will continue testing now. |
Exactly the same error
|
What I don't understand is that it seems to read the json file correctly, it gets the correct link to the zip file and it starts downloading the update, and only during the download this JSON error is shown? |
because under the hood we use Squirrel.Mac and... BOO!!! all simplicity is gone and you are alone in the dark. Well, it works for me. I will check again this week. Is it possible for you to inspect network response? Please specify electron version. |
I can run a Charles Proxy here. The problem is that Electron (running on Chromium) refuses the proxy self signed certificate so I can't inspect the network requests since they all go over SSL |
Running electron 1.5.0 |
Ok, I managed, by hacking inside the config files of the .app bundle, to have the updater connect to a local http server that just serves static files (python http server), so now I can inspect the callls. Result is the same:
Checking the network requests, it only shows a call to response
No other calls to localhost being made. It's as if it reads that JSON line by line and then all of the sudden misses something and bails out. |
It seems to go wrong inside this:
inside |
Works for me. @ir-fuel Please try to change your URL to be like Please ensure that access is granted as read for everyone. |
Sorry, I don't understand. What is wrong with my current URL? |
Did what you asked:
|
I have no idea. You can send me your app to investigate. |
Bingo! Sometimes it helps to walk away from the computer in order to find it. The So I guess it would be a good idea to URLEncode the filename that is put in That was a productive day ... |
Impressive, quit/reinstall/launch is instant on mac. |
Yes, Windows is slow, insecure, outdated and unusable OS. macOS is much better. Yes, we can also "just copy" as macOS does, but as Windows just *** (including IO), shortcuts and other stuff requires explicit registration (on macOS implicit Info.plist doesn't require any system calls to install app). |
Thanks for this! I also had spaces in my zip file name and encoding them fixed the Electron autoUpdater's invalid json response error message. My server is in php so I simply used autoUpdater now works. |
Yes! electron-builder was creating the files with spaces in the name, my update server was replacing the spaces with '.' and latest.yml files were replacing spaces with '-' |
I have my app packaged correctly and uploaded to an S3 bucket (something which I previously did with the Windows version), but the autoupdater doesn't work on mac (it works fine on Windows though).
When running my app from the terminal so I can see the logging I see this:
latest-mac.json
containsWhat could be the problem?
The text was updated successfully, but these errors were encountered: