ll-builder create org.deepin.demopackage:
id: org.deepin.demo
name: demo
kind: app
version: 1.0.0.0
description: |
A simple demo app.command:
- demobase: org.deepin.base/23.1.0
runtime: org.deepin.runtime.dtk/23.1.0Fetch source code using Git
sources:
- kind: git
url: "https://github.com/linuxdeepin/linglong-builder-demo.git"
commit: master
name: linglong-builder-demobuild: |
cd /project/linglong/sources/linglong-builder-demo
rm -rf build || true
mkdir build
cd build
qmake ..
make
make installversion: "1"
package:
id: org.deepin.demo
name: demo
kind: app
version: 1.0.0.0
description: |
A simple demo app.
command:
- demo
base: org.deepin.base/23.1.0
runtime: org.deepin.runtime.dtk/23.1.0
sources:
- kind: git
url: "https://github.com/linuxdeepin/linglong-builder-demo.git"
commit: master
name: linglong-builder-demo
build: |
cd /project/linglong/sources/linglong-builder-demo
rm -rf build || true
mkdir build
cd build
qmake ..
make
make installFor more configuration file field definitions, refer to Configuration File Reference
Execute the build command in the Linyaps project root directory:
ll-builder buildAfter successful build, execute the run command in the Linyaps project directory to directly run the application without installation.
ll-builder runExecute the export command in the Linyaps project root directory to export the build contents.
ll-builder export --layerThe exported directory structure is as follows:
├── linglong
├── linglong.yaml
├── org.deepin.demo_1.0.0.0_x86_64_binary.layer
└── org.deepin.demo_1.0.0.0_x86_64_develop.layer
qt5 - qt5 program
dtk5 - dtk5 + qmake
dtk5 - dtk5 + cmake
dtkdeclarative5 - dtk5 + qml
electron - electron + vue example
plantuml - a Java application for programmatic flowchart creation
org.sumatrapdfreader - a Wine application, PDF reader
Complete Example - Contains a complete workflow example of how to build applications, export build contents, install, and run.