Commit Graph

50 Commits

Author SHA1 Message Date
kamiyadm ea147e73b3 fix: move ll-package-manager to /usr/libexec/linglong
close: https://github.com/linuxdeepin/linglong/issues/460

Log:
2024-05-30 17:17:57 +08:00
kamiyadm 63c721b614 feat: support ll-cli content
New subcommand to display the exported files.

Log:
2024-04-28 11:43:33 +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
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
ComixHe b72ecefa93 refactor(package_manager): install and upgrade
* use dbus signal to notify cli download progress
  * support cancel downloading manually
  * use eventloop instead of threadpool

Signed-off-by: ComixHe <heyuming@deepin.org>
2024-03-15 18:00:42 +08:00
myml 319f2db592 feat: Check if crun exists
检查crun是否存在,如果不存在打印提示

Log:
2024-02-29 02:31:26 +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
black-desk 3595a15382
chore: remove ll-service
Signed-off-by: black-desk <me@black-desk.cn>
2024-02-01 18:21:27 +08:00
myml 648d09d4c5 feat: Support using run and build
使用支持oci标准的crun替换ll-box

Log:
2024-01-26 13:28:33 +08:00
black-desk 4c96d3a3bd
chore: keep QDBUS_DEBUG while exec ll pkg manager
It make debug --no-dbus mode easier.

Signed-off-by: black-desk <me@black-desk.cn>
2024-01-12 15:24:41 +08:00
black-desk c00575da7f
fix(cli): compatiable with old --exec
continue 92f60891b2

Related: linuxdeepin/developer-center#6636
Related: linuxdeepin/developer-center#6736
Signed-off-by: black-desk <me@black-desk.cn>
2024-01-04 15:42:55 +08:00
black-desk 68dcc268d0
chore: force log to stderr with --no-dbus
Signed-off-by: black-desk <me@black-desk.cn>
2024-01-04 15:31:25 +08:00
black-desk e3a46e5e6b
fix: correct dbus address for p2p mode
Old location has permission issue.

Signed-off-by: black-desk <me@black-desk.cn>
2024-01-04 15:31:24 +08:00
black-desk 92f60891b2
fix(cli): handle old run --exec arguments
Signed-off-by: black-desk <me@black-desk.cn>
2023-12-28 13:25:22 +08:00
kamiyadm c8a68af3c8 feat: support the operation of print info from layer
Print info from layer with ll-cli info <layer path>.

Log:
2023-12-22 14:53:26 +08:00
black-desk c834125382 fix: use Qt::QueuedConnection
Signed-off-by: black-desk <me@black-desk.cn>
2023-11-15 09:50:10 +08:00
black-desk e9393e9e3b refact: remove pkg manager in ll-cli
use p2p dbus to call method from package_manager in ll-cli.
2023-11-13 01:01:23 +08:00
black-desk eb60cfbb80 refact: do not inject pkgManImpl
Run package manager directly in ll-cli is just a workaround.
Check comment for later refact note.
2023-11-13 01:01:23 +08:00
black-desk 45934ed095 chore: add version marco
add LINGLONG_VERSION
2023-11-13 01:01:23 +08:00
black-desk 2a7d840879 style(cli): use anonymous namespace
use namespace instead of static
2023-11-13 01:01:23 +08:00
black-desk f441040403 refact: refactory cli and its test
1. use pImpl for error;
2. remove factory template;
3. use gmock;
4. remove command helper class.
2023-11-13 01:01:23 +08:00
linxin 6712e3fc43 feat: add ll-cli command test
add ll-cli test

Log: add test
2023-11-13 01:01:23 +08:00
linxin ae2ab9850c reface: add json output
add the type of data output by json

Log: add data output type
Issue:
2023-11-13 01:01:23 +08:00
linxin abcfb26eda refact: parser dbus proxy parameter
parse the dbus proxy config data from json file

