Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Electron-Installer-Windows : Invalid URI: The format of the URI could not be determined

Tags:

electron

I am trying to create the .exe file in order to be able to run the application that I fixed on windows environment. Firstly, I use the command:

electron-packager . app --platform win32 --arch x64 --out dist/  

which it creates the dist folder as described here : https://github.com/electron-userland/electron-packager Finally, I run the command :

electron-installer-windows --src ./dist/app-win32-x64 --config config.json/

(as described here: https://github.com/unindented/electron-installer-windows). The config.json file contains : { "authors": ["auth"], "dest": "/dist/installers/" }

Invalid URI: The format of the URI could not be determined.

I have also seen this question : Electron Atom APP : Invalid URI: The format of the URI could not be determined but it seems it does not work. Any suggestion? Thanks.

like image 647
geo Avatar asked Oct 30 '22 03:10

geo


2 Answers

I believe this error is due to an incorrect path when trying to create the installer.

I still haven't been able to validate this, but if you have node_modules folder with its nested dependencies and you have paths longer than 260 characters that may just be the problem.

If I'm able to comfirm this or get a solution I'll post it here.

like image 101
Hernando Avatar answered Nov 27 '22 10:11

Hernando


Had the same issue and it was resolved by setting the proper "url" field for the author in the package.json file.

like image 41
Costa Ciprian Avatar answered Nov 27 '22 11:11

Costa Ciprian