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

【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

要回复文章请先登录注册

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
x***@zhuying.com

x***@zhuying.com

回复 x***@zhuying.com :
关于缺依赖库的,在ubuntu24.0的版本中需要安装apt-get install libkrb5-3 libgssapi-krb5-2 libicu-dev libglib2.0-0
2025-02-19 17:11
x***@zhuying.com

x***@zhuying.com

回复 桀桀 :
哥们,解决了吗,我也是安装各种依赖库后,./cli open操作超时
2025-02-19 17:00
karl116

karl116

回复 m***@mei-xin.com :
一样的问题,解决了吗
2025-02-18 15:46
karl116

karl116

./cli open
./cli: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory
2025-02-18 15:43
5***@qq.com

5***@qq.com

为什么稍微长一点的文本会超出边界? <span style="font-family: inherit;"> 话</span>
2025-02-18 14:53
田国元

田国元

回复 田国元 :
Ubuntu 22.04.5 LTS
2025-02-18 11:27
田国元

田国元

./cli open
./cli: error while loading shared libraries: libicui18n.so.74: cannot open shared object file: No such file or directory
2025-02-18 11:27