Commit Graph

2297 Commits

Author SHA1 Message Date
ComixHe caf8886ed4 fix: container root must exist at the declared path
Signed-off-by: ComixHe <heyuming@deepin.org>
2025-03-05 10:52:04 +08:00
dengbo11 4c66ed5a85 feat(cli): ll-cli add dir sub command
ll-cli add dir sub command to support get layer director by appid.
2025-03-04 09:59:10 +08:00
myml 2805551ec7 feat: use getLayerDir when exporting
导出entires时不需要获取modules目录
2025-03-04 09:53:43 +08:00
ice909 6eb10ec317 fix: ostree config doesn't have the correct update
When adding and removing a repository, ostree's repo config isn't updated.
2025-03-03 21:22:37 +08:00
ice909 59d5af4116 feat: optimizing cli output
Optimize ps and list --upgrade's output.
2025-02-28 11:44:00 +08:00
reddevillg 3a08a6f794 fix: Fix export empty app layer
Fix export empty app layer
2025-02-27 20:32:12 +08:00
myml 52720d5fc8 fix: builder does not use the channel field of linglong.yaml
构建工具未使用linglong.yaml的channel字段

Log:
2025-02-27 20:31:33 +08:00
ComixHe d7cea3443a refactor: optimize starting container
Signed-off-by: ComixHe <heyuming@deepin.org>
2025-02-27 19:42:27 +08:00
reddevillg ba59b2239e fix: Dont't mapping the file under /home
Fix some applications can't write to files or delete files under home
directory
2025-02-27 19:22:08 +08:00
dengbo 37a7dff992 chore: remove packaging directory
Remove packaging directory.
2025-02-27 17:54:46 +08:00
dengbo 34da329288 fix: rewrite file error
Should use complete base name rather than base name.
2025-02-27 16:16:42 +08:00
reddevillg 90518c1765 fix: ll-bulder build dependent on fuse-overlay
Add Depends fuse-overlay
2025-02-27 15:48:29 +08:00
dengbo cbebd39881 fix: app can not start by laucher
Parameter("-- --") parsing error when exec not have field codes.
2025-02-27 14:29:35 +08:00
reddevillg 60c5ba8740 feat: Introduce export UAB option --loader
Option --loader=<app_loader> can be used to run app without container
involved. With custom loader, only app's layer will be exported. When
custom loader get started, environment variable LINGLONG_UAB_APPROOT
is the app directory.
2025-02-27 14:28:19 +08:00
ice909 860c7b4813 fix: enter command cannot enter the container
A previous change to ps caused this problem.
2025-02-26 13:34:56 +08:00
ice909 895a590848 chore: fix some compile warning
Fix some compile warning.
2025-02-26 11:42:58 +08:00
ice909 f7d4a15332 fix: upgrade exception when all packages are up to date
When all packages are up to date, the upgrade command does not automatically end

Issue: https://github.com/OpenAtom-Linyaps/linyaps/issues/1024
2025-02-26 11:03:05 +08:00
ice909 3f72c3c879 test: add unit test for repo config
test getRepoMinPriority
test getRepoMaxPriority
test convertToV2
2025-02-25 19:22:32 +08:00
ice909 c8d3330c9c feat: add priority to the repo config
The default priority for the stable repository is 0.
When adding a new repository, its priority will be set to the current minimum priority minus 100.
If the new repository is set as the default repository, its priority will be set to the current maximum priority plus 100.
Added the set-priority subcommand to allow manual specification of priorities (duplicates are not allowed).
2025-02-25 14:23:22 +08:00
dengbo fae28f069a fix: uab icon display abnormality
Update generic-icon to universal-application-bundle.
2025-02-24 20:31:35 +08:00
reddevillg f26e6e5046 feat: ll-builder support install package via apt
Provide "build depends" and "depends" for apt build extension, build
phase seperate into build phase and prepare phase. "build depends"
to be installed in build environment before build phase starting, and
preserve in overlayfs. "depends" to be installed in prepare phase, and
will be merged to apps output.
2025-02-24 20:28:37 +08:00
ice909 02f64f65b2 feat: add command automatic completion for zsh
ll-cli in zsh supports automatic completion.
2025-02-24 14:28:40 +08:00
ComixHe 959ce460c9 fix: add marco to test SIGSTKFLT
Signed-off-by: ComixHe <heyuming@deepin.org>
2025-02-21 17:52:24 +08:00
ComixHe 0ad39c8ac0 refactor: change the way to detect machine architecture
Signed-off-by: ComixHe <heyuming@deepin.org>
2025-02-21 17:28:40 +08:00
dengbo 4f20d6cd67 fix: can not start app normally when there are extra parameters
add "--" to abort parameter parsing, the first "--" to abort COMMAND
option parsing, the second "--" will abort ll-cli run command parametor
parsing.
2025-02-21 17:11:27 +08:00
bluesky ec7f6d8337 chore: update docs
Update the documentation related to the sources field

Log: update docs
2025-02-21 17:10:22 +08:00
ComixHe 98e4db453b fix: resolve the real path of interpreter
Signed-off-by: ComixHe <heyuming@deepin.org>
2025-02-21 13:34:26 +08:00
dengbo d2b6725953 fix: can not save file to media
/media is symlink(/run/media) in v25, app can not access the dir
so we should mount /media, /run/media to container and keep symlink.
2025-02-21 09:51:50 +08:00
ice909 d7edc532c5 chore: update translate
Update translate.
2025-02-20 17:57:17 +08:00
dengbo dff3a32258 feat: add mips64 arch
Add mips64 arch support.
2025-02-20 17:53:12 +08:00
reddevillg e4531af995 fix: Fix missing header
Fix compiler error on deepin v20 from source:
error: ‘bindtextdomain’ was not declared in this scope
error: ‘textdomain’ was not declared in this scope
2025-02-20 14:59:36 +08:00
ice909 0283ea34f4 fix: ll-cli outputs --help info instead of --help-all
This commit ensures that `ll-cli` now outputs the standard `--help` information when no arguments are provided, aligning with common CLI conventions.
The `--help-all` option remains available for users who need expanded details.
2025-02-20 14:09:12 +08:00
ice909 8e83788ec4 fix: search results show confusion
Unable to calculate the maximum width for each column because some appid and appname are too long, which would cause output to be messy.
2025-02-20 10:53:07 +08:00
ice909 e5c3654583 feat: `ll-cli ps` output to display only AppID in the App field
Previously, the `App` field in the `ll-cli ps` command output displayed the full package name (e.g., `main:org.dde.calendar/5.14.7.3/x86_64`).
This has been updated to display only the AppID portion (e.g., `org.dde.calendar`).
2025-02-19 18:14:46 +08:00
dengbo f02112810a fix: org.deepin.manual can not find documentation for other self-developed applications
Use relative path instead of an absolute path to create symlink.
2025-02-19 18:14:16 +08:00
dengbo b46466af43 fix: ostree repo config permission error
Do not update ostree repo config when open ostree repo,otherwise it will cause repo config permission error
and only supports updating ostree repositories through ll-cli repo command.
2025-02-19 18:13:25 +08:00
ice909 fa51411213 feat: add translations for all titles
ll-cli list and search remove arch field.
2025-02-19 16:51:54 +08:00
ice909 df0184c02c chore: output Title in uppercase
Adjust the uppercase of the output Title.
2025-02-19 16:51:54 +08:00
ComixHe f2610f9f9c refactor: use onlyapp to export uab by default
Signed-off-by: ComixHe <heyuming@deepin.org>
2025-02-18 21:12:20 +08:00
ice909 3eabede8fd fix: use default repo name in pm and migration logic
Because defaultRepo is no longer a repo name.
2025-02-18 17:38:04 +08:00
ice909 1148261f8c fix: can't search after adding repo using alias
OSTree still uses defaultRepo, but defaultRepo has now become an alias.
2025-02-18 11:42:53 +08:00
ComixHe e8b8a7037b fix: correct the logic of finding repo
Signed-off-by: ComixHe <heyuming@deepin.org>
2025-02-18 11:01:57 +08:00
myml 0615abd96c fix: debug symbols not stripped from build artifacts
之前在剥离调试符号的脚本中尝试跳过被剥离的调试符号文件,
但因判断条件错误, 导致未剥离调试符号的二进制文件也被跳过
2025-02-18 10:16:37 +08:00
ice909 990b690d93 fix: missing environment variables for uab run
This commit allows uab to run directly without detecting linglong.
2025-02-18 09:16:55 +08:00
ice909 8a2f5f57e3 fix: resolve "Invalid cross-device link" error during UAB export
If the project directory and ~/.cache/linglong-builder are not on the same device (file system), exporting the UAB cannot create hard links and can only copy files.

issue: https://github.com/OpenAtom-Linyaps/linyaps/issues/811
2025-02-18 09:16:55 +08:00
ice909 ae7beb907f feat: filter search results to show only latest versions by default
Added a new `--all` flag to the search command to display all versions of packages.
By default, search results will only show the latest version of each package.
2025-02-13 20:56:31 +08:00
ice909 4b3fed1f00 feat: add --alias option for repo add
Add the --alias option to set aliases for the 'll-cli repo add' and 'll-builder repo add' commands.

So update, remove, and set-default also need to pass alias instead of name.
2025-02-13 20:29:24 +08:00
ComixHe 2338f78008 fix: compiling failed with Qt5
Signed-off-by: ComixHe <heyuming@deepin.org>
2025-02-13 17:43:15 +08:00
ComixHe 93cc7251ff fix(ll-builder): generating ld config at run/build
Signed-off-by: ComixHe <heyuming@deepin.org>
2025-02-12 18:11:02 +08:00
ComixHe a233980823 feat: support kill container by specific signal
Signed-off-by: ComixHe <heyuming@deepin.org>
2025-02-12 16:23:05 +08:00