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

feature(core): Add scoop-shim helper #3438

Closed
wants to merge 1 commit into from
Closed

Conversation

r15ch13
Copy link
Member

@r15ch13 r15ch13 commented May 6, 2019

This adds support for the extracted Shim.exe

Related: #3066

@@ -427,8 +428,11 @@ function shim($path, $global, $name, $arg) {
}

if($path -match '\.(exe|com)$') {
if(!(Test-HelperInstalled -Helper Shim)) {
scoop install 'main/scoop-shim'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Manifest is missing binary. Is it intentional?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, what would be the purpose of shimming the shim? 😄

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use it then from anywhere and shim anything. Nice for users who want to shim custom executables.

Small workaround for #3303

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would like to avoid recursions 😁

It could just be copied from ~/scoop/apps/scoop-shim/current/shim.exe

@r15ch13
Copy link
Member Author

r15ch13 commented May 6, 2019

The robocopy tests fail because they require a shimmed file.
I also don't know if the current position in code is a good place for the installation.
It should probably be installed on update and the first scoop installation.

Base automatically changed from develop to master November 22, 2021 14:40
@rashil2000
Copy link
Member

Closing in favour of #4736

@rashil2000 rashil2000 closed this Feb 14, 2022
@rashil2000 rashil2000 deleted the feature/scoop-shim branch February 14, 2022 05:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants