ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
# Hbuilder打包微信小程序教程 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/suteshop-cn/images/m_e4b3ee57dad9ba80b4ad7c4f9e008609_r.png "null") 5:下载安装[微信开发者工具](https://developers.weixin.qq.com/miniprogram/dev/devtools/download.html "微信开发者工具")并登录具有小程序开发者权限的微信。 ![](https://docs.suteshop.com/uploads/suteshop-cn/images/m_59b20dcbe00839fb5558b166c7a95b48_r.png "null") ![](https://docs.suteshop.com/uploads/suteshop-cn/images/m_741e14b7014cb589f5083f37148bd495_r.png "null") 6:微信小程序配置 ![](https://docs.suteshop.com/uploads/suteshop-cn/images/m_6fe061e2c15ae030f6f8410d8686a3ce_r.png "null") 7:修改接口地址:/config/config.js,填写您自己网站域名。 ![](https://docs.suteshop.com/uploads/suteshop-cn/images/m_4c9d3f5ceb5597898ad534a2f3f431b9_r.png "null") 8:打包微信小程序专用文件内容覆盖。 /helpers/util-mp.js里面的内容全覆盖到/helpers/util.js。**注意:无论打包发布还是本地运行开发都需要覆盖!!!** ![](https://docs.suteshop.com/uploads/suteshop-cn/images/m_7cfbb201fe541e42a27358546e3a2632_r.png "null") 9:发行微信小程序. ![](https://docs.suteshop.com/uploads/suteshop-cn/images/m_e353827aef16c3bd0a5e19f0253ca337_r.png "null") ![](https://docs.suteshop.com/uploads/suteshop-cn/images/m_4f0600966d98ef741fcd69ad3ae30b89_r.png "null") #### 如果是第一次运行需要配置运行配置 ![](https://docs.suteshop.com/uploads/suteshop-cn/images/m_5576af62f91782b468f1f93b731b87d0_r.png "null") ![](https://docs.suteshop.com/uploads/suteshop-cn/images/m_bba4d4e0a2c76bed6d81db7ea4387f72_r.png "null") 10:预览没问题,提交上传,上传成功之后登录微信小程序后台提交审核发布。 ![](https://docs.suteshop.com/uploads/suteshop-cn/images/m_acebf9a09c6f376d0175649aa173ba47_r.png "null")