дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-11-08 19:02:17 +02:00
Adds Install/Uninstall 'openidea' Command actions. macOS uses the bundle launcher, Windows a user PATH wrapper and named pipe, and Linux the executable/AppImage path with a PATH hint. Files, folders, positions and `diff` go to the running app or start it. Closes #1286 Co-authored-by: jaw52 <[email protected]>
14 рядки
418 B
Bash
Виконуваний файл
14 рядки
418 B
Bash
Виконуваний файл
#!/bin/sh
|
|
# The `openidea` command, linked onto PATH by "Install 'openidea' Command".
|
|
# Runs the app executable of this bundle in CLI mode (src-tauri/src/cli.rs).
|
|
self=$0
|
|
while [ -L "$self" ]; do
|
|
link=$(readlink "$self")
|
|
case $link in
|
|
/*) self=$link ;;
|
|
*) self=$(dirname "$self")/$link ;;
|
|
esac
|
|
done
|
|
contents=$(cd "$(dirname "$self")/../.." && pwd -P) || exit 1
|
|
exec "$contents/MacOS/openidea" --cli "$@"
|