ship prebuilt ptyc in native/linux-x64/

Prebuilt ptyc binary sits alongside libtree-sitter.so in the
platform-specific native directory. Resolution order:
native/linux-x64/ptyc → ptyc/bin/ptyc → ~/.local/bin/ptyc → PATH.
Eliminates the make ptyc-build step on fresh clones.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-23 09:35:12 +02:00
co-authored by Claude Opus 4.6
parent db550d6829
commit 3e40eb6126
3 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ class _ToolStatusItemState extends State<ToolStatusItem> {
Future<void> _check() async {
final cwd = Directory.current.path;
final ptycResult = _exists('$cwd/ptyc/bin/ptyc') || await _which('ptyc');
final ptycResult = _exists('$cwd/native/linux-x64/ptyc') || _exists('$cwd/ptyc/bin/ptyc') || await _which('ptyc');
final pqlResult = await _which('pql');
if (!mounted) return;
setState(() {
+1
View File
@@ -154,6 +154,7 @@ Future<List<ThemeDefinition>> _loadBundledThemes() async {
/// catalogs load lazily on activate in later tiers.
String _resolvePtyc(String repoRoot) {
final candidates = [
'$repoRoot/native/linux-x64/ptyc',
'$repoRoot/ptyc/bin/ptyc',
'${Platform.environment['HOME']}/.local/bin/ptyc',
'ptyc',
BIN
View File
Binary file not shown.