Mason's bin/ directory contains a symlink to the actual wrapper script in packages/<name>/bin/. The wrapper used $(dirname "$0") which resolved to mason/bin/ (the symlink location), then ../src/main.lua pointed to mason/src/main.lua which doesn't exist. Use readlink -f to resolve the symlink first, so dirname points to packages/tia-lsp/bin/ and ../src/main.lua correctly resolves to packages/tia-lsp/src/main.lua.
26 lines
650 B
YAML
26 lines
650 B
YAML
---
|
|
name: tia-lsp
|
|
description: Language server for Siemens TIA Portal languages (SCL, with planned STL/AWL, LAD, FBD support).
|
|
homepage: https://gitea.l-tech.rs/lazar/tia-lsp
|
|
licenses:
|
|
- MIT
|
|
languages:
|
|
- SCL
|
|
categories:
|
|
- LSP
|
|
|
|
source:
|
|
id: pkg:generic/tia-lsp@0.1.0
|
|
build:
|
|
env:
|
|
VERSION: "{{version}}"
|
|
run: |
|
|
git clone --depth 1 --branch "v$VERSION" https://gitea.l-tech.rs/lazar/tia-lsp.git tia-lsp-src
|
|
cp -r tia-lsp-src/src ./src
|
|
mkdir -p bin
|
|
printf '#!/bin/bash\nexec lua "$(dirname "$(readlink -f "$0")")/../src/main.lua" "$@"\n' > bin/tia-lsp
|
|
chmod +x bin/tia-lsp
|
|
|
|
bin:
|
|
tia-lsp: bin/tia-lsp
|