Commit Graph

55 Commits

Author SHA1 Message Date
myml bf8489cfc9 feat: Create dedicated client for HTTP requests
使用单独的client发送http请求, 避免请求结果混淆

Log:
2024-06-14 09:42:52 +08:00
myml dd8f95fb0c fix: builder log redirection losing error message
日志重定向会导致应用检测到非tty环境, 关闭stderr日志输出
builder强制开启非tty环境的终端日志输出

Log:
2024-06-07 11:24:37 +08:00
myml 8fbc7b9034 feat: ll-builder allows manual linglong.yaml selection
ll-builder添加-f参数用于手动选择非当前目录下的linglong.yaml

Log:
2024-06-06 16:04:40 +08:00
myml eb40e28ccd feat: add offline parameter to ll-builder run
ll-builder run添加offline参数,便于测试本地的Runtime

Log:
2024-05-31 11:25:06 +08:00
dengbo 2aa0e267df fix: ll-build failed to convert appimage
linglong.yaml must have command and base option when convert

Log:
2024-05-27 16:38:19 +08:00
kamiyadm 9200d6e635 refactor: ll-builder create
Generate linglong.yaml from example.yaml.
close: https://github.com/linuxdeepin/linglong/issues/448

Log:
2024-05-22 11:03:09 +08:00
kamiyadm 5d2dbcbc83 fix: the linglong.yaml after ll-builder create is readonly
1. fix the typo.
2. set the permission to 0644 if the templateFile is not exits.

Log:
2024-05-20 17:06:34 +08:00
myml a2a3c90e5c feat: ll-builder support skip run container
builder支持跳过容器运行(构建), 用于只下载源码和依赖的时候使用

Log:
2024-04-29 07:02:48 +00:00
kamiyadm 5ee9227cfb fix(ll-builder): update help tips
* remove unneeded options.
* update "--exec <exec>" to "--exec <command>"
* add "extract" and "import" to subcommand.

Log:
2024-04-29 10:13:41 +08:00
kamiyadm 613dbad577 fix(ll-builder): failed to show help without linglong.yaml
-

Log:
2024-04-29 10:13:41 +08:00
black-desk 7203890c12 chore: move ll-builder user config location
Signed-off-by: black-desk <me@black-desk.cn>
2024-04-22 13:44:07 +08:00
black-desk 570a0d562a chore: enable info logging and deprecate builder -v
Signed-off-by: black-desk <me@black-desk.cn>
2024-04-22 13:44:07 +08:00
black-desk bbda931b9b feat: allow set the oci runtime via env variable
1. Introduce LINGLONG_DEFAULT_OCI_RUNTIME cmake option to set the
   default oci runtime cli used by linglong;
2. Allow override oci runtime by set env variable LINGLONG_OCI_RUNTIME.

Signed-off-by: black-desk <me@black-desk.cn>
2024-04-18 11:11:56 +08:00
myml 119422e12a feat: ll-builder add the 'skip-pull-depend' param
build支持跳过拉取依赖的过程,便于在离线场景使用

Log:
2024-04-15 17:34:18 +08:00
myml 39f51f8f9d feat: ll-builder adds system environment variables
构建添加一些默认的环境变量,
支持rootfs在 /etc/profile.d 添加自定义环境变量

Log:
2024-04-12 10:30:19 +08:00
kamiyadm 00dad48d69 fix: using 'develop' as the module name
-

Log:
2024-04-09 14:14:31 +08:00
myml 40de7dacea fix: source fetch error
修复源码拉取错误
源码应该存放在linglong/sources的子目录

Log:
2024-04-09 10:21:46 +08:00
kamiyadm dc79e0f0a1 fix(ll-builder): init config.yaml failed
The dir which is the prefix of config.yaml should be created first.

Log:
2024-04-08 21:17:36 +08:00
myml 06b20ad74b fix: ll-build build error
修复多个会导致构建失败的错误

Log:
2024-04-08 06:44:37 +00:00
myml 8ce1b1a18e feat: make the 'sources' field optional
现在会固定将项目文件及映射到容器中, 不再需要写local
sources也就不再是必选项

Log:
2024-04-02 14:29:56 +08:00
black-desk ee364e3007 refact: all API types use quicktype
1. Update dbus interface xml files to
   use QVariantMap as parameters and response;

2. Add api/schema/v1.yaml to generate all API types;

3. Remove qserializer.

Signed-off-by: black-desk <me@black-desk.cn>
2024-04-01 17:05:32 +08:00
myml 7e8931c869 feat: export support arch parameter
export命令支持arch参数
build支持指定base架构
清理注释的代码

Log:
2024-03-22 00:59:57 +08:00
myml 146c6435dc feat: support skip commit output
构建支持跳过commit output, 跳过source fetch
便于快速调试

Log:
2024-03-21 09:34:00 +08:00
kamiyadm 8886992552 refactor: make source to a list and rename to sources
-

Log:
2024-03-12 08:03:41 +00:00
black-desk 3ec42da2f7
refact: new error wrapping macros
Signed-off-by: black-desk <me@black-desk.cn>
2024-03-06 10:48:25 +08:00
myml 42ea62fd0a feat: split the build function
拆分build函数, 使构建逻辑更清晰

Log:
2024-03-05 06:01:06 +00:00
myml 82b4f1f8b6 feat: builder support set environment variables using command args
build支持使用命令行参数设置环境变量

Log:
2024-03-04 17:57:26 +08:00
dengbo f64c4ed593 feat: appimage support url convert
support appimage url and hash to convert to linglong .layer(.uab)

gog:
2024-03-04 07:58:03 +00:00
dengbo f0332800c2 feat: Refactor appimage convert features
to export linglong.layer(.uab) according to
the user-specified appimage package parameters

Log:
2024-03-04 06:21:02 +00:00
myml 319f2db592 feat: Check if crun exists
检查crun是否存在,如果不存在打印提示

Log:
2024-02-29 02:31:26 +00:00
myml fe9e7ec754 feat: buildArch uses host arch by default
buildArch默认使用主机的架构
修复builder run架构为空的问题

Log:
2024-02-29 01:48:29 +00:00
black-desk 3903d7cfef
fix: update PFL.cmake
Signed-off-by: black-desk <me@black-desk.cn>
2024-02-22 10:56:59 +08:00
kamiyadm 3842522fb8 feat(ll-builder): start support cross compilation
This is just a start.
2024-02-04 16:05:01 +08:00
myml 648d09d4c5 feat: Support using run and build
使用支持oci标准的crun替换ll-box

Log:
2024-01-26 13:28:33 +08:00
myml c7ed7622fa
feat: ll-builder uses AppManager to run applications
ll-builder使用AppManager运行应用, 避免开发测试和实际运行不一致

Log:
2024-01-24 13:44:05 +08:00
kamiyadm 526bf28644 feat: support extract the layer
-

Log:
2024-01-15 15:14:26 +08:00
kamiyadm b099a20d83 fix: push failed because of timeout
set timeout to 10 min.

Log:
2024-01-15 15:14:26 +08:00
kamiyadm 26c0bdf1a3 feat: add some function for print text in console
-

Log:
2024-01-15 15:14:26 +08:00
kamiyadm b663c7eab2 fix: QT_LOGGING_RULES doesn't work in ll-builder
QT_LOGGING_RULES should be set before QCoreApplication.

Log:
2024-01-15 15:14:26 +08:00
linxin 0fb9e3bdfc feat: add transfer appimage to linglong
help ll-builder to build linglong package with appimage file
2024-01-02 21:24:09 +08:00
myml 108726d634 feat: ll-builder uses new default channel to push application
ll-builder使用新默认channel推送应用

Log:
2023-12-29 15:31:53 +08:00
myml e5be1cea15 feat: Use util::fromYAML in builder
使用 fromYAML 读取 linglong 文件
之前的方法有解析失败的情况

Log:
2023-12-28 17:34:40 +08:00
black-desk 9d00026b28
refact: use new config
Signed-off-by: black-desk <me@black-desk.cn>
2023-12-26 10:19:38 +08:00
kamiyadm b5f4ed8dbd feat: support the operation of import layer
Import layer with ll-builder import <layer path>.

Log:
2023-12-22 09:53:33 +08:00
kamiyadm e30deed8b5 feat: support the operation of export layer
Export layer with ll-builer export <dir>.

Log:
2023-12-21 17:01:29 +08:00
black-desk 5d71e0861f refact: inject repo::RepoClient
Signed-off-by: black-desk <me@black-desk.cn>
2023-11-29 11:35:35 +08:00
black-desk ef80f995a9 refact: make all exec command as QStringList
Signed-off-by: black-desk <me@black-desk.cn>
2023-11-13 01:01:23 +08:00
black-desk ee1dece0a3
style: run clang-format on all files
Signed-off-by: black-desk <me@black-desk.cn>
2023-10-13 22:41:07 +08:00
black-desk 9ada065677
build: refact build process
- update cmake-format config;
- using PFL.cmake (https://github.com/black-desk/PFL.cmake);
- using CPM.cmake (https://github.com/cpm-cmake/CPM.cmake).

Signed-off-by: black-desk <me@black-desk.cn>
2023-10-11 13:35:51 +08:00
black-desk 2eee362db8
feat: use journald to logging
- introduce the new utils/global module for holding functions using
  everywhere;
- add qt message handler for logging to journald;
- add -DQT_MESSAGELOGCONTEXT for enabling source location of log.

Signed-off-by: black-desk <me@black-desk.cn>
2023-09-25 14:07:31 +08:00