Skip to content
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

phantombot package invalid download and install dir param request #19

Closed
Destroy666x opened this issue Dec 30, 2022 · 4 comments · Fixed by #30
Closed

phantombot package invalid download and install dir param request #19

Destroy666x opened this issue Dec 30, 2022 · 4 comments · Fixed by #30
Assignees
Labels
enhancement New feature or request

Comments

@Destroy666x
Copy link

Hi,

1st of all, the package has a big issue of downloading the wrong release. This regex is incorrect: https://github.com/Xav83/chocolatey-packages/blob/develop/automatic/phantombot/update.ps1#L21 It assumes any kind of release basically and gets the 1st one, so PhantomBot-3.7.0.1-arm-bsd-other.zip in case of current version instead of proper PhantomBot-3.7.0.1-win.zip. The regex should include win and escape the extension dot like \.. So: $re = "PhantomBot.+win\.zip$"

Secondly, it would be nice if we could override the unzip location. So something like /InstallDir param that's available in many Chocolatey community packages would be handy.

@Xav83
Copy link
Owner

Xav83 commented Feb 15, 2023

Hi @Destroy666x 🙂

Thank you a lot for creating this issue!

I have corrected the error in the update script for the Phantombot package (a2bf09d). From now on, all the new package version will point to the right zip.
Thank you again for noticing and notifying me 🙏

About the second point, do you have some example of package that have the feature /InstallDir ?
To avoid reinventing the wheel, and to make sure that I understand your request 😉

@Destroy666x
Copy link
Author

Destroy666x commented Feb 15, 2023

Thanks.

I do indeed. Many Chocolatey packages in the official community repository have it, for instance. Few examples:

It's mostly nice to have for apps that don't use standard install locations such as C:\Program Files by default. I don't recall where this was installed or unzipped but the location was quite random. Most likely either in the location where the install PS script is or in C:\tools

@Xav83 Xav83 pinned this issue Feb 15, 2023
@Xav83 Xav83 self-assigned this Feb 15, 2023
@Xav83 Xav83 added the enhancement New feature or request label Feb 15, 2023
@Xav83
Copy link
Owner

Xav83 commented Jan 27, 2024

Hi @Destroy666x,

I have create a Pull Request #30 with the modification on the phantombot package which, if I understand correctly the code in the examples you mentioned, should allow people to be able to specify a parameter /InstallDir in order to specify another folder where to install Phantombot.

Feel free to comment on the Pull Request #30, if you see an error, something missing, or if everything looks fine to you 😉
I'll integrate it next week, after a few tests on my Windows machine. After that, this feature will be integrated in the next update of Phantombot. 🙂

@Destroy666x
Copy link
Author

Destroy666x commented Jan 27, 2024

Thanks, looks good, I'll check if it works fine later

It indeed does

@Xav83 Xav83 closed this as completed in #30 Jan 28, 2024
Xav83 added a commit that referenced this issue Jan 28, 2024
Custom installation folder for PhantomBot package.



Adds the capacity to specify a parameter '/InstallDir' in order to change the default installation directory.

Fixes #19.
@Xav83 Xav83 unpinned this issue Feb 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants