Conversion application
The ll-pica convert command is used to generate the linglong.yaml file required by Linglong.
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
-h, --help help for convert
--pi string package id
--pn string package name
-t, --type string get app type (default "local")
-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 Linglong 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- -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.
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_runtime.layer
│ ├── linglong
│ └── linglong.yaml
└── package.yamlLayer files are divided into two categories: runtime and develop. The runtime includes the application's execution environment, while the develop layer, built upon the runtime, retains the debugging environment.
Installing Layer Files and Running the Application Reference:Install Linglong Apps