Add tagged release installers and CLI updater - #12
Merged
Merged
Conversation
Owner
Author
|
MasonChow
commented
Jul 15, 2026
| import process from 'node:process'; | ||
|
|
||
| const PACKAGE_NAME = 'source_map_parser_node'; | ||
| const INSTALL_SCRIPT_URL = 'https://raw.githubusercontent.com/MasonChow/source-map-parser/main/scripts/install.sh'; |
Owner
Author
There was a problem hiding this comment.
应该 node 的产物也带这个 sh 脚本,更安全更好被审查
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
updateflow so users can install/update without manual packaging steps.npmand GitHub-Release based distribution to cover users on Windows (npm) and Unix-like systems (bash install).Description
.github/workflows/release.ymlthat builds/tests Node/WASM across Linux, macOS and Windows and uploadssource_map_parser_node-<platform>-<arch>.tar.gzartifacts.scripts/install.shthat detects OS/ARCH, downloads the matching release asset, installs files to an--install-dir, and creates a shim in--bin-dir.crates/node_sdk/bin/source-map-parser.mjswhich exposessource-map-parser update [--version] [--from npm|github]and supports updating vianpmor by invoking the install script.bin/incrates/node_sdk/package.jsonand expose thesource-map-parserexecutable, and document install/update and tagged-release usage incrates/node_sdk/README.md.dist/,bin/,skills/,README.md,LICENSEinto per-platform tarballs for upload to GitHub Releases.Testing
node crates/node_sdk/bin/source-map-parser.mjs --helpand it printed help successfully.scripts/install.shsyntax withbash -n scripts/install.shand it passed.git diff --checkto ensure no whitespace/patch issues and it returned clean.cargo test --workspace --exclude source_map_parser_node --all-featuresand all unit and integration tests completed successfully (all tests passed).Codex Task