-
Notifications
You must be signed in to change notification settings - Fork 71
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
vm.common: add -iconLocation param to VM-Install-From-Zip #1202
base: main
Are you sure you want to change the base?
Conversation
777a5c4
to
3cc8135
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank for sending a PR to add the iconLocation
parameter to VM-Install-From-Zip
! 💖
As documented in the wiki:
The version needs to be increased every time you modify an existing package
Otherwise the package can't be pushed to MyGet, GH actions push it when merging the PR. So you need to modify the version in packages/common.vm/common.vm.nuspec
to be 0.0.0.20241212
. This is also the reason the linter is not happy.
I recommend to also modify the capa-explorer-web.vm package in the same PR that you add the parameter (if you wish in a different commit) as then we can test that the new modification is working. 😉
3cc8135
to
aaaa28b
Compare
c927837
to
111a5b4
Compare
53e44d3
to
aaa0cab
Compare
$iconName = "favicon.ico" | ||
VM-Install-From-Zip $toolName $category $zipUrl $zipSha256 -executableName $executableName -iconLocation $iconName -withoutBinFile -innerFolder $true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Ana06 please let me know if this works out for you.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the late reply (Xmas vacation 🎄 😅). There are two issues:
- You need to request in the nuspec of
capa-explorer-web.vm
that the version ofcommon.vm
is the one you where you have added the new function (or newer). To do this, the dependency has to be requested as<dependency id="common.vm" version="0.0.0.20241218" />
- The
iconLocation
expects an absolute path inVM-Install-Shortcut
. I think it is good to keep it local here, and look for it inside$toolDir
in theVM-Install-From-Zip
function, to pass the absolute path toVM-Install-Shortcut
.
I recommend you to follow the Local Testing instruction in the Wiki to be able to easily test your changes. If you need any issues or questions while setting a local testing setup, please let me know. I am happy to help! 😄
$iconName = "favicon.ico" | ||
VM-Install-From-Zip $toolName $category $zipUrl $zipSha256 -executableName $executableName -iconLocation $iconName -withoutBinFile -innerFolder $true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the late reply (Xmas vacation 🎄 😅). There are two issues:
- You need to request in the nuspec of
capa-explorer-web.vm
that the version ofcommon.vm
is the one you where you have added the new function (or newer). To do this, the dependency has to be requested as<dependency id="common.vm" version="0.0.0.20241218" />
- The
iconLocation
expects an absolute path inVM-Install-Shortcut
. I think it is good to keep it local here, and look for it inside$toolDir
in theVM-Install-From-Zip
function, to pass the absolute path toVM-Install-Shortcut
.
I recommend you to follow the Local Testing instruction in the Wiki to be able to easily test your changes. If you need any issues or questions while setting a local testing setup, please let me know. I am happy to help! 😄
closes #1187