-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlinglong.yaml
More file actions
33 lines (29 loc) · 1.18 KB
/
linglong.yaml
File metadata and controls
33 lines (29 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
version: "1"
package:
id: ai.opencode
name: OpenCode
version: 1.2.15.2
kind: app
description: |
OpenCode AI 是一款基于人工智能的智能编程助手,为开发者提供代码补全、代码生成、代码优化和问题解答等功能。它能够理解多种编程语言,帮助提高编程效率,减少重复性工作,让编程变得更加轻松高效。
command: [opencode]
base: org.deepin.base/25.2.1
# linglongdev 会自动执行 npm install --ignore-scripts
build: |
# 复制opencode到应用目录
cp -rv package-lock.json package.json /project/node_modules $PREFIX
# 安装nodejs
cd $PREFIX
tar --strip-components=1 --no-same-owner -xvf /project/linglong/sources/nodejs.tar.xz
npm rebuild
# 添加PATH
mkdir etc
echo "PATH=$PREFIX/node_modules/.bin:\$PATH" > etc/profile
# 无用的两个包会影响 ldd check
rm -r node_modules/opencode-linux-x64-musl || true
rm -r node_modules/opencode-linux-x64-baseline-musl || true
sources:
- kind: file
url: https://mirrors.tuna.tsinghua.edu.cn/nodejs-release/v24.0.2/node-v24.0.2-linux-x64.tar.xz
name: nodejs.tar.xz
digest: a5da53c8c184111afd324e1ed818c0fb23fe6f0a7d4583d47f41390dd389a027