Commit Graph

2321 Commits

Author SHA1 Message Date
ComixHe ee164d5f64 chore: update linyaps-box to 2.0.2
Signed-off-by: ComixHe <ComixHe1895@outlook.com>
2025-07-16 15:48:53 +08:00
reddevillg a07c17b654 fix: clean sources directory on every build
Signed-off-by: reddevillg <reddevillg@gmail.com>
2025-07-16 15:48:53 +08:00
reddevillg 39dcd0b581 fix: add rbind option alongside copy-symlink
Signed-off-by: reddevillg <reddevillg@gmail.com>
2025-07-16 15:48:53 +08:00
reddevillg b5dabe595c fix: fix compiler error on nlohmann_json 3.9.1
Signed-off-by: reddevillg <reddevillg@gmail.com>
2025-07-16 15:48:53 +08:00
reddevillg 3ad59a3bf0 fix: fix compiler on gcc-8
Signed-off-by: reddevillg <reddevillg@gmail.com>
2025-07-16 15:48:53 +08:00
reddevillg 82d2037a55 fix: Set LINGLONG_LD_SO_CACHE for compatibility
Signed-off-by: reddevillg <reddevillg@gmail.com>
2025-07-16 15:48:53 +08:00
ComixHe 45c10e766d chore: update linyaps-box
Signed-off-by: ComixHe <ComixHe1895@outlook.com>
2025-07-16 15:48:53 +08:00
reddevillg bd74af25ae fix: check directory existence before creation
create_directories may fail with an error code if the destination is a
symbolic link to a directory.

Signed-off-by: reddevillg <reddevillg@gmail.com>
2025-07-16 15:48:53 +08:00
ComixHe 7b31dd82cc fix(uab): set mount option 'rw' while generating config
Signed-off-by: ComixHe <ComixHe1895@outlook.com>
2025-07-16 15:48:53 +08:00
reddevillg d9e1e9cd15 fix: treat /etc/localtime as fixed mount node
Signed-off-by: reddevillg <reddevillg@gmail.com>
2025-07-08 14:49:12 +08:00
myml 1f25cfc3b0 refactor: simplify environment variable handling in systemd generator
1. Removed debug logging code that was checking for script readability
2. Changed from direct export to echo output for systemd environment
handling
3. Simplified the logic by removing redundant checks since systemd
generators expect echo output
4. The change aligns better with systemd's environment generator
expectations where variables should be echoed rather than exported
directly

refactor: 简化 systemd 生成器中的环境变量处理

1. 移除了检查脚本可读性的调试日志代码
2. 将直接导出改为 echo 输出以适配 systemd 环境处理
3. 通过移除冗余检查简化了逻辑,因为 systemd 生成器期望 echo 输出
4. 此变更更符合 systemd 环境生成器的预期,变量应该通过 echo 输出而非直接
导出
2025-07-08 14:49:12 +08:00
myml 3d10b81429 fix: skip rewrite for files with a single hard link
为了兼容上个版本直接对source进行重写,这里需要判断原始文件的硬链接数
如果硬链接数为1,则说明原始文件重写过了,就跳过重写
因为多次重写会导致应用出问题
2025-07-04 14:57:11 +08:00
dengbo 214988c3ac chore: remove unused file
Remove 90_legacy.cpp.
2025-07-04 14:57:11 +08:00
ComixHe dd79e38949 fix: remove setsid from dumb-init
The pts inside the current container are inherited from outside

Signed-off-by: ComixHe <ComixHe1895@outlook.com>
2025-07-02 15:39:44 +08:00
dengbo c82b8a5ff9 fix: the context menu of the file manager displays abnormally
Add optional file suffix filtering to exportDir, ensures only files matching the specified suffix are processed.
2025-07-02 10:51:03 +08:00
reddevillg 2b1dc8879c fix: Isolate app-specific patches in dedicated directories
Previously, app-specific patches were identified by matching the patch
filename (without the extension) against the application ID. This
approach was flawed as it caused patch conflicts between different
applications. For example, a patch named `com.app.A.json`, intended
only for `com.app.A`, would be incorrectly applied as a global patch
to `com.app.B`.

This commit introduces a directory-based mechanism to correctly isolate
application-specific patches. All patches for a specific app must now
reside within a subdirectory named after the app ID.

Signed-off-by: reddevillg <reddevillg@gmail.com>
2025-07-02 10:51:03 +08:00
reddevillg 0149c3cb77 fix: ensure correct localtime and resolv.conf mounting
Mounting may fail if the file types differed between the build layer and
host (e.g., regular file vs. symbolic link).

Implemented solution through two approaches
1. Build phase: Proactively remove /etc/localtime and /etc/resolv.conf
   from base layer during overlayfs preparation to prevent conflicts
   with host.
2. Container configuration: Introduced dedicated buildMountLocalTime
   and buildNetworkConf methods to handle timezone and resolv.conf
   mounts, with enableSelfAdjustingMount properly managing these cases.

Signed-off-by: reddevillg <reddevillg@gmail.com>
2025-07-02 10:51:03 +08:00
myml 2606b26217 fix: invert condition in filterPackageInfosByType
invert condition in filterPackageInfosByType to correctly filter package types
2025-07-02 10:51:03 +08:00
reddevillg 476946b63d fix: copy hidden files
see issue #1246

Signed-off-by: reddevillg <reddevillg@gmail.com>
2025-07-02 10:51:03 +08:00
reddevillg c111b38c69 fix: improve ld.so.cache validation and regeneration
- Add content-based validation for ld.so.conf to detect layer path
  changes
- Include configuration sources hash in ld.so.conf for validation
- In PackageManager GenerateCache always generate cache,
  tryGenerateCache will skip it if cache directory exists
- use memcpy in sha256 to avoid unaligned visit

This ensures that ld.so.cache is properly regenerated when the
underlying layer configuration changes, preventing stale cache issues.

Signed-off-by: reddevillg <reddevillg@gmail.com>
2025-07-02 10:51:03 +08:00
transifex-integration[bot] e845ff87ed [linyaps] Updates for project Linyaps (#1241)
* i18n: Translate po/en_US.po in pt_BR

93% of minimum 50% translated source file: 'po/en_US.po'
on 'pt_BR'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate po/en_US.po in pt_BR

95% of minimum 50% translated source file: 'po/en_US.po'
on 'pt_BR'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate po/en_US.po in pt_BR

95% of minimum 50% translated source file: 'po/en_US.po'
on 'pt_BR'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate po/en_US.po in pt_BR

100% translated source file: 'po/en_US.po'
on 'pt_BR'.

---------

Co-authored-by: transifex-integration[bot] <43880903+transifex-integration[bot]@users.noreply.github.com>
2025-07-02 10:51:03 +08:00
ComixHe 0bd4bb270a fix: add missing header
Signed-off-by: ComixHe <ComixHe1895@outlook.com>
2025-07-02 10:51:03 +08:00
ComixHe c431ac0602 refactor: some scripts that export env 'XDG_DATA_DIRS'
Signed-off-by: ComixHe <ComixHe1895@outlook.com>
2025-07-02 10:51:03 +08:00
Felix Yan ac960854e8 fix: don't hardcode libexec dir
Use `CMAKE_INSTALL_FULL_LIBEXECDIR` so that setting `CMAKE_INSTALL_LIBEXECDIR` changes `LIBEXEC_LINGLONG_DIR` accordingly.
2025-07-02 10:51:03 +08:00
reddevillg 7ecb38f429 fix: fix compiler error when use CPM nlohmann
Signed-off-by: reddevillg <reddevillg@gmail.com>
2025-06-20 18:15:10 +08:00
reddevillg 13e7061526 fix: correctly pass argument by vector
use quoteBashArg if run with bash -c or write to bash script.

Signed-off-by: reddevillg <reddevillg@gmail.com>
2025-06-20 18:15:10 +08:00
myml 3f690ff252 feat: add PackageInfoDisplay schema and update related components
在ll-cli list --json中添加install_time字段,用于表示包的安装时间
2025-06-20 14:54:51 +08:00
reddevillg af9af89c85 fix: fix build failure caused by removed file
Signed-off-by: reddevillg <reddevillg@gmail.com>
2025-06-20 14:54:51 +08:00
reddevillg ca9afbdc63 fix: generate ld cache before builder run
Signed-off-by: reddevillg <reddevillg@gmail.com>
2025-06-20 14:54:51 +08:00
reddevillg 5203e92111 fix: remove unused old config
Signed-off-by: reddevillg <reddevillg@gmail.com>
2025-06-20 14:54:51 +08:00
reddevillg 45e482b7f1 fix: Correctly quote arguments in container entrypoint script
This change introduces a quoting mechanism (`quoteArg`) that:
1. Encloses each argument in single quotes.
2. Escapes embedded single quotes within an argument (e.g., `it's`
   becomes `'it'\''s'`).
This ensures that arguments are passed to the `exec` command
in the entrypoint script as single, intact units, even if they
contain spaces or single quotes.

Signed-off-by: reddevillg <reddevillg@gmail.com>
2025-06-20 14:54:51 +08:00
transifex-integration[bot] 6962bb15fd i18n: Translate po/en_US.po in uk (#1224) 2025-06-19 15:55:46 +08:00
ice909 8e867156c2 fix: prevent crash in prune command after loop exit
Added missing return statements after loop.exit() calls in the prune
command
to prevent function execution from continuing after exit is called. This
fixes a crash that occurred when the function continued executing code
after
requesting the event loop to exit, potentially accessing invalid memory.
2025-06-19 15:55:46 +08:00
myml c4038b6bbc fix: handle renaming and copying of non-original linyaps files in exportDir
Updated the exportDir function to rename source files to include a ".linyaps.original" suffix if they are not already named as such, ensuring proper handling during the export process. This change prevents overwriting original files and maintains compatibility with existing export logic.
2025-06-17 21:00:07 +08:00
dengbo 98165a3912 fix: failed to export XDG_DATA_DIRS enviroment
Path "/usr/local/share:/usr/share" must be set when XDG_DATA_DIRS is
empty.
2025-06-16 15:23:00 +08:00
dengbo be762e3311 fix: dock application icons will lose when upgrading components
If have a custom desktop export directory, you need to ensure compatibility and export the desktop files to both the old and new directories.
2025-06-16 15:23:00 +08:00
dengbo 83c75cdc4b chore: revert LINGLONG_EXPORT_VERSION
Revert LINGLONG_EXPORT_VERSION and do not fix export dirs.
2025-06-13 18:42:58 +08:00
myml 783bff6956 fix: update size type to int64_t and initialize struct stat in UABPackager and Builder
Changed the size type from int to int64_t in both Builder and UABPackager to ensure proper handling of larger values. Additionally, initialized struct stat variables to improve code clarity and maintainability.
2025-06-13 18:42:58 +08:00
dengbo 29be0294c7 fix: failed to export uab use com.uniontech.foundation
Adds support for recognizing com.uniontech.foundation.
2025-06-13 11:18:35 +08:00
dengbo a6fde49e93 feat: add sub directory to prevent export file conflicts
Add sub directory using item commit to prevent export file conflicts.
2025-06-13 11:18:25 +08:00
transifex-integration[bot] ef66dce864
[linyaps] Updates for project Linyaps (#1216)
* i18n: Translate po/en_US.po in pl

96% of minimum 50% translated source file: 'po/en_US.po'
on 'pl'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate po/en_US.po in pl

97% of minimum 50% translated source file: 'po/en_US.po'
on 'pl'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate po/en_US.po in pl

98% of minimum 50% translated source file: 'po/en_US.po'
on 'pl'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate po/en_US.po in pl

98% of minimum 50% translated source file: 'po/en_US.po'
on 'pl'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate po/en_US.po in pl

98% of minimum 50% translated source file: 'po/en_US.po'
on 'pl'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate po/en_US.po in pl

99% of minimum 50% translated source file: 'po/en_US.po'
on 'pl'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate po/en_US.po in pl

100% translated source file: 'po/en_US.po'
on 'pl'.

* i18n: Translate po/en_US.po in pl

100% translated source file: 'po/en_US.po'
on 'pl'.

---------

Co-authored-by: transifex-integration[bot] <43880903+transifex-integration[bot]@users.noreply.github.com>
2025-06-13 09:56:46 +08:00
transifex-integration[bot] 355ea9d268
[linyaps] Updates for project Linyaps (#1209)
* i18n: Translate po/en_US.po in es

93% of minimum 50% translated source file: 'po/en_US.po'
on 'es'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate po/en_US.po in ca

93% of minimum 50% translated source file: 'po/en_US.po'
on 'ca'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate po/en_US.po in pt_BR

93% of minimum 50% translated source file: 'po/en_US.po'
on 'pt_BR'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate po/en_US.po in fi

93% of minimum 50% translated source file: 'po/en_US.po'
on 'fi'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate po/en_US.po in en_GB

75% of minimum 50% translated source file: 'po/en_US.po'
on 'en_GB'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate po/en_US.po in sq

77% of minimum 50% translated source file: 'po/en_US.po'
on 'sq'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate po/en_US.po in pl

93% of minimum 50% translated source file: 'po/en_US.po'
on 'pl'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate po/en_US.po in uk

93% of minimum 50% translated source file: 'po/en_US.po'
on 'uk'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate po/en_US.po in zh_CN

93% of minimum 50% translated source file: 'po/en_US.po'
on 'zh_CN'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate po/en_US.po in ca

98% of minimum 50% translated source file: 'po/en_US.po'
on 'ca'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate po/en_US.po in ca

100% translated source file: 'po/en_US.po'
on 'ca'.

* i18n: Translate po/en_US.po in fi

95% of minimum 50% translated source file: 'po/en_US.po'
on 'fi'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate po/en_US.po in fi

97% of minimum 50% translated source file: 'po/en_US.po'
on 'fi'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate po/en_US.po in fi

98% of minimum 50% translated source file: 'po/en_US.po'
on 'fi'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate po/en_US.po in fi

100% translated source file: 'po/en_US.po'
on 'fi'.

* i18n: Translate po/en_US.po in zh_CN

94% of minimum 50% translated source file: 'po/en_US.po'
on 'zh_CN'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate po/en_US.po in zh_CN

94% of minimum 50% translated source file: 'po/en_US.po'
on 'zh_CN'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate po/en_US.po in zh_CN

95% of minimum 50% translated source file: 'po/en_US.po'
on 'zh_CN'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate po/en_US.po in zh_CN

97% of minimum 50% translated source file: 'po/en_US.po'
on 'zh_CN'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate po/en_US.po in zh_CN

99% of minimum 50% translated source file: 'po/en_US.po'
on 'zh_CN'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate po/en_US.po in zh_CN

100% translated source file: 'po/en_US.po'
on 'zh_CN'.

* i18n: Translate po/en_US.po in es

96% of minimum 50% translated source file: 'po/en_US.po'
on 'es'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate po/en_US.po in es

98% of minimum 50% translated source file: 'po/en_US.po'
on 'es'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate po/en_US.po in es

100% translated source file: 'po/en_US.po'
on 'es'.

---------

Co-authored-by: transifex-integration[bot] <43880903+transifex-integration[bot]@users.noreply.github.com>
2025-06-12 09:36:41 +08:00
ComixHe bab96b9d4e fix: building failed when using Qt5
Signed-off-by: ComixHe <ComixHe1895@outlook.com>
2025-06-11 16:47:37 +08:00
dengbo 62baa65f89 fix: add MIPS-specific compiler flag to avoid GOT overflow
MIPS architecture and globally applies the `-mxgot` flag to
compiler settings to address potential GOT overflow issues caused by
the architecture's strict limitations on GOT size.
2025-06-11 16:37:23 +08:00
ComixHe 67aff2635e fix: correct the way of exporting only-app UAB
Signed-off-by: ComixHe <ComixHe1895@outlook.com>
2025-06-11 16:37:05 +08:00
ComixHe 053fe005c5 chore: update linglong.yaml
Signed-off-by: ComixHe <ComixHe1895@outlook.com>
2025-06-11 16:37:05 +08:00
ComixHe 2615ac3525 refactor: remove all generators
Signed-off-by: ComixHe <ComixHe1895@outlook.com>
2025-06-11 16:37:05 +08:00
reddevillg d8a3191d2f fix: Preserve host's HOME env in container.
1. Ensure container HOME env matches the host environment exactly, we
   rely on it before support portal well.
2. remove /run/udev bind, udev database path and file across different
   versions are not guaranteed to be compatible.
3. add all_proxy env to defulat forward list.

Signed-off-by: reddevillg <reddevillg@gmail.com>
2025-06-10 18:15:35 +08:00
ice909 627eb6721e fix: correct translation key in po/en_US.po
Signed-off-by: ice909 <gaochang1@uniontech.com>
2025-06-10 14:40:31 +08:00
ice909 728d6e610e chore: update i18n files
Signed-off-by: ice909 <gaochang1@uniontech.com>
2025-06-09 15:22:11 +08:00