Commit Graph

162 Commits

Author SHA1 Message Date
black-desk 03d95ab4ce
chore: bump version to 1.4.3-1
Signed-off-by: black-desk <me@black-desk.cn>
2024-01-23 17:00:56 +08:00
black-desk aa9837e0bb
chore: remove old xsession script
Related: linuxdeepin/developer-center#7033
Signed-off-by: black-desk <me@black-desk.cn>
2024-01-23 16:15:28 +08:00
black-desk cd3096419b
chore: replace linglong-dbus-proxy
Signed-off-by: black-desk <me@black-desk.cn>
2024-01-19 11:30:57 +08:00
kamiyadm 0160bf1299 chore: repolaces and conflicts linglong-dbus-proxy
We don't use linglong-dbus-proxy for now.

Log:
2024-01-19 11:27:32 +08:00
kamiyadm fa843121c7 chore: add erofsfuse to depends
We need use erofsfuse to handle the layer file.

Log:
2024-01-17 17:45:16 +08:00
black-desk 45bb62ff1e
chore: release 1.4.1-1
Signed-off-by: black-desk <me@black-desk.cn>
2024-01-12 15:24:45 +08:00
black-desk 3ab8ef2a03
fix: make a symbolink from old repo location
Default repository location moved from /persistent/linglong to
/var/lib/linglong.
I just move all files from old location to the new one,
but system helper export some files as symbolink
point to old /persistent/linglong location.
And it is hard to perform this in debian mantainer scripts,
as ll-system-helper do not has a portal record or something else.

I just make a symbolink from /persisten/linglong to /var/lib/linglong
to fix this issue.

So now when check symbolink created by system_helper,
we should use canonicalFilePath() to
get an absolute path without symbolic links.

Related: linuxdeepin/developer-center#6784
Signed-off-by: black-desk <me@black-desk.cn>
2024-01-08 15:29:35 +08:00
black-desk 7b1ece15a9
fix: enable dh_installsysusers
Signed-off-by: black-desk <me@black-desk.cn>
2024-01-08 15:13:23 +08:00
black-desk ad2482bb07
chore: release 1.4.0-1
Signed-off-by: black-desk <me@black-desk.cn>
2024-01-05 16:26:51 +08:00
black-desk f309518046
fix: update postinst script
Signed-off-by: black-desk <me@black-desk.cn>
2024-01-05 16:26:50 +08:00
black-desk 69c69c95a4
feat: add postinst for upgrade from 1.3.x
Signed-off-by: black-desk <me@black-desk.cn>
2024-01-02 17:30:46 +08:00
black-desk b09375b5c2 chore: add ostree as build deps
tests need ostree command to run

Signed-off-by: black-desk <me@black-desk.cn>
2023-12-12 13:27:57 +08:00
black-desk 309cef9ff1
refact: introduce new Reference
1. introduce new Reference to replace old Ref;
2. upgrade tl-expected to 1.1.0;
   https://github.com/TartanLlama/expected/issues/61

Signed-off-by: black-desk <me@black-desk.cn>
2023-11-16 15:43:36 +08:00
black-desk d568f31bd4 build: add missing build deps
We use gmock now.
2023-11-13 01:01:23 +08:00
black-desk 31e70f634e fix: add missing build depends
qt private header needed for qdbusxml2cpp
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 f57dbf6f30 build: add ocppi
Signed-off-by: black-desk <me@black-desk.cn>
2023-10-21 19:03:29 +08:00
black-desk 80be247be9
chore: update debian/rules
Signed-off-by: black-desk <me@black-desk.cn>
2023-10-11 22:11:31 +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 76b5a447f8
fix: typo in changelog
Signed-off-by: black-desk <me@black-desk.cn>
2023-10-11 10:40:37 +08:00
black-desk cc8465bd91
build: add tl::expected
- add tl::expected in CMakeLists.txt and debian/control;
- run wrap-and-sort.

Signed-off-by: black-desk <me@black-desk.cn>
2023-09-28 14:03:03 +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 e7cf35277f
feat: upgrade debian/compat to 12
Upgrade debian/compat to 12 to
let dh_installsystemduser auto enable and
start linglong-upgrade.timer and linglong-upgrade.service.

Signed-off-by: black-desk <me@black-desk.cn>
2023-09-06 14:20:09 +08:00
black-desk 80d983ea39 feat: initial implementation of upgrade tool
1. add a script upgrade-all;
2. add a systemd user timer linglong-upgrade.timer;
3. add a systemd user service linglong-upgrade.service;
4. split misc/systemd/service to user and system;
5. update debian *.install.

Signed-off-by: black-desk <me@black-desk.cn>
2023-08-28 18:42:35 +08:00
black-desk 6f723c9a38
chore(debian): adjust depends
Move linglong-loader to recommends of linglong-builder

Signed-off-by: black-desk <me@black-desk.cn>
2023-08-17 17:29:54 +08:00
black-desk aca1688ea2 chore: bump version to 1.4.0 UNRELEASED
Signed-off-by: black-desk <me@black-desk.cn>
2023-08-16 17:25:26 +08:00
black-desk 1f2fa92ecb chore(debian): adjust depends
Move linglong-dbus-proxy from depends of linglong-bin to recommends.

Signed-off-by: black-desk <me@black-desk.cn>
2023-08-16 17:11:27 +08:00
black-desk cdcc538fd5
fix: fix debian install file
7b7a3291 do not update debian/linglong-bin.install

Signed-off-by: black-desk <me@black-desk.cn>
2023-08-15 13:52:13 +08:00
Iceyer 3268e1ba47
refact: total remove old httpclient
- Remove curl
- Remove httpclient.h/httpclient.cpp

