# Hbuilder打包app教程
1:注册一个Hbuilder开发者账号,并且实名认证。(把注册好的账号提供给售后人员,添加项目开发协作者)
注册地址:
[https://account.dcloud.net.cn/oauth2?client\_id=DCLOUD\_DEV&redirect\_uri=http%3A%2F%2Fdev.dcloud.net.cn%2Fauth%2Fdcloud%2Fcallback&scope=&response\_type=code#](https://account.dcloud.net.cn/oauth2?client_id=DCLOUD_DEV&redirect_uri=http%3A%2F%2Fdev.dcloud.net.cn%2Fauth%2Fdcloud%2Fcallback&scope=&response_type=code#)
2:下载Hbuilder开发者工具
下载地址:[https://www.dcloud.io/hbuilderx.html](https://www.dcloud.io/hbuilderx.html)
3:Hbuilder导入源码。选择代码一级文件夹。
![](https://docs.suteshop.com/uploads/suteshop-cn/images/m_82de6ffe12ff690a22a835808c5e2577_r.png "null")
4:选中点击打开manifest.json
修改应用版本名称,应用版本号,打新包的这两个的参数要比上个版本高。
![](https://docs.suteshop.com/uploads/shopsuite-java/images/m_d194aeed5f9abfe0fde9dd197a54bc69_r.png "null")
5:APP各项配置:
* 配置图标
![](https://docs.suteshop.com/uploads/suteshop-cn/images/m_8e38c5152301ee2b9f2f54fc33fe572e_r.png "null")
* 配置启动界面(注意:默认无需修改,负责应用市场上架会失败)
![](https://docs.suteshop.com/uploads/suteshop-cn/images/m_b8cd710a2d9f679531cd4ad2d01ed1f4_r.png "null")
* 配置APP模块
![](https://docs.suteshop.com/uploads/suteshop-cn/images/m_e85be63b7c291ca694b399dfade98555_r.png "null")
![](https://docs.suteshop.com/uploads/suteshop-cn/images/m_a90ce43a4648a2478f61fa8ae5b9a9ef_r.png "null")
![](https://docs.suteshop.com/uploads/suteshop-cn/images/m_e4a766e6da0196d17c200d5097e0a302_r.png "null")
![](https://docs.suteshop.com/uploads/suteshop-cn/images/m_a881c542b3c9ae35871f4a7ea768adc9_r.png "null")
![](https://docs.suteshop.com/uploads/suteshop-cn/images/m_fd27bc2f11f883d89988d9b4e6ade30e_r.png "null")
* 配置权限(无需手动勾选,默认即可)
![](https://docs.suteshop.com/uploads/suteshop-cn/images/m_8d289d49960a87bb3446180aa7e05853_r.png "null")
6:修改接口地址:/config/config.js,填写您自己网站域名。
![](https://docs.suteshop.com/uploads/suteshop-cn/images/m_209ccd18ba7de07f614499e260da26e7_r.png "null")
7:打包APP专用文件内容覆盖。
/helpers/util-app.js里面的内容全覆盖到/helpers/util.js,**注意:无论打包发布还是本地运行开发都需要覆盖!!!**
8:发行。发行APP
![](https://docs.suteshop.com/uploads/suteshop-cn/images/m_ee94273c2137b16f8e8226b62cb72802_r.png "null")
![](https://docs.suteshop.com/uploads/suteshop-cn/images/m_41897ecf1d53bb661383e954413932cc_r.png "null")
点击打包,等待返回下载链接。
IOS的打包同安卓打包。