Commit Graph

1717 Commits

Author SHA1 Message Date
bluesky 105ba70cf0 feat: add session-helper
新增 session-helper 模块,用来做用户级服务调用,目前先新增文件监视的功能,给后续 ll-cli 监视配置文件的修改移动到 /run/user/$uid/linglong/monitor

Issue: https://github.com/linuxdeepin/developer-center/issues/8989
Log: add session-helper
2024-06-26 17:06:12 +08:00
ComixHe 95ac7e9525 refactor: InstallTask
Signed-off-by: ComixHe <heyuming@deepin.org>
2024-06-26 13:51:22 +08:00
kamiyadm 42319396b4 fix: update bash completion
fix https://github.com/linuxdeepin/developer-center/issues/9382

Log:
2024-06-26 13:15:55 +08:00
dengbo a6e370d262 chore: bump version to 1.5.6-1
release 1.5.6-1

Log: bump version to 1.5.6-1
2024-06-25 11:15:50 +08:00
ComixHe 3d1d04ada6 feat: beginning support for installing from uab file
Signed-off-by: ComixHe <heyuming@deepin.org>
2024-06-24 11:01:29 +08:00
ComixHe 5f8fccdef2 feat: ignore minified files when exporting layer and uab
Signed-off-by: ComixHe <heyuming@deepin.org>
2024-06-24 11:01:29 +08:00
ComixHe e4acf15319 feat: add 'MinifiedInfo' to api
extending the concept of LayerDir

Signed-off-by: ComixHe <heyuming@deepin.org>
2024-06-21 17:53:28 +08:00
dengbo 6a0e8b039f fix: failed to package linglong in uos1071
std::filesystem can not been declared in uos, so we need to add filesystem header

Log:
2024-06-21 17:06:14 +08:00
ComixHe 4370745c93 build: link libzstd.a to uab-header due to libcrypto.a needs it
Signed-off-by: ComixHe <heyuming@deepin.org>
2024-06-21 14:34:12 +08:00
ComixHe e057f5a694 build: link libcrypto.a to uab-header
Signed-off-by: ComixHe <heyuming@deepin.org>
2024-06-21 14:17:51 +08:00
ComixHe a42c4dc9f1 refactor: cli command 'install'
Signed-off-by: ComixHe <heyuming@deepin.org>
2024-06-21 13:40:00 +08:00
ComixHe 21a1451a0b refactor: optimize uab-header
- add a fallback for XDG_RUNTIME_DIR
 - increasing buffer size to 4096
 - passing errno to elf_errmsg
 - check EAGAIN during reading from file

Signed-off-by: ComixHe <heyuming@deepin.org>
2024-06-21 13:40:00 +08:00
kamiyadm 879ace5b49 fix: fix a warning during build deb
* Rename ENABLE_UAB_HEADER to ENABLE_UAB.
* If ENABLE_UAB is not set, do not build uab-loader.

Log:
2024-06-20 17:41:01 +08:00
kamiyadm 037ff5b6bd chore: update bash completion of ll-cli
Support completion of install layer file.

Log:"
2024-06-20 16:41:33 +08:00
dengbo 1fe1c100a7 fix: layer size error when export layer repeatedly
if layer file exist, we must remove it before export it, or layer will overlay

Log:
2024-06-20 16:17:36 +08:00
kamiyadm 9eabcb2105 fix: missed some env during ll-builer build
We should append the process.env which from Container::run to
the origin container config.

Log:
2024-06-20 16:04:49 +08:00
dengbo 3a7f05ca3d fix: deb package error
libzstd-dev is missing when deb package, add it

Log:
2024-06-20 15:34:08 +08:00
kamiyadm 2d2a54cf49 fix: missed some env variables when reusing container
* Save env variables to /run/user/1000/linglong/containerId/00env.sh
  and mount it to /etc/profile.d/00env.sh in container.
* Remove 'bash --login -c' from exec() of ll-box, we
  add it before .

Log:
2024-06-20 14:26:11 +08:00
dengbo fb4fc6f82d chore: debian rules install path error
debian rules install path error

Log:
2024-06-20 14:06:57 +08:00
ComixHe 88a047660f fix: include unistd.h directly in uab_packager.cpp
Signed-off-by: ComixHe <heyuming@deepin.org>
2024-06-20 11:29:19 +08:00
ComixHe f14d34b32b build: exclude uab files during installing process in rpm-based distros
Signed-off-by: ComixHe <heyuming@deepin.org>
2024-06-20 11:29:19 +08:00
kamiyadm ddea8b0667 refactor: add 25-host-env to generate env variables
Add new generator 25-host-env and use it.

Log:
2024-06-20 10:52:46 +08:00
black-desk c03e6de536 build: update preset
Remove address sanitize as it conflicts with static build

Signed-off-by: black-desk <me@black-desk.cn>
2024-06-19 16:51:30 +08:00
myml 0865484023 fix: builder did not exit when the build script failed
构建出错时, 玲珑没有返回错误

