Conversion application
The ll-pica convert command is used to generate the linglong.yaml file required by linyaps.
View the help information for the ll-cli convert command:
ll-pica convert --helpHere is the output:
Convert deb to uab
Usage:
ll-pica convert [flags]
Flags:
-b, --build build linglong
-c, --config string config file
--exportFile string export uab or layer (default "uab")
-h, --help help for convert
--pi string package id
--pn string package name
-t, --type string get app type (default "local")
--withDep Add dependency tree
-w, --workdir string work directory
Global Flags:
-V, --verbose verbose outputTranslation: After executing the ll-pica init -w w --pi com.baidu.baidunetdisk --pn com.baidu.baidunetdisk -t repo command
We only need to execute the command ll-pica convert -w w -b to convert the linyaps application. Here, we will use the apt download command to download the deb package named com.baidu.baidunetdisk.
ll-pica convert -c com.baidu.baidunetdisk_4.17.7_amd64.deb -w work -bTIP
Here, the apt download command is used to download the deb package; however, the process may fail due to the deb package being excessively large or issues with obtaining the link. It is recommended to use the following command instead. If you use the following command directly, there is no need to execute the command ll-pica init -w w --pi com.baidu.baidunetdisk --pn com.baidu.baidunetdisk -t repo.
apt download com.baidu.baidunetdiskll-pica convert -c com.baidu.baidunetdisk_4.17.7_amd64.deb -w w -b --exportFile layer- -w working directory。
- -c The configuration method employed here utilizes deb files.
- -b It indicates that a build is required; without adding this parameter, neither building nor exporting the layer file will take place.
- --exportFile layer exports the output as a layer file. If you want to export a uab file, use --exportFile uab.
The constructed products are as follows:
├── package
│ └── com.baidu.baidunetdisk
│ ├── com.baidu.baidunetdisk_4.17.7.0_x86_64_develop.layer
│ ├── com.baidu.baidunetdisk_4.17.7.0_x86_64_binary.layer
or
│ ├── com.baidu.baidunetdisk_x86_64_4.17.7.0_main.uab
└── package.yamlLayer files are divided into two categories: binary and develop. The binary includes the application's execution environment, while the develop layer, built upon the binary, retains the debugging environment.
The uab file is an offline distribution format used by the linyaps software package, which is not suitable for systems that can normally connect to the linyaps repository. Instead, one should utilize the delta transfer scheme provided by the linyaps software repository to reduce the network transmission size.
Installing Layer Files and Running the Application Reference:Install linyaps Apps