DCloud_HB_WDL
DCloud_HB_WDL
  • 发布:2025-01-08 16:19
  • 更新:2025-02-26 10:14
  • 阅读:2444

【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.51-dev测试版下载地址
Linux HBuilderX cli 4.53-alpha测试版下载地址

常见使用命令


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

4 关注 分享
2***@qq.com 2***@qq.com 1***@qq.com 7***@qq.com

要回复文章请先登录注册

x***@163.com

x***@163.com

回复 x***@163.com :
root@devops-test:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 24.04 LTS
Release: 24.04
Codename: noble
2025-02-26 10:14
x***@163.com

x***@163.com

root@devops-test:~/downloads/4.51/HBuilderX# ./cli open
-1 :open: 操作超时
2025-02-26 10:05
karl116

karl116

The rpc request id: "100005" for method: "client verify" occur timeout! 运行报错,这是哪个网址不通呢
2025-02-26 08:52
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