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

fix(setup,update): build SDK tools if not included in tagged release #200

Merged
merged 2 commits into from
Dec 28, 2024

Conversation

HipsterBrown
Copy link
Owner

After adding support for installing & updating the Moddable SDK from a specific tagged release version in #197, I was still running into the need for building the tooling (mcconfig, mcpack, simulator, etc) when not included in the release assets. This PR adds support for that workflow after confirming with the user.

Also included is a fix for updating the pico support by removing the unnecessary git clone of the pico-extras repo before fetching tags and pulling the required SDK branch.

port.manufacturer?.includes('Raspberry Pi') === true &&
hasPicotool
) {
if (port.vendorId === '2e8a' && hasPicotool) {
Copy link
Owner Author

Choose a reason for hiding this comment

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

Updated this logic use the vendorId listed here: https://github.com/raspberrypi/usb-pid?tab=readme-ov-file#assignment

This should make matching more reliable, however it still doesn't solve for devices running MicroPython (which I was running into for one of my Pico boards). Not sure if I should try to solve for that edge case since it would require installing extra Python tools to reset the device into bootloader mode for getting info about the device.

@HipsterBrown HipsterBrown merged commit 04a39a5 into main Dec 28, 2024
3 checks passed
@HipsterBrown HipsterBrown deleted the nhehr/pico-update branch December 28, 2024 19:00
Copy link
Contributor

🚀 PR was released in v0.36.1 🚀

@github-actions github-actions bot added the released This issue/pull request has been released. label Dec 28, 2024
kitazaki added a commit to kitazaki/xs-dev that referenced this pull request Jan 1, 2025
Moddable SDK 5.3.3 is released without pre-built binaries.
"xs-dev setup" requires the prompt, but it doesn't work in spinner working. 
HipsterBrown#200

Reproduced on mac and linux.
This change fixes the prompt.
HipsterBrown pushed a commit that referenced this pull request Jan 1, 2025
Moddable SDK 5.3.3 is released without pre-built binaries.
"xs-dev setup" requires the prompt, but it doesn't work in spinner working. 
#200

Reproduced on mac and linux.
This change fixes the prompt.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant