-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0447bfd
commit b1a3712
Showing
34 changed files
with
1,053 additions
and
172 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
## Add dependency | ||
|
||
Linglong applications may lack package dependencies, which can currently | ||
be addressed by adding the corresponding package dependencies in the `linglong.yaml` file. | ||
|
||
The `ll-pica adep` command is used to add package dependencies to the `linglong.yaml` file. | ||
|
||
View the help information for the `ll-cli adep` command: | ||
|
||
```bash | ||
ll-pica adep --help | ||
``` | ||
|
||
Here is the output: | ||
|
||
```bash | ||
Add dependency packages to linglong.yaml | ||
|
||
Usage: | ||
ll-pica adep [flags] | ||
|
||
Flags: | ||
-d, --deps string dependencies to be added, separator is ',' | ||
-h, --help help for adep | ||
-p, --path string path to linglong.yaml (default "linglong.yaml") | ||
|
||
Global Flags: | ||
-V, --verbose verbose output | ||
``` | ||
|
||
```bash | ||
ll-builder adep -d "dep1,dep2" -p /path/to/linglong.yaml | ||
``` | ||
|
||
If executing within the same path where the `linglong.yaml` file resides, there is no need to include the `-p` parameter. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
## 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: | ||
|
||
```bash | ||
ll-pica convert --help | ||
``` | ||
|
||
Here is the output: | ||
|
||
```bash | ||
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 output | ||
``` | ||
|
||
Translation: 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`. | ||
|
||
```bash | ||
ll-pica convert -c com.baidu.baidunetdisk_4.17.7_amd64.deb -w work -b | ||
``` | ||
|
||
:::tip | ||
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`. | ||
::: | ||
|
||
```bash | ||
apt download com.baidu.baidunetdisk | ||
``` | ||
|
||
```bash | ||
ll-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: | ||
|
||
```bash | ||
├── package | ||
│ └── com.baidu.baidunetdisk | ||
│ └── amd64 | ||
│ ├── 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.yaml | ||
``` | ||
|
||
Layer 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](../ll-cli/install.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# FAQ | ||
|
||
1. Where is the default configuration located for the `linglong.yaml` file generated by `ll-pica`? | ||
|
||
The configuration file for `ll-pica` is located at `~/.pica/config.json`. | ||
2. Does ll-pica fail to convert software such as Wine, Android apps, input methods, or security applications? | ||
|
||
Linglong applications currently do not support this type of application, and consequently, ll-pica cannot convert them either. | ||
3. Why is there no sound from software that requires audio? | ||
|
||
Prompt "libpulsecommon-12.2.so not found" can be addressed by adding a line in the `build` section of the linglong.yaml file: `mv $PREFIX/lib/$TRIPLET/pulseaudio/* $PREFIX/lib/$TRIPLET`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
# Initialization configuration | ||
|
||
The `ll-pica init` command is used to initialize the configuration information for the conversion package. | ||
|
||
View the help information for the `ll-cli init` command: | ||
|
||
```bash | ||
ll-pica init --help | ||
``` | ||
|
||
Here is the output: | ||
|
||
```bash | ||
init config template | ||
|
||
Usage: | ||
ll-pica init [flags] | ||
|
||
Flags: | ||
-a, --arch string runtime arch | ||
-c, --config string config file | ||
--dv string distribution Version | ||
-h, --help help for init | ||
--pi string package id | ||
--pn string package name | ||
-s, --source string runtime source | ||
-t, --type string get type | ||
-v, --version string runtime version | ||
-w, --workdir string work directory | ||
|
||
Global Flags: | ||
-V, --verbose verbose output | ||
``` | ||
|
||
The specific command as follows: | ||
|
||
```bash | ||
ll-pica init -w w --pi com.baidu.baidunetdisk --pn com.baidu.baidunetdisk -t repo | ||
``` | ||
|
||
- -w working directory | ||
- --pi specifies the appid used by the Linglong application. | ||
- --pn specifies the correct package name that apt can search for. | ||
- -t specifies the type to retrieve, `repo` fetches from the apt repository. | ||
|
||
The specific configuration is as follows: | ||
|
||
```bash | ||
runtime: | ||
version: 23.0.1 | ||
base_version: 23.0.0 | ||
source: https://community-packages.deepin.com/beige/ | ||
distro_version: beige | ||
arch: amd64 | ||
file: | ||
deb: | ||
- type: repo | ||
id: com.baidu.baidunetdisk | ||
name: com.baidu.baidunetdisk | ||
``` | ||
|
||
Detailed Field Reference: [Manifests](../manifests.md) | ||
|
||
:::tip | ||
The default configuration file `~/.pica/config.json` | ||
is set to use Deepin v23. If you need to specify UOS 20 as the BASE and | ||
RUNTIME, modify the default configuration using the following command. | ||
Please update the link below, [https://professional-packages.chinauos.com/desktop-professional](https://professional-packages.chinauos.com/desktop-professional), to a version that does not require authentication. | ||
::: | ||
|
||
```bash | ||
ll-pica init --rv "20.0.0" --bv "20.0.0" -s "https://professional-packages.chinauos.com/desktop-professional" --dv "eagle/1070" | ||
``` | ||
|
||
If it needs to be used on arm64, the default architecture needs to be modified. | ||
|
||
```bash | ||
ll-pica init -a "arm64" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# ll-pica Introduction | ||
|
||
This tool currently provides the capability to convert DEB packages into Linglong packages. Only software packages that comply with the app store packaging standards are supported for conversion. Packages related to Wine, Android emulators, input methods, and security software cannot be converted at this time. | ||
|
||
View the help information for the `ll-pica` command: | ||
|
||
```bash | ||
ll-pica --help | ||
``` | ||
|
||
Here is the output: | ||
|
||
```bash | ||
Convert the deb to uab. For example: | ||
Simple: | ||
ll-pica init -c package -w work-dir | ||
ll-pica convert -c package.yaml -w work-dir | ||
ll-pica help | ||
|
||
Usage: | ||
ll-pica [command] | ||
|
||
Available Commands: | ||
adep Add dependency packages to linglong.yaml | ||
convert Convert deb to uab | ||
help Help about any command | ||
init init config template | ||
|
||
Flags: | ||
-h, --help help for ll-pica | ||
-V, --verbose verbose output | ||
-v, --version version for ll-pica | ||
|
||
Use "ll-pica [command] --help" for more information about a command. | ||
``` |
Oops, something went wrong.