This pull request introduces proxy support for the neu create and neu update commands in the NeutralinoJS CLI tool. Proxy support enables users to create and update NeutralinoJS applications seamlessly while operating behind a proxy server.
Modified the create command in commands/create.js to accept a proxy option (-p, --proxy [proxy]).
Users can now specify a proxy URL when creating a new NeutralinoJS application.
Added Proxy Support for neu update Command:
Modified the update command in commands/update.js to accept a proxy option (-p, --proxy [proxy]).
Users can now specify a proxy URL when updating NeutralinoJS resources.
Updated modules/downloader.js:
Modified the downloadBinariesFromRelease and downloadClientFromRelease functions to utilize proxy settings when downloading resources.
Updated Dependencies:
Added necessary dependencies (follow-redirects and decompress) to support proxy settings.
How to Test:
Ensure you have the latest version of the NeutralinoJS CLI tool installed.
Create a new NeutralinoJS application using the neu create command with the -p or --proxy option, providing a valid proxy URL.
Update an existing NeutralinoJS application using the neu update command with the -p or --proxy option, providing a valid proxy URL.
Verify that the application is created or updated successfully, and the proxy settings are applied during resource download.
Additional Notes:
Proxy support enhances the usability of the NeutralinoJS CLI tool for users operating behind a proxy server.
This feature improves accessibility and ensures a seamless experience for developers working in restricted network environments.
Description:
Related Issues:
https://github.com/neutralinojs/neutralinojs-cli/issues/198 -> "neu create fail behind a proxy"
Changes Made:
Added Proxy Support for neu create Command:
Modified the create command in commands/create.js to accept a proxy option (-p, --proxy [proxy]). Users can now specify a proxy URL when creating a new NeutralinoJS application. Added Proxy Support for neu update Command:
Modified the update command in commands/update.js to accept a proxy option (-p, --proxy [proxy]). Users can now specify a proxy URL when updating NeutralinoJS resources. Updated modules/downloader.js:
Modified the downloadBinariesFromRelease and downloadClientFromRelease functions to utilize proxy settings when downloading resources.
Updated Dependencies:
How to Test:
Additional Notes: