Commit Graph

45 Commits

Author SHA1 Message Date
linxin 4635f07c6b feat: display build details in linglong.yaml
display build details in linglong.yaml for developer

Log:
2024-01-15 14:11:23 +08:00
linxin 0fb9e3bdfc feat: add transfer appimage to linglong
help ll-builder to build linglong package with appimage file
2024-01-02 21:24:09 +08:00
black-desk d08a9655f8
fix: update upgrade-all script
Signed-off-by: black-desk <me@black-desk.cn>
2023-12-28 17:20:26 +08:00
black-desk 9d00026b28
refact: use new config
Signed-off-by: black-desk <me@black-desk.cn>
2023-12-26 10:19:38 +08:00
Felix Yan 9a5bc3f147 chore: correct typos for "environment"
Log:
2023-11-14 16:41:40 +08:00
kamiyadm 0abb7d2796 chore: update example.yaml
Update some dependencies in example.yaml.

Log:
2023-10-17 18:52:16 +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 d84b935d65
build: remove unused CMAKE option
Signed-off-by: black-desk <me@black-desk.cn>
2023-09-19 17:28:30 +08:00
black-desk 03b41991ae fix(scripts): correct command
Signed-off-by: black-desk <me@black-desk.cn>
2023-09-13 18:14:03 +08:00
black-desk 302385a3ff fix(scripts): ignore error in xargs
Related: linuxdeepin/developer-center#5561
Signed-off-by: black-desk <me@black-desk.cn>
2023-09-11 09:48:18 +08:00
black-desk e1cf9a32ec fix: correct CMakeLists 2023-08-29 10:45:08 +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 a4d6511aef
chore: add SPDX-* comments to misc/*
Signed-off-by: black-desk <me@black-desk.cn>
2023-08-15 13:51:54 +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
Iceyer 6e51c51e95
feat: change confing.josn to config.yaml
- Use config.yaml to support multi repos, now support repo only

Signed-off-by: Iceyer <me@iceyer.net>
Signed-off-by: black-desk <me@black-desk.cn>
2023-08-15 13:51:14 +08:00
Iceyer d7747e581a
refact: change SystemHelper PackageManagerHelper
- Change SystemHelper to PackageMnanagerHelper for permisson control
- Update dbus introspect dtd file url

Signed-off-by: Iceyer <me@iceyer.net>
Change-Id: I2aecf702791d51847269549ea69bc2cf8644c779
Signed-off-by: black-desk <me@black-desk.cn>
2023-08-15 13:51:03 +08:00
Iceyer 2f96947321
feat: add FilesystemHelper for mount erofs
- Add FilesystemHelper with Mount/Umount. These method only process with
mountpoint in /run/user/{uid}/linglong

Signed-off-by: Iceyer <me@iceyer.net>
Change-Id: Iaababa2e68806398e796ee0ba96dcf5fbcbedfe3
Signed-off-by: black-desk <me@black-desk.cn>
2023-08-15 13:51:02 +08:00
kamiyadm 76d298ddcb fix: some file which is not ELF is also not stripped
-

Log:
2023-07-04 12:29:57 +08:00
chenhuixing 218b8160f8 feat(builder): support some build flags
We should export some build flags before the build begins.

Log:
2023-02-24 09:36:00 +08:00
Chen Linxuan fb170fd64f fix: do not chown LINGONG_ROOT if it has existed
We should not chown LINGONG_ROOT and LINGLONG_LOG_DIR if them has
existed.
2023-02-16 18:25:48 +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 4364210d70 build: configurable static strings at compile time
This commit make

- The username of which user runs the linglong package manager;
- The location of linglong package manager store its data files;
- The location of linglong package manager put its log.

configurable at compile time
2023-02-16 10:54:07 +08:00
Chen Linxuan 8f1c9d0aa7 fix: linglong -> deepin-linglong
Close #27

"linglong" will be a frequently-used name of chinese. Let's back to
"deepin-linglong".

This commit partly revert 4be58ef48b.
2023-02-15 22:56:01 +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 63c6f743df chore: update default config file
In code "repo" is used as the default repository, now we write it into
onfig file.
2023-02-15 19:45:59 +08:00
Chen Linxuan 46bf987aab fix: configure xdg desktop file
Make it respect CMAKE_INSTALL_BINDIR
2023-02-15 19:45:59 +08:00
Chen Linxuan b0bb61d5ae fix: configure systemd service files
Make it respect CMAKE_INSTALL_BINDIR
2023-02-15 19:45:59 +08:00
Chen Linxuan a0260cd0c5 fix: configure dbus service files
Make it respect CMAKE_INSTALL_BINDIR
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 234043a7ed refactor: remove LINGLONG_ROOT
There is no reason to keep linglong data in deepin v23 different from
other distributions.
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 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 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 128ee4581e chore: move shell profile to /misc
shell profiles are moved to /misc/profile
2023-02-15 19:45:59 +08:00
Chen Linxuan 3366ffc52d chore: move systemd env generator to /misc
systemd user env generator is moved to /misc/systemd/user-environment-generators
2023-02-15 19:45:59 +08:00
Chen Linxuan 5c45216b8e chore: move systemd service to /misc
systemd service files moved to /misc/systemd/service
2023-02-15 19:45:59 +08:00
Chen Linxuan d2339bb84f chore: move system-helper static files to /misc
ll-system-helper static files now moved to /misc
2023-02-15 19:45:59 +08:00
Chen Linxuan d437fb5140 chore: move service static files to /misc
ll-service static files are moved to the /misc.
2023-02-15 19:45:59 +08:00
Chen Linxuan 111a32e663 chore: move builder config to /misc
Now builder.yaml is placed under /misc/linglong
2023-02-15 19:45:59 +08:00
Chen Linxuan b51533e3a8 chore: move package manager static files to /misc
Now package manager static files are in /misc/systemd and /misc/dbus
2023-02-15 19:45:59 +08:00
Chen Linxuan 3b7e74d9fd chore: move cli bash_completion files to /misc
Now bash_completion files are under /misc/bash_completion
2023-02-15 19:45:59 +08:00
Chen Linxuan 3acc6edacf chore: move builder tempaltes to /misc
Now builder releated files are in /misc/builder-template
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