-
Notifications
You must be signed in to change notification settings - Fork 86
Add curl installer scripts for standalone CLI distribution #3064
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
Merged
Merged
Changes from all commits
Commits
Show all changes
81 commits
Select commit
Hold shift + click to select a range
4d541de
Add curl installer scripts for standalone CLI distribution
bcotrim f77f9c4
Convert create-standalone-bundle from shell to TypeScript for cross-p…
bcotrim 3fab289
Add cli:bundle npm script for standalone bundle creation
bcotrim 2c988a6
Preserve config files during install (don't wipe ~/.studio)
bcotrim bac4423
Merge branch 'trunk' into stu-1525-add-curl-installer
bcotrim d8447c4
Use tar.gz for all platforms instead of zip for Windows
bcotrim 7f43d56
Detect standalone CLI on Windows to prevent desktop app from overwrit…
bcotrim 24fef1b
Merge branch 'trunk' into stu-1525-add-curl-installer
bcotrim da3ff4e
Simplify bundle script and fix Windows installer extraction
bcotrim 6e97c91
Merge branch 'trunk' into stu-1525-add-curl-installer
bcotrim 36d8cb6
Bundle CLI as a single executable binary for standalone and app distr…
bcotrim 1c55a5c
Remove @yao-pkg/pkg and unused CLI launcher script
bcotrim 100c9cd
Merge branch 'trunk' into stu-1525-add-curl-installer
bcotrim 49a2c89
Fix lint errors in bundle entry point
bcotrim bfa005e
Clean up packaged bin directory and remove unused node binaries
bcotrim df41f34
Fix Windows tar path handling and clean up packaged bin directory
bcotrim 4b9bdd2
Add --force-local to tar commands for Windows compatibility
bcotrim 878c104
Only use --force-local tar flag on Windows (BSD tar doesn't support it)
bcotrim e52247c
Merge branch 'trunk' into stu-1525-add-curl-installer
bcotrim 24fa120
Externalize trash package to fix site deletion in bundled binary
bcotrim 570bfd6
Harden standalone CLI extraction: lockfile, auto-derived bundle-versi…
bcotrim 9a20492
Verify SHA-256 checksum and tighten PATH matching in curl installers
bcotrim 274ebde
Return nullable CLI binary path, handle Windows junction, add paths test
bcotrim 801c67f
Merge branch 'trunk' into stu-1525-add-curl-installer
bcotrim 1490d7c
Merge branch 'trunk' into stu-1525-add-curl-installer
bcotrim 2d7dc87
Drop paths.test.ts per review feedback
bcotrim 0e3735c
Pass --experimental-wasm-jspi when spawning bundled CLI binary
bcotrim fbbf904
Revert --experimental-wasm-jspi on SEA binary: flag can't be enabled …
bcotrim 33b30aa
Drop unused --force-local tar flag (Windows bsdtar rejects it) and fi…
bcotrim a459ba0
Drive tar via stdio to avoid GNU tar mistaking 'C:' for a remote host
bcotrim b5bb876
Suggestion: build a single Vite file
fredrikekelund 9ae2662
Rework SEA assets: embed main.mjs raw, split resources and node_modul…
bcotrim e534c6b
Remove redundant node_modules symlink from dev vite config
bcotrim 95059d0
Update Windows launcher to detect bundled SEA binary
bcotrim 78802e7
Use CLI package.json version as bundle marker instead of asset hash
bcotrim 8880bdb
Download Node binary into bundle build dir instead of shipping bin/
bcotrim 03e42b4
Merge branch 'trunk' into stu-1525-add-curl-installer
bcotrim df0d165
Await writeStream close in wpress extractor to fix CI flake
bcotrim 1ffb582
Merge remote-tracking branch 'origin/trunk' into stu-1525-add-curl-in…
bcotrim 569bbae
Fix standalone CLI sidecar bundling
bcotrim ff77dfb
Update E2E CLI artifact verification
bcotrim 8f275ec
Merge trunk into stu-1525-add-curl-installer
bcotrim 6b83c0a
Verify packaged CLI binary in E2E
bcotrim f54a266
Run desktop CLI via the bundled binary and harden first-run extraction
bcotrim 8145e58
Merge remote-tracking branch 'origin/trunk' into stu-1525-add-curl-in…
bcotrim 83adda9
Fix CLI review findings: postinst binary, standalone coexistence, ato…
bcotrim 31d85f9
Treat external CLI as not app-managed; prevent partial/unverified CLI…
bcotrim daa3a09
Merge trunk into standalone CLI installer branch
bcotrim ea6055e
Merge trunk into standalone CLI installer branch
bcotrim 91b8534
Merge branch 'trunk' into stu-1525-add-curl-installer
bcotrim f53e2ef
Add explicit esbuild dev dependency
bcotrim 6ccd094
Merge remote-tracking branch 'origin/stu-1525-add-curl-installer' int…
bcotrim 7571a7b
Address standalone CLI installer review feedback
bcotrim 9eaa109
Merge branch 'trunk' into stu-1525-add-curl-installer
bcotrim 92d8bc7
Externalize zod in standalone CLI bundle
bcotrim b7db5e6
Merge remote-tracking branch 'origin/stu-1525-add-curl-installer' int…
bcotrim eb3ed7a
Dispatch internal CLI commands before the yargs pipeline
bcotrim af45e69
Only accept main.mjs as first non-flag argument in child-mode detection
bcotrim 4bad9d1
Report standalone CLI installs as installed on macOS and Linux
bcotrim 47cc350
Preserve unexpanded user PATH entries in install.ps1
bcotrim 8a15143
Declare require shim with var to fix dev CLI build
bcotrim 29a6a4f
Remove dead dev fallback path and align child start guard
bcotrim 49350b2
Merge trunk into stu-1525-add-curl-installer: port AI provider SDK pr…
bcotrim 01563f4
Merge branch 'trunk' into stu-1525-add-curl-installer
fredrikekelund 43f08a8
Rely on `module.builtinModules`
fredrikekelund bc7c7fb
Revert CLI bundling from Node SEA binary to bundled node + files
bcotrim 71a6483
Distribute standalone CLI as a tarball with bundled node and launcher…
bcotrim c3e76d0
Detect standalone CLI on Windows via launcher and bundled node
bcotrim ffcb203
Merge remote-tracking branch 'origin/trunk' into stu-1525-add-curl-in…
bcotrim e5343e9
Restore trunk files dropped by trunk merge resolution
bcotrim cebb9fc
Revert single-file CLI build and internal command consolidation
bcotrim 09fb44e
Drop explicit esbuild dev dependency restored transitively via @yao-p…
bcotrim a8a2748
Merge remote-tracking branch 'origin/trunk' into stu-1525-add-curl-in…
bcotrim 8f62553
Drop packaged CLI smoke from e2e script, desktop bundling is unchanged
bcotrim ff98eab
Reclaim broken studio symlinks instead of treating them as externally…
bcotrim aa03891
Parameterize chrome-sandbox removal with ARCH in e2e script
bcotrim ad285dd
Reuse desktop CLI launcher scripts for the standalone bundle
bcotrim f4cc7d4
Stop a running standalone CLI before reinstalling over it
bcotrim ccc9916
Import download-node-binary directly in the standalone bundle script
bcotrim e23ebc1
Document PowerShell execution-policy bypass for local install testing
bcotrim 15b1272
Merge branch 'trunk' into stu-1525-add-curl-installer
bcotrim File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,6 @@ | ||
| # Standalone CLI bundles | ||
| standalone-bundles/ | ||
|
|
||
| # Logs | ||
| logs | ||
| *.log | ||
|
|
||
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
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
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
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
Oops, something went wrong.
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.
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.
We can tackle this in a follow-up PR, but these changes will make it so the
Studio CLI for terminaltoggle in the app's settings modal is always enabled if the standalone CLI installed. If the user tries to uninstall it, it would silently fail.I'd argue the ideal behavior would be to disable the UI toggle when the CLI is externally managed.