DCloud_HB_WDL
DCloud_HB_WDL
  • 发布:2025-01-08 16:19
  • 更新:2025-04-16 14:11
  • 阅读:5569

【Linux HBuilderX Cli 测试版】,欢迎大家测试反馈。

分类:HBuilderX

说明


Linux HBuilderX Cli 已完成开发,欢迎大家试用反馈。

这个cli的用途是让开发者可以在linux服务器上调用HBuilderX cli,来实现程序化操作打包app、上传unicloud云函数。

为持续集成、自动化发布、类saas业务的自动化给客户部署等业务提供支持。

请注意是cli程序,不是HBuilderX可视化编辑器。仅适用于Linux命令行调用。

目前我们仅在Ubuntu 24.04.1 LTS系统上进行了测试,并没有在其它Linux发行版上测试,如有问题,请在本帖反馈

下载地址


Linux HBuilderX cli 4.55-正式版 下载地址
Linux HBuilderX cli 4.54-Alpha版 下载地址
Linux HBuilderX cli 4.57-Alpha版 下载地址

备注:

  1. 4.53-alpha版,压缩包中缺少amazon-corretto。amazon-corretto下载地址

常见使用命令


1. 安装包下载解压

复制代码wget -c https://download1.dcloud.net.cn/download/HBuilderX.4.51.2025010802-dev.linux_x64.full.tar.gz  
tar -zxvf HBuilderX.4.51.2025010802-dev.linux_x64.full.tar.gz

2. 使用cli启动HBuilderX程序

复制代码cd HBuilderX目录  
./cli open 

启动后,可使用ps -ef | grep HBuilderX查看HBuilderX是否启动。

3. app打包操作命令

复制代码# HBuilderX登录。注意app打包必须登录。原因:国家相关部门要求  
cli user login --username <用户名>  --password <密码>  

# 导入要打包的项目  
cli project open --path <项目路径>  

# android ios打包。文档:https://hx.dcloud.net.cn/cli/pack  
cli pack --config 配置文件

完整的cli文档见:https://hx.dcloud.net.cn/cli/README

报Bug

如果大家遇到问题,请大家到https://issues.dcloud.net.cn/pages/issues/report-req?mid=pluginsCLI.linux报Bug。提交问题,请包含以下内容:

  1. 操作系统信息
  2. 详细的命令示例、截图
6 关注 分享
2***@qq.com 2***@qq.com 1***@qq.com 7***@qq.com 1***@163.com 用户2794931

要回复文章请先登录注册

6***@qq.com

6***@qq.com

系统:
ubuntu:24.04 Linux HBuilderX cli 4.55-正式版
操作:
./cli open
提示:
-1 :open: 操作超时
2025-03-17 10:32
9***@qq.com

9***@qq.com

-1 :open: 操作超时
2025-03-16 08:20
y***@yeah.net

y***@yeah.net

回复 DCloud_HB_WDL :
cli pack --config xxxx.json
xxxx.json为配置文件完整路径
输出:
15:15:18.232 Check the cloud packing status...
15:15:18.530 Check packaging resources...
15:15:18.810 <ul style="margin-left: -30px; margin-top: -30px;"><li>[Warning] For the implementation of "network security law", "consumer rights and interests protects a law" requirements, effective governance App compulsory licensing, excessive SuoQuan, beyond the phenomenon such as collect personal information, ensure the security of personal information, the domestic each big market to strengthen the application review, act requires application must conform to the related policy, the current lack of related configuration, <a href="https://uniapp.dcloud.io/app/android-store"> see how to solve the </a>. No need to deal with domestic application market.</li></ul>
15:15:18.823 Compressing packaging resources...
15:15:22.936 Sending a package request to the cloud...
15:15:24.612 It will return download link automatically after packaging success. You can query packaging status through menu [publish]-[view status]. There is a long queuing line at peak hours on Friday evening. Please be patient. If it is for the 3rd party SDK debugging, use a custom base (menu run - mobile phone or simulator - make a custom base), and don't pack it repeatedly. Project 项目名称 [项目ID] has been successfully submitted to the cloud,Getting packaging status...
15:15:30.145 Package status of project a 项目名称 [项目ID] : Time:2025-03-14 15:15:24 Type:Android own certificate In queue [Output]At present, there are a large number of cloud packaging queues. The current packaging task is in the 309th place in the queue. It is expected to enter the packaging state within 16 minute.
您也可以使用付费独享打包机来减少排队时间,预计1分钟内进入打包状态,[点此链接立即加速](https://dev.dcloud.net.cn/pages/common/redirect?return_url=%2Fpages%2Fcloudbuild%2Fqueue%3Fappid%3D项目ID%26id%3D19234810-00a4-11f0-874e-9531f5b62dcd&token=aade58fb7994dcd08a0ca450958f6393)
-1 :cli: 通道被关闭
-1 :cli: 连接已断开
2025-03-14 15:54
y***@yeah.net

y***@yeah.net

回复 DCloud_HB_WDL :
cli publish --platform APP --type wgt --project xxxx
xxxx为项目名称
执行后显示:
Project xxxx start export...
Project xxxx exporting...
Project xxxx is compressing...
Project xxxx export end,the path is: yyyy
yyyy为导出wgt文件的完整路径,然而这个文件实际上根本不存在,压根就没生成。4.55正式版试了也是一样
2025-03-14 14:09
1***@qq.com

1***@qq.com

deepin V23 下载下来完全 无法使用
2025-03-10 11:41
3***@qq.com

3***@qq.com

我的后台管理员面板什么都没有。注册的时候说是匹配不到云函数。
2025-03-08 11:48
DCloud_HB_HXY

DCloud_HB_HXY

回复 田国元 :
用的系统版本是多少,使用Ubuntu 24.04.1 LTS 试一下
2025-03-07 15:10
DCloud_HB_HXY

DCloud_HB_HXY

回复 karl116 :
用的系统版本是多少 建议使用 Ubuntu 24.04.1 LTS
2025-03-07 15:10
DCloud_HB_HXY

DCloud_HB_HXY

回复 IDyun :
用4.53的版本试一下
2025-03-07 15:09
DCloud_HB_WDL

DCloud_HB_WDL (作者)

回复 y***@yeah.net :
提供下您操作的命令。以便我们排查
2025-03-06 18:58