flatdeb
============

flatdeb is a proof of concept for building Flatpak runtimes and apps
from Debian packages.

### Depends
* debootstrap 
* flatpak 
* flatpak-builder 
* systemd-container
* python3-yaml

### 扩展字段
* x-flatdeb-*
* service

### Run
Runtime 生成(runtimes)
先修改unstale.yaml和runtimes/org.deepin.flatdeb.Base.yaml里面的仓库地址,再执行命令
```
./run.py --suite=unstable --arch=amd64 base # 生成base
cd runtimes
../run.py --suite=unstable --arch=amd64 runtimes org.deepin.flatdeb.Base.yaml # 生成flatpak Runtime/SDK
```

应用生成(packages)

先切换到应用目录,拷贝本config/stretch.yaml文件的ymal同级目录

```
# RUNTIME_GIT_REOP是本仓库的路径
cp ${RUNTIME_GIT_REOP}/config/stretch.yaml .
${RUNTIME_GIT_REOP}/run.py --arch=amd64 app *.yaml # 生成flatpak应用
```
```
flatpak --user remote-add --no-gpg-verify flatdeb $HOME/.cache/flatdeb/repo
flatpak --user install flatdeb org.deepin.flatdeb.hello
flatpak run org.deepin.flatdeb.hello
```

### Packages
Deepin 已打包软件包的YAML文件在 `https://cr.deepin.io/flatpak-deepin-applications`
切换到`flatdeb`分支, 拷贝到`packages`, 执行生成flatpak应用命令
