Commit Graph

2297 Commits

Author SHA1 Message Date
ComixHe 53814760e8 fix(uab): use 'fusermount' to unmount erofs
Older versions of umount require root privileges

Signed-off-by: ComixHe <heyuming@deepin.org>
2024-12-24 17:47:57 +08:00
ComixHe 85cc8ea8ee build(uab): correct cmake file
Signed-off-by: ComixHe <heyuming@deepin.org>
2024-12-24 12:29:46 +08:00
ComixHe bf376d3dbc refactor: rewriting taskList
Signed-off-by: ComixHe <heyuming@deepin.org>
2024-12-24 12:29:46 +08:00
myml 6abd470586 feat: ll-builder supports import directory
ll-builder import命令支持传递目录, 这便于制作base和手动修改app
2024-12-24 09:37:44 +08:00
kamiyadm 5e0540eea5 fix: getOriginRawExec which in ostree.cpp occurs error
-

Log:
2024-12-23 14:43:36 +08:00
bluesky 6a8053540b chore: update test-linglong.sh
Update the test script, remove sudo authentication, and run it locally to pop up an authentication box

Log: update test script
2024-12-23 13:04:29 +08:00
myml cd11eaf1ea feat: optimize ll-cli prune command
无论是否存在未使用的runtime, 都清理一遍ostree仓库
2024-12-23 10:56:34 +08:00
kamiyadm 89bb6f0452 fix: incorrect mount of fonts in 90_legacy
-

Log:
2024-12-23 10:54:01 +08:00
kamiyadm 28329c2b76 fix: optimize error output under generateCache.
-

Log:
2024-12-23 10:54:01 +08:00
ComixHe 8cfc01f551 feat: mapping exec field while generating desktop file
Signed-off-by: ComixHe <heyuming@deepin.org>
2024-12-23 10:54:01 +08:00
kamiyadm 30495bbcdd feat: support rewrite some apps config files
Rewrite *.desktop/*.service/*.conf.

Log:
2024-12-23 10:54:01 +08:00
kamiyadm 1d8fcb948f feat: add new class GKeyFileWrapper
Wrap GKeyFile from glib which used for parsing ini-like config file.

Log:
2024-12-23 10:54:01 +08:00
myml 3ac393ad57 feat: cache generation failed when installing modules
安装modules时, 因为缓存文件已存在, 创建目录会失败
2024-12-23 10:45:40 +08:00
ComixHe 768828bac6 refactor(oci-gen): using outer json file to generate the patch content
Signed-off-by: ComixHe <heyuming@deepin.org>
2024-12-20 13:50:47 +08:00
myml 0b7d27fc0b fix: getRemoteModuleList for incompatibility with runtime modules
获取远程模块列表时, 应该考虑兼容旧版本的runtime modules
优化安装和升级流程, 只安装单个模块时, 不需要提前获取远程模块列表
2024-12-20 10:39:18 +08:00
bluesky 8d328d5595 chore: add faq
Add about the issue of not displaying the app tray after app startup

Log: add faq
2024-12-20 09:48:36 +08:00
myml 9c7ec8a352 fix: handling of DBus addresses with options
当DBus环境变量包含选项时, 玲珑没有正确处理
2024-12-20 09:48:12 +08:00
ComixHe 241b33e112 fix: correct mappingFile behavior
Signed-off-by: ComixHe <heyuming@deepin.org>
2024-12-19 18:36:09 +08:00
ComixHe bb25607b91 refactor(gen): change the way of uising generators
Signed-off-by: ComixHe <heyuming@deepin.org>
2024-12-19 18:21:01 +08:00
myml 5fa94f516f feat: update obs workflows
使用link_package会为每个commit创建包, 太占用存储空间, 仅保留最新一个即可
2024-12-19 16:31:45 +08:00
myml dda4cb3714 feat: update obs workflows
在合并PR后构建玲珑客户端
2024-12-19 15:46:47 +08:00
kamiyadm 06c55b1e70 fix: install app failed after it was cancled before
The job which the state is not Queued or has no job should be remove.

Log:
2024-12-19 10:17:53 +08:00
ComixHe bbd5df5c95 fix: skip some generating steps which related to env 'HOME'
Signed-off-by: ComixHe <heyuming@deepin.org>
2024-12-18 17:47:03 +08:00
myml df0a58926b fix: unable to install module
修复因合并代码导致的module功能异常
将module安装独立起来, 避免和binary安装混杂
2024-12-18 16:50:22 +08:00
kamiyadm 2ea8ce7232 fix: PM blocked in a cancled task
Set the runningTaskObjectPath before the next available
task start instead of after the last task finished.

Log:
2024-12-18 16:13:34 +08:00
myml 1792d8df18 fix: abnormal cursor size in wayland
DTK使用XCURSOR_SIZE环境变量设置鼠标尺寸
需要将该环境变量从宿主机传递到容器中
2024-12-18 16:10:56 +08:00
ComixHe a39015081c refactor(gen): make all generator as a static library
Signed-off-by: ComixHe <heyuming@deepin.org>
2024-12-18 15:28:04 +08:00
myml 090c9613eb fix: incorrect official website display in the DTK About dialog
dtk的关于对话框中显示的网址信息是从系统文件中读取的,
需要将宿主机的文件挂载到容器中, 才能正常显示

Bug: https://pms.uniontech.com/bug-view-282565.html
2024-12-16 13:17:36 +08:00
myml c195e81fc1 fix: old version of ll-cli cannot export the new package
旧版本玲珑不支持遍历entries/share目录中的软链接, 为保持兼容,
构建应用后不在entries/share目录创建软链接, 而是复制文件
2024-12-16 09:52:51 +08:00
dengbo11 846865937f docs: update docs
Update docs to release linglong.
2024-12-13 16:26:28 +08:00
ComixHe 4c5184d444 fix: QDesktopWidget is deprecated after Qt 6
Signed-off-by: ComixHe <heyuming@deepin.org>
2024-12-12 17:26:10 +08:00
kamiyadm a3412923a4 refactor: use ll-dialog when generate cache for apps
-

Log:
2024-12-12 17:26:10 +08:00
kamiyadm 101d22fbe7 fix: PM start container failed
* If the XDG_DATA_DIRS is not set, the dir that used for storage
  container state will fallback to /run/ll-box. deepin-linglong
  has no permission to create dir in /run, so we should specific
  a writable path to ll-box.
* Change Container::run(Process) to Container::run(Process, RunOption),
  we need to support specific run option.

Log:
2024-12-12 17:26:10 +08:00
kamiyadm 01babce152 fix: error message displayed when generating cache
If LINGLONG_SKIP_HOME_GENERATE is set, don't mount the home dir of host.

Log:
2024-12-12 17:26:10 +08:00
kamiyadm 42263b7072 fix: cannot run application after upgrade cli
* Add dbus method GenerateCache, signal GenerateCacheFinished. (PM)
* Add an exclusive write lock to the application cache in
  ensureCache to ensure that the container runs after the cache
  is generated. (cli)

Log:
2024-12-12 17:26:10 +08:00
kamiyadm b9d8199b71 fix: one of Prune() shoule be private member
-

Log:
2024-12-12 17:26:10 +08:00
kamiyadm 824a49990b fix: ll-builder also need to generate some cache
* In the build stage, create the cache directory in
  workdir and mount it to /run/linglong/cache. Then
  generate ld.so.cache in the hook.
* In the run stage, mount the cache dirctory and generate
  both the ld.so.cache and font cache.

Log:
2024-12-12 17:26:10 +08:00
kamiyadm 5085249328 fix: need support hooks when creating container
-

Log:
2024-12-12 17:26:10 +08:00
kamiyadm a9b7d836bb refactor: no need to pullDependency during ll-builder run
-

Log:
2024-12-12 17:26:10 +08:00
kamiyadm 429bd1cc7c refactor: adjust some cache generation and usage behaviors
The caches that have been processed are ld.so.cache and font cache.

Code:
 * Add a new member ContainerBuilder to PackageManager. (package_manager)
 * Add a new scripts to gererate cache in container. (ld-cache-generator/font-cache-generator)
 * Add new func generateCache() to execute app-cache-generator. (pacakge_manager)
 * Add new func removeCache() to remove cache. (package_manager)
 * Mount the cache during running application. (cli)

Mount:(host->container)
 * Remove /var/cache/fontconfig -> /var/cache/fontconfig
 * Add /usr/local/share/fonts -> /usr/local/share/fonts
 * Add /var/lib/linglong/cache/[hash] -> /run/linglong/cache
 * Add /var/lib/linglong/cache/[hash]/fontconfig -> /var/cache/fontconfig

Config: (config.json)
 * Remove the hooks part.
 * Change env LINGLONG_LD_SO_CACHE to /run/linglong/cache/ld.so.cache.

Log:
2024-12-12 17:26:10 +08:00
ComixHe 644c0c4c48 refactor(uab): remove dependency 'libelf'
implement needed functions in light_elf

Signed-off-by: ComixHe <heyuming@deepin.org>
2024-12-12 15:03:04 +08:00
kamiyadm 5682152a1d feat: add new dialog to show cache generation
-

Log:
2024-12-11 15:05:26 +08:00
ComixHe 8cc28c1dad chore: update deian install file
Signed-off-by: ComixHe <heyuming@deepin.org>
2024-12-10 20:45:20 +08:00
ComixHe d2e37dc5cf feat: add permission dialog
Signed-off-by: ComixHe <heyuming@deepin.org>
2024-12-10 18:13:49 +08:00
kamiyadm f58cd1ffd5 fix: the canceled task would be Queued again
If a task which is queued before has been canceled,
it should not be update to Queued.

Log:
2024-12-10 16:22:37 +08:00
kamiyadm 600c657baa fix: print invalid task when the task is queued
The initial State in the cli is Unknown, and the initial
State of PackageTask is Queued. When a new task enters and
queues, PM will update the State of task to Queued, but the
State has not actually changed at this time.
After receiving the PropertyChanged signal, and the cli will
not update the states from Unknown to Queued. Then the cli finds
that its State is Unknown, so it prints invalid task.

Log
2024-12-10 16:22:37 +08:00
kamiyadm 6ecb60f98b refactor: check permission by method Permissions
Add new method Permissions to PM.

Log:
2024-12-10 16:22:37 +08:00
kamiyadm c6cde14474 fix: wrong upgrade prompt
The 'Please restart ...' staff should not be displayed when the app is not running.

Log:
2024-12-10 15:46:42 +08:00
kamiyadm 92d7f6cdd5 fix: PM crashed during adding new jobs
-

Log:
2024-12-09 18:02:06 +08:00
kamiyadm 40515978ed fix: add task execution log
-

Log:
2024-12-09 18:02:06 +08:00