-
-
Notifications
You must be signed in to change notification settings - Fork 70
Add Processing to the PATH on Windows for easy CLI access #1097
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
Comments
Hi @Mathew-D yes we are not yet adding the Processing cli to the command line directly. You can use it by using the full Processing path:
We'll research later how to add it directly to the console
To see the cli output |
To add more info if someone wants to pick up this issue, we would need a method added to |
Would also be worthwhile to look if adding to the PATH can be added to the Wix Toolset installer. |
When I try: C:\processing\processing cli --sketch="c:\Users\mathew\Downloads\test" --run The IDE opens with a blank file. |
For the second one starting with the |
Also important to check if both versions are 4.4.3 as that's where the CLI was introduced |
The portable was 4.4.3. I mistaken got the installed version from the site so it was only 4.4.1 but I just uninstalled and installed the prerelease from github and the mistake I had was missing a ; on the one line and that was giving me Failed to Launch JVM without any errors being passed back. |
Hi, I think this can be done through the wix installer by adding a quiet execution custom action. Maybe this can be an optional choice in the installer? I would be happy to work on this. |
I've been looking into that other issue, and if we want to make it possible to install without admin privilege it should also be possible to add processing to PATH without such privilege. This pushes us towards editing the This can be done without administrator privilege during the installation, using the I am making some progress building and packaging on my local environment, and going forward I'd like to make sure that what I am doing gets as close as possible to the CI environment. Am I right to assume that the github actions runner is using powershell for all windows workflows ? |
Thank you for the update! Adding to PATH when installing without admin privileges is not necessary if it requires us to have two different solutions for both cases. So in this case let's stick to adding to PATH only even though it makes it limited to admin install. Whilst thinking about this I also came across this: https://docs.firegiant.com/wix3/xsd/wix/environment/ its a way for WIX to modify the environment variables and seems like it would be a more direct approach than the quiet execution. To test the CI system you can enable the actions on your own fork of Processing and it will create unsigned builds on push to any branch. |
Thank you for these pointers. It does seem more elegant !
I will look into testing with the GitHub actions on my fork.
|
Hi, I found some time to get this somewhere. I can build the msi on my fork, which correctly edits To get it to work with actions on a fork I had to edit the |
Uh oh!
There was an error while loading. Please reload this page.
Most appropriate sub-area of Processing 4?
Utilities, Core/Environment/Rendering
Processing version
4.4.3
Operating system
Windows
Steps to reproduce this
snippet
Additional context
The cli command works great in Linux but doesn't exist in windows.
Would you like to work on the issue?
no
The text was updated successfully, but these errors were encountered: