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:
@@ -24,7 +24,7 @@ class _ToolStatusItemState extends State<ToolStatusItem> {
|
|||||||
|
|
||||||
Future<void> _check() async {
|
Future<void> _check() async {
|
||||||
final cwd = Directory.current.path;
|
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');
|
final pqlResult = await _which('pql');
|
||||||
if (!mounted) return;
|
if (!mounted) return;
|
||||||
setState(() {
|
setState(() {
|
||||||
|
|||||||
@@ -154,6 +154,7 @@ Future<List<ThemeDefinition>> _loadBundledThemes() async {
|
|||||||
/// catalogs load lazily on activate in later tiers.
|
/// catalogs load lazily on activate in later tiers.
|
||||||
String _resolvePtyc(String repoRoot) {
|
String _resolvePtyc(String repoRoot) {
|
||||||
final candidates = [
|
final candidates = [
|
||||||
|
'$repoRoot/native/linux-x64/ptyc',
|
||||||
'$repoRoot/ptyc/bin/ptyc',
|
'$repoRoot/ptyc/bin/ptyc',
|
||||||
'${Platform.environment['HOME']}/.local/bin/ptyc',
|
'${Platform.environment['HOME']}/.local/bin/ptyc',
|
||||||
'ptyc',
|
'ptyc',
|
||||||
|
|||||||
Executable
BIN
Binary file not shown.
Reference in New Issue
Block a user