Log: change the method of obtainning dbus proxy parameter
2023-11-13 01:01:23 +08:00
black-desk ee54a2edc0 refact(cli): early return
Signed-off-by: black-desk <me@black-desk.cn>
2023-11-13 01:01:23 +08:00
black-desk 2cca37b841 chore: remove unused comment
Signed-off-by: black-desk <me@black-desk.cn>
2023-11-13 01:01:23 +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
linxin 6aed2a2b6c refact: ll-cli command parser implement
use docopt lib to replace Qt command line parser lib

Log: change command line parser implement
Issues:
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 ac5d7bc795
refact: remove unneed function
Signed-off-by: black-desk <me@black-desk.cn>
2023-10-11 10:40:36 +08:00
black-desk b07e3ea778
refact: remove private class of package mangaer
Signed-off-by: Chen Linxuan <me@black-desk.cn>
2023-09-28 14:03:13 +08:00
black-desk dba8b94795
refact: remove private class of app_manager
- remove private class of app_manager
- remove singleton base of app_manager

Signed-off-by: Chen Linxuan <me@black-desk.cn>
2023-09-28 14:03:12 +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
black-desk 995446c82a format: run clang-format on ll-cli
Signed-off-by: black-desk <me@black-desk.cn>
2023-09-05 15:12:26 +08:00
black-desk 814ea55b17 format: remove extra spaces
Signed-off-by: black-desk <me@black-desk.cn>
2023-09-05 15:11:23 +08:00
hpdqddsy f712e0655f refact: unify addOptions()
Unify all `addOption()` and `addOptions()` in `ll-cli`.
2023-09-05 15:10:08 +08:00
hpdqddsy 58e227b675 refact: refactor if clause
Refactor an if clause. Just a test.
2023-09-05 15:10:08 +08:00
black-desk c023e00dd5
fix(cli): correct the default repo name
When we update the config.json in LINGLONG_ROOT
to config.yaml
at commit 6e51c51e95,
we also update the default local repo name
in default configuration file
to "deepin".

But we didn't update the default value of
command line argument "--name" of
command `ll-cli repo modify`,
which make that command failed
when "--name" argument is not provided.

This commit update the default value of
"--name" to "deepin".

Signed-off-by: black-desk <me@black-desk.cn>
2023-08-17 23:23:12 +08:00
black-desk 23be7f5f7d
build: mv package_manager adaptor to linglong/adaptors
Signed-off-by: black-desk <me@black-desk.cn>
2023-08-15 13:52:08 +08:00
black-desk 0771d23402
build: mv app_manager adaptor to linglong/adaptors
Signed-off-by: black-desk <me@black-desk.cn>
2023-08-15 13:52:07 +08:00
black-desk 5ec0ebf3fc
build: mv linglong/api/v1/dbus/{interfaces,}
Signed-off-by: black-desk <me@black-desk.cn>
2023-08-15 13:52:06 +08:00
black-desk 9c603411ec
build: move generated dbus interface codes to api/v1/dbus/interfaces
Signed-off-by: black-desk <me@black-desk.cn>
2023-08-15 13:52:03 +08:00
black-desk e450e6b671
refact!: add version numbver to dbus interface
Signed-off-by: black-desk <me@black-desk.cn>
2023-08-15 13:52:02 +08:00
black-desk 4e67f8e3f3
build: add SPDX-* comments to CMakeLists.txt
Signed-off-by: black-desk <me@black-desk.cn>
2023-08-15 13:51:51 +08:00
black-desk dbd427f6ee
build: move module/* to src/linglong
Signed-off-by: black-desk <me@black-desk.cn>
2023-08-15 13:51:46 +08:00
black-desk 60e1bdcbcc
build: move service to src/linglong
Signed-off-by: black-desk <me@black-desk.cn>
2023-08-15 13:51:45 +08:00
black-desk 54f9648be1
build: move package_manager to src/linglong
Signed-off-by: black-desk <me@black-desk.cn>
2023-08-15 13:51:44 +08:00
black-desk 1eb6e12073
refact: change llpkg into a shell script
Signed-off-by: black-desk <me@black-desk.cn>
2023-08-15 13:51:39 +08:00
black-desk d0807308e6
build: move ll-cli to apps
Signed-off-by: black-desk <me@black-desk.cn>
2023-08-15 13:51:38 +08:00