Update README.md

This commit is contained in:
Jun
2025-01-31 21:23:48 +08:00
committed by GitHub
parent 63d2614858
commit 730895da1f

View File

@@ -1,37 +1,57 @@
# Abstract
A convenient tool which can convert AppImage to Deb in [Deepin Standard](https://doc.chinauos.com/content/M7kCi3QB_uwzIp6HyF5J).
# 概述
一个方便的小工具,用来以[UOS/Deepin打包标准](https://doc.chinauos.com/content/M7kCi3QB_uwzIp6HyF5J)将 AppImage 文件转化为 deb 文件。
有 PyQt5 和 Zenity 两个版本。
在使用时,你需要以[UOS/Deepin打包标准](https://doc.chinauos.com/content/M7kCi3QB_uwzIp6HyF5J)输入必要参数。
你可以在[这里](https://appimage.github.io/apps/)找到你感兴趣的 AppImage 文件。
![ui](https://github.com/user-attachments/assets/2bea6e4a-6b95-4956-bf83-a5ab975038ca)
You should input the arguments in Deepin Standard.
Basically, the quality of the deb package you build based on the arguments you provided.
You can find AppImages to convert [here](https://appimage.github.io/apps/).
The program will not extract AppImages to make debs, it will use an original single AppImage file to make a deb.
# Dependencies
To run `main.py` successfully you should install `PyQt5`, you can use `conda` or `venv` to create a virtual environment to install `pyqt5`.
# 依赖
## PyQt5 版本
为了成功地运行 `main.py`,你需要安装 `PyQt5`, 你可以使用 `conda``venv` 来创建虚拟环境以安装 `pyqt5`
```bash
# For example
conda install pyqt5
pip3 install pyqt5
```
The `build.sh` will be called by a function in `main.py`, to run `build.sh` properly, you should have a `bash` environment with `fakeroot` and `imagemagick` installed.
你还需要 `bash` 环境,给予 `make-deb.sh` 可执行权限, 并且安装好 `fakeroot` `imagemagick`
```bash
# For example
sudo apt install imagemagick
sudo apt install fakeroot
cd /the/path/to/code/
sudo chmod +x make-deb.sh
```
# Usage
After download my script, you can just input the command below into your terminal:
## Zenity 版本
只需要 `bash` 环境,给予 `AppImage2Deb.sh` 可执行权限,并且安装好 `zenity`
```bash
cd /the/path/to/src/
# For example
sudo apt install zenity
cd /the/path/to/code/
sudo chmod +x AppImage2Deb.sh
```
# 使用方法
## PyQt5 版本
配置好虚拟环境后,在终端模拟器激活虚拟环境,并运行 `main.py`
```bash
# For example
# You should activate virtual env first
cd /the/path/to/code/
python3 main.py
```
The deb file will be put in `/the/path/to/src`.
deb 文件会放在 `/the/path/to/code/`
## Zenity 版本
配置好环境后,给予 `AppImage2Deb.sh` 可执行权限,并运行脚本。
```bash
cd /the/path/to/code/
./AppImage2Deb.sh
```
deb 文件会放在 `AppImage2Deb.sh` 同目录中生成的一个文件夹中。