Repository navigation
Add a Maiman App shortcut that opens the studio with Python alone - #15
Merged
Merged
Conversation
tools/make_shortcut.py creates a 'Maiman App' shortcut with the Maiman icon in the repository root (.lnk on Windows, .app on macOS, .desktop on Linux). It runs tools/maiman_app.py, which starts the server, opens the browser and shows a small window that stops Maiman when closed. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012i9fQs4fcLK2dH5RnusfA1
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.
Requested by Ehsan · project thread
Before: opening the studio by double-click needed Node.js and Electron (
start-studio.*), or typingmaiman serveand opening the URL by hand.After:
python tools/make_shortcut.pyonce puts a Maiman App shortcut with the Maiman icon in the repository root. Double-clicking it starts the server with that Python, opens the studio in the browser, and shows a small window whose Quit button (or closing it) stops Maiman.How:
tools/maiman_app.pycallsmaiman.server.serveon a free loopback port and keeps it alive behind a Tk window (falls back to Ctrl+C without Tk).tools/make_shortcut.pywrites a.lnk(Windows, via PowerShell, usespythonw), a.appbundle (macOS) or a.desktopfile (Linux); shortcuts hold absolute paths, so they are generated per machine and gitignored. Addsassets/icon.icoandassets/icon.icnsmade fromicon-512.png. Tested the Linux shortcut, the macOS bundle layout and the launcher serving/here; Windows.lnkcreation is untested.🤖 Generated with Claude Code
https://claude.ai/code/session_012i9fQs4fcLK2dH5RnusfA1
Generated by Claude Code