[software development] 玲珑打包有无参考范例?
Tofloor
poster avatar
Feng Yu
deepin
2023-09-07 15:28
Author

看了一圈玲珑的官方文档,感觉并不够详细,看官方文档说上架需要给仓库 https://github.com/linuxdeepin/linglong-hub 提交PR,于是看了一眼仓库,结果只是一堆demo,没太大参考价值。

我想问问玲珑商店这么多应用他们都是怎么上架的?他们的linglong.yaml都是怎么写的?想参考学习下

Reply Favorite View the author
All Replies
Feng Yu
deepin
2023-09-07 16:24
#1

😂 玲珑的参考范例好少,还得一边看源码(并不熟悉QT和C++),一边解决错误,顺便帮忙修复了一个BUG:

https://github.com/linuxdeepin/linglong/pull/94

Reply View the author
dgmenghuan
deepin
2023-09-07 16:33
#2

tail

Reply View the author
myml
Super Moderator
Developer
2023-09-07 17:44
#3

可以在这个组织里面找到参考
https://github.com/linglongdev

Reply View the author
Feng Yu
deepin
2023-09-08 07:06
#4
myml

可以在这个组织里面找到参考
https://github.com/linglongdev

哎,放弃了

start "-v --repo=/home/vagrant/.cache/linglong-builder/repo init --mode=bare-user-only"
QProcess::NormalExit with exit code: 0
start "-v --repo=/home/vagrant/.cache/linglong-builder/repo remote add --no-gpg-verify repo https://store-llrepo.deepin.com/repo"
QProcess::NormalExit with exit code: 0
"building target: org.deepin.demo"
"fetching source code from: https://github.com/linuxdeepin/linglong-builder-demo.git"
git ("clone", "https://github.com/linuxdeepin/linglong-builder-demo.git", "/home/vagrant/org.demo/.linglong-target/org.deepin.demo/source")
git ("checkout", "-b", "0.0.1", "a3b89c3aa34c1aff8d7f823f0f4a87d5da8d4dc0")
git ("reset", "--hard", "a3b89c3aa34c1aff8d7f823f0f4a87d5da8d4dc0")
"finding local patch"
"nothing to patch"
"fetching dependency: org.deepin.Runtime 20.5.0"
sh ("-c", "ostree refs --repo=/home/vagrant/.cache/linglong-builder/repo | grep -Fx org.deepin.Runtime/20.5.0/x86_64/runtime")
sh  run failed, retCode: 1 , args: sh ("-c", "ostree refs --repo=/home/vagrant/.cache/linglong-builder/repo | grep -Fx org.deepin.Runtime/20.5.0/x86_64/runtime") , info msg: "" , err msg: ""
start "-v --repo=/home/vagrant/.cache/linglong-builder/repo pull repo --mirror linglong/org.deepin.Runtime/20.5.0/x86_64/runtime"
"OT: _ostree_fetcher_should_retry_request: error: 321:1 Server returned status 404: Not Found, n_retries_remaining: 5\n"
"error: Server returned status 404: Not Found\n"
QProcess::NormalExit with exit code: 1
start "-v --repo=/home/vagrant/.cache/linglong-builder/repo checkout --union linglong/org.deepin.Runtime/20.5.0/x86_64/runtime /home/vagrant/org.demo/.linglong-target/org.deepin.demo/runtime/"
"error: Refspec 'linglong/org.deepin.Runtime/20.5.0/x86_64/runtime' not found\n"
QProcess::NormalExit with exit code: 1

 "./src/builder/builder/linglong_builder.cpp:456:buildFlow" 
 "No such file or directory" 

一个连demo都跑不起来的玩意充其量就是玩具罢了,不浪费时间了

Reply View the author