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

【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

要回复文章请先登录注册

m***@mei-xin.com

m***@mei-xin.com

```bash
root@gzoubuntuu01:/srv/HBuilderX# ./cli open
-1 :open: 操作超时
```
用不了啊,这个要怎么整?
2025-02-25 14:23
用户2748513

用户2748513

root@22739bf27360:/# cd HBuilderX/
root@22739bf27360:/HBuilderX# ./cli
./cli: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory
root@22739bf27360:/HBuilderX# ls -l
total 67636
-rwxrwxr-x 1 501 staff 41118609 Jan 8 02:32 HBuilderX
-rw-rw-r-- 1 501 staff 64 Nov 26 02:54 LICENSE.MD
-rw-rw-r-- 1 501 staff 235454 Jan 8 02:52 ReleaseNote.md
-rwxrwxr-x 1 501 staff 552961 Jan 8 02:32 cli
-rw-rw-r-- 1 501 staff 5699976 Jan 7 11:00 libQt5Core.so.5
-rw-rw-r-- 1 501 staff 595528 Jan 7 11:00 libQt5DBus.so.5
-rw-rw-r-- 1 501 staff 7256408 Jan 7 11:00 libQt5Gui.so.5
-rw-rw-r-- 1 501 staff 1749216 Jan 7 11:00 libQt5Network.so.5
-rw-rw-r-- 1 501 staff 374744 Jan 7 11:00 libQt5Svg.so.5
-rw-rw-r-- 1 501 staff 1373248 Jan 7 11:00 libQt5WaylandClient.so.5
-rw-rw-r-- 1 501 staff 176216 Jan 7 11:00 libQt5WebSockets.so.5
-rw-rw-r-- 1 501 staff 7057536 Jan 7 11:00 libQt5Widgets.so.5
-rw-rw-r-- 1 501 staff 22904 Jan 7 11:00 libQt5X11Extras.so.5
-rw-rw-r-- 1 501 staff 1536608 Jan 7 11:00 libQt5XcbQpa.so.5
-rw-rw-r-- 1 501 staff 282096 Jan 7 11:00 libQt5Xml.so.5
-rwxrwxr-x 1 501 staff 436304 Jan 8 02:32 libQuaZIP.so.1.0.0
-rw-rw-r-- 1 501 staff 79952 Jan 7 11:00 libdouble-conversion.so.3
-rw-rw-r-- 1 501 staff 67656 Jan 7 11:00 libmd4c.so.0
-rw-rw-r-- 1 501 staff 572064 Jan 7 11:00 libpcre2-16.so.0
-rw-rw-r-- 1 501 staff 14536 Jan 7 11:00 libxcb-composite.so.0
-rw-rw-r-- 1 501 staff 88 Jan 7 11:00 package.json
drwxr-xr-x 2 501 staff 303 Feb 25 01:45 platforms
drwxr-xr-x 66 501 staff 4096 Feb 25 01:44 plugins
drwxr-xr-x 2 501 staff 207 Feb 25 01:44 readme
root@22739bf27360:/HBuilderX#
2025-02-25 10:40
用户2748513

用户2748513

root@22739bf27360:/# cd HBuilderX/
root@22739bf27360:/HBuilderX# ./cli
./cli: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory
root@22739bf27360:/HBuilderX# ls -l
total 67636
-rwxrwxr-x 1 501 staff 41118609 Jan 8 02:32 HBuilderX
-rw-rw-r-- 1 501 staff 64 Nov 26 02:54 LICENSE.MD
-rw-rw-r-- 1 501 staff 235454 Jan 8 02:52 ReleaseNote.md
-rwxrwxr-x 1 501 staff 552961 Jan 8 02:32 cli
-rw-rw-r-- 1 501 staff 5699976 Jan 7 11:00 libQt5Core.so.5
-rw-rw-r-- 1 501 staff 595528 Jan 7 11:00 libQt5DBus.so.5
-rw-rw-r-- 1 501 staff 7256408 Jan 7 11:00 libQt5Gui.so.5
-rw-rw-r-- 1 501 staff 1749216 Jan 7 11:00 libQt5Network.so.5
-rw-rw-r-- 1 501 staff 374744 Jan 7 11:00 libQt5Svg.so.5
-rw-rw-r-- 1 501 staff 1373248 Jan 7 11:00 libQt5WaylandClient.so.5
-rw-rw-r-- 1 501 staff 176216 Jan 7 11:00 libQt5WebSockets.so.5
-rw-rw-r-- 1 501 staff 7057536 Jan 7 11:00 libQt5Widgets.so.5
-rw-rw-r-- 1 501 staff 22904 Jan 7 11:00 libQt5X11Extras.so.5
-rw-rw-r-- 1 501 staff 1536608 Jan 7 11:00 libQt5XcbQpa.so.5
-rw-rw-r-- 1 501 staff 282096 Jan 7 11:00 libQt5Xml.so.5
-rwxrwxr-x 1 501 staff 436304 Jan 8 02:32 libQuaZIP.so.1.0.0
-rw-rw-r-- 1 501 staff 79952 Jan 7 11:00 libdouble-conversion.so.3
-rw-rw-r-- 1 501 staff 67656 Jan 7 11:00 libmd4c.so.0
-rw-rw-r-- 1 501 staff 572064 Jan 7 11:00 libpcre2-16.so.0
-rw-rw-r-- 1 501 staff 14536 Jan 7 11:00 libxcb-composite.so.0
-rw-rw-r-- 1 501 staff 88 Jan 7 11:00 package.json
drwxr-xr-x 2 501 staff 303 Feb 25 01:45 platforms
drwxr-xr-x 66 501 staff 4096 Feb 25 01:44 plugins
drwxr-xr-x 2 501 staff 207 Feb 25 01:44 readme
root@22739bf27360:/HBuilderX#
2025-02-25 10:40
karl116

karl116

容器内/app/HBuilderX/cli user login 登陆一直卡住是什么原因呢,没任何输出
2025-02-22 16:08
karl116

karl116

/usr/bin/bash: line 1: 12 Aborted (core dumped) /app/HBuilderX/HBuilderX > /dev/null 2>&1
-1 :open: 操作超时
2025-02-22 14:22
karl116

karl116

-1 :open: 操作超时 这是什么问题
2025-02-22 14:22
用户2744991

用户2744991

cli open
The rpc request id: "100000" for method: "client verify" occur timeout!
2025-02-21 19:01
IDyun

IDyun

回复 2***@qq.com :
我是用桌面版Ubuntu 24.04.1。 好像hbx是QT开发的。
2025-02-21 12:21
m***@163.com

m***@163.com

回复 3***@qq.com :
现在有答复了吗,我觉得好困难,得不到支持
2025-02-20 22:16
m***@163.com

m***@163.com

我在使用云打包的时候,在等待的过程中会cli通道会自动断掉,请问这是什么原因?按照我的理解打包是相互过程,最终还是会要写到我的unpackage文件夹下,这是我的打印,供参考
root@1e5dd7a35cad:/usr/src/app# cli pack --config /usr/src/app/pca/config.json
14:01:05.846 Check the cloud packing status...
14:01:05.982 Check packaging resources...
14:01:07.317 <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><li>[Warning] Current HBuilderX version 4.51, The cloud packing SDK corresponding to the IDEVersion has been offline. For better compatibility please upgrade HBuilderX to the latest version. If continue, this version 4.54 SDK will be used.</li></ul>
14:01:07.319 Compiling packing resources...
14:01:07.373 Project 'app' start compiling...
14:01:09.860 4.51
14:01:09.862
14:01:10.186 正在编译中...
14:01:10.187
14:01:10.734
14:01:10.735
14:01:43.189 [警告⚠] `static/echarts.min.js` 文件体积超过 500KB,已跳过压缩以及 ES6 转 ES5 的处理,手机端使用过大的js库影响性能。
14:01:43.189
14:02:17.605 Project 'app' compiled successfully.
14:02:17.606
14:02:17.607 WARNING: Module Warning (from ./node_modules/postcss-loader/src/index.js):
14:02:17.607 Warning
14:02:17.607
14:02:17.608 (211:2) end value has mixed support, consider using flex-end instead
14:02:17.608
14:02:18.611 Compressing packaging resources...
14:02:48.041 Sending a package request to the cloud...
14:02:49.854 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 app has been successfully submitted to the cloud,Getting packaging status...
14:03:10.698 Package status of project a app : Time:2025-02-20 14:02:50 Type:Android Cloud Certificate Being prepared
-1 :cli: 通道被关闭
-1 :cli: 连接已断开
2025-02-20 14:54