Log:
2024-06-19 16:50:16 +08:00
ComixHe ae8279374c feat: add option "--layer" for ll-builder to export layer
Signed-off-by: ComixHe <heyuming@deepin.org>
2024-06-19 16:37:41 +08:00
ComixHe 6fbfdc3ab7 build: add missing dependencies for rpm distros
Signed-off-by: ComixHe <heyuming@deepin.org>
2024-06-19 16:08:11 +08:00
ComixHe 1326fb0c0e feat: support export uab file
Signed-off-by: ComixHe <heyuming@deepin.org>
2024-06-19 16:08:11 +08:00
ComixHe a1257a5083 fix: create ll-host under tmpfs
Signed-off-by: ComixHe <heyuming@deepin.org>
2024-06-19 15:31:53 +08:00
ComixHe fb4ba0a4c3 refactor: checking some operations of ll-box are exectuing successfully or not
if someting goes wrong, return early

Signed-off-by: ComixHe <heyuming@deepin.org>
2024-06-19 15:31:53 +08:00
dengbo 5f496c5e0a feat: org.deepin.linglong.PackageManager add security check
org.deepin.linglong.PackageManager add Capability_Check, Cgroup_Check
and Polkit_Check, it only used to skip DBus security check, it will be removed later

Log:
2024-06-19 10:33:16 +08:00
dengbo 291b762ba4 fix: failed to run linglong app in ubuntu 24.04
ubuntu 24.04 has more limitation on unprivileged user namespace,so we have to disable them

Log:
2024-06-18 17:44:11 +08:00
myml c9d96bf627 fix: Using pointer to prevent object destruction
package manager应该使用指针类型的ClientFactory
避免对象在函数返回后被销毁

Log:
2024-06-18 14:57:34 +08:00
myml c2d00d62e6 feat: Use scripts to download sources instead
file和archive类型的source也改用脚本处理

Log:
2024-06-17 21:18:41 +08:00
myml 2e3da426f3 feat: Check the version number in advance
在构建应用时,如果版本号不符合规范会在最后的commit阶段报错
应该提前检查yaml文件是否符合规范

Log:
2024-06-17 13:18:45 +08:00
ComixHe 8d099eeda3 refactor: split target linglong::linglong into four parts
- linglong::linglong
 - linglong::utils
 - linglong::api
 - linglong::dbus-api

Signed-off-by: ComixHe <heyuming@deepin.org>
2024-06-17 11:04:45 +08:00
kamiyadm 7e1aa4a534 refactor: using 'binary' as one of the module
* Add ostreeSpecFromReferenceV2() which return
   a string with the 'binary' module.
* Add getLayerQDirV2() which use ostreeSpecFromReferenceV2()
* Always use 'binary' first and fallback to 'runtime'

Log:
2024-06-17 10:12:02 +08:00
myml bf9d84deb3 fix: dangling pointer issue by retaining shared_ptr
修复因未保活智能指针导致指针悬空的问题

Log:
2024-06-14 15:05:07 +08:00
myml bf8489cfc9 feat: Create dedicated client for HTTP requests
使用单独的client发送http请求, 避免请求结果混淆

Log:
2024-06-14 09:42:52 +08:00
kamiyadm 76c9989012 chore: add const to ref in Update() and print ref value
-

Log:
2024-06-13 17:23:38 +08:00
myml 80d3b53e0a feat: does not use temporary repository when pulling
ostree拉取数据时不再使用临时仓库, 这样在网络中断后可以续传

Log:
2024-06-13 10:37:43 +08:00
kamiyadm 6bb16ef955 fix: should not modify automatically generated code
Change schema_version to schemaVersion back.

Log:
2024-06-12 17:14:15 +08:00
ComixHe 15e4912007 build: uab-header is not built by default
Signed-off-by: ComixHe <heyuming@deepin.org>
2024-06-11 14:46:10 +08:00
ComixHe 8fd1efe593 fix: link static libelf to uab-header
Signed-off-by: ComixHe <heyuming@deepin.org>
2024-06-11 13:02:50 +08:00
kamiyadm 72c0a4e525 refactor: add PackageInfoV2 and use it
* The difference between PackageInfo and PackageInfoV2:
   PackageInfo    PackageInfoV2
   appid          -
   -              id
   -              infoVersion
* We use PackageInfoV2 now and PackageInfo will
  be converted to PackageInfoV2.

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

Log:
2024-06-07 11:24:37 +08:00
ComixHe edfbb6626c feat: add uab-header
Signed-off-by: ComixHe <heyuming@deepin.org>
2024-06-07 11:09:15 +08:00
ComixHe 15fe4dd236 feat: add UABMetaInfo to api
Signed-off-by: ComixHe <heyuming@deepin.org>
2024-06-07 09:41:12 +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 a2c66394e9 fix: builder did not exit when the build script failed
修复构建出错时, 玲珑没有正常的退出

Log:
2024-06-06 16:03:24 +08:00
dengbo 89194daf92 chore: fix example.yaml spell
fix example.yaml spell

Log:
2024-06-06 09:51:09 +08:00