Signed-off-by: Iceyer <me@iceyer.net>
Signed-off-by: black-desk <me@black-desk.cn>
2023-08-15 13:51:05 +08:00
lihe f3eb8a1586
chore: fix some tiny issue for docs and depends
- update .gitignore for IDE.
- update README and INSTALL, fix markdownlint issue and spell mistake.
- remove libgdk-pixbuf2.0-dev.

Signed-off-by: lihe <lihe@uniontech.com>
Change-Id: I61e6586e6e91ccf7494f161f90ceb1a3ac3368a4
Signed-off-by: black-desk <me@black-desk.cn>
2023-08-15 13:50:49 +08:00
Chen Linxuan 6464896fce feat: ll-builder support project-wide config
- This commit make ll-builder support project-wide config.

  It will look for .linglong/builder/config.yml in the current
  directory and all the parent directories.

  If not found, it will search linglong/builder/config.yml in QT config
  paths.

  All above failed, it will use the default config we installed to
  CMAKE_INSTALL_DATADIR.

- This commit move builder templates install location as well.
2023-02-16 15:06:50 +08:00
Chen Linxuan ff353d8c41 refactor: use systemd to start AppManager
We can use systemd to start AppManager.

This commit remove the old configure files of autostart AppManager.
2023-02-15 19:45:59 +08:00
Chen Linxuan df12690a47 refactor: remove bash_completion for llpkg
It's ridiculous to just copy bash_completion of ll-cli then rename all
ll-cli to llpkg.
2023-02-15 19:45:59 +08:00
Chen Linxuan b5778d70c6 build: remove unused arguments in debian/rules
- APP_VERSION is not used by any one;
- CMAKE_BUILD_TYPE will be overrided by debian auto configure.
2023-02-15 19:45:59 +08:00
Chen Linxuan 4c2e5d2ea1 refactor: remove all debian scripts
We finally can remove all the debian maintainer scripts.
2023-02-15 19:45:59 +08:00
Chen Linxuan 5969bac379 fix: update default repo url
The default repo url is now set to https://mirror-repo-linglong.deepin.com/.
2023-02-15 19:45:59 +08:00
Chen Linxuan 2494c3faae refactor: do not create log dir in debian trigger.
We create log dir in create-linglong-dirs now.
2023-02-15 19:45:59 +08:00
Chen Linxuan 44ed89ebcb refactor: create llpkg symlink in CMakeLists
Void using debian/linglong-bin.links, as we can create symlink in
CMakeLists.
2023-02-15 19:45:59 +08:00
Chen Linxuan 4be58ef48b refactor: deepin-linglong -> linglong
This commit update systemd and dbus service files to use the system
user "linglong" created by systemd-sysuser, instead of the old
deepin-linglong user created in debian trigger.

Remove the scripts create deepin-linglong user as well.
2023-02-15 19:45:59 +08:00
Chen Linxuan dbefb9e1e5 refactor: create ostree repo in ll-package-manager
Now we create /var/lib/linglong and chown it to linglong user in
systemd service file. We add a script call create-linglong-dirs to do
this job.

As script might be installed to /usr/lib/linglong or
/usr/libexec/linglong. I just ignore the error.

Service files should be configured in cmake, let's fix this later.

OstreeRepoHelper has method ensureRepoEnv which will create the ostree
repo if it doesn't exist. This should be fine.

Update1: But we indeed have some codes open the ostree repo before call
OSTreeRepoHelper's ensureRepoEnv method. This commit include some quick
hack to fix this issue, which should be refactor later.

Update2: ensureRepoEnv use ostree_repo_new which does not create the
ostree repo if it not exist. This behavior is not match comment. So I
refactor this method to make it do the job it should have done.
2023-02-15 19:45:59 +08:00
Chen Linxuan ef2317f819 refactor: void copy config to LINGLONG_ROOT
If config is not found in LINGLONG_ROOT, we will use the one we
installed in CMAKE_INSTALL_DATADIR.

We should not copy it to LINGLONG_ROOT.

This design give us a way to findout the user is using the default
configuration or not, which make we easy to update the default
configuration file.
2023-02-15 19:45:59 +08:00
Chen Linxuan 78b52fb930 refactor: use env generator instead of profile
Remove shell profile scripts. Just use systemd user environment
generator should be fine.
2023-02-15 19:45:59 +08:00
Chen Linxuan b0e2220ea3 feat: add sysuser config file
This commit introduce the new /misc directory, which should contains
all the static files.

This commit just install a sysuser config file which will make systemd
create "linglong" user. The systemd and dbus service configuration
files will be updated later.
2023-02-15 19:45:59 +08:00
Chen Linxuan fb54819f15 chore: sort debian depends
Just sort the depends lines in debian/control
2023-02-15 19:45:59 +08:00
chenhuixing dd9b5c72ac fix: failed to run org.deepin.manual
use the exec parameter in the desktop file instead of the last value

Log:
2023-01-05 16:26:23 +08:00
WuJing 5d1a0648ec chore: bump version to 1.3.5-1
update version.

Log:
2022-12-27 10:27:57 +08:00
huqinghong 9a048ca296 chore: bump version to 1.3.4-1
update version.

Log:
2022-12-13 11:00:41 +08:00
huqinghong f38f2c384a refactor: builder支持任意仓库名
builder支持任意仓库名

Log:
2022-12-13 09:38:16 +08:00
WuJing 327b9dd9a5
chore: bump version to 1.3.3.23-1
Log:
2022-12-05 02:25:02 +00:00
WuJing cae05a9098
chore: bump version to 1.3.3.22-1
Log:
2022-11-25 15:37:31 +08:00