#灵感 BuildPackageConfig脚本 临时修改成true ![[Pasted image 20240905163310.png]] 注释,然后直接先设置为true ![[Pasted image 20240905163343.png]] 创建一个临时文件夹,还有俩临时脚本BuildApp ![[Pasted image 20240905163503.png]] 打包机的打包shell指令,参考 ``` shell -quit -batchmode -executeMethod BuildApp.BuildAPK ``` ![[Pasted image 20240905163722.png]] 构建打包完成后,对应的后置,需要先安装一下,这个插件 ![[Pasted image 20240905163835.png]] 然后,回到构建线,添加任务即可 ![[Pasted image 20240905163915.png]] 名称,还有curl请求的shell脚本,参考 ![[Pasted image 20240905164023.png]] ``` shell curl --location --request POST "https://open.larksuite.com/open-apis/bot/v2/hook/38ebaa0a-ed93-48b1-a6ac-c9cd5d20942a" ^ --header "Content-Type: application/json" ^ --header "Accept: */*" ^ --header "Host: open.larksuite.com" ^ --header "Connection: keep-alive" ^ --data-raw "{ \"msg_type\": \"text\", \"content\": { \"text\": \"request example\" }}" ``` 测试打包机构建 之前默认的打包路径,是通过GetParent拿到dataPath的上级目录 ![[Pasted image 20240906100518.png]] 三消工程,测试prefab预制体修改,名字是prefab_ui_gamehallview ![[Pasted image 20240904115653.png]] 例如修改,ui坐标信息 ![[Pasted image 20250109155840.png]] 打包对应界面: Prefab_UI_HotUpdate_View ![[Pasted image 20240910112131.png]] 获取版本信息的逻辑入口 ![[Pasted image 20240910161923.png]] 尝试获得 上一个版本信息的包 ![[Pasted image 20240910172033.png]] 热更包bundle所在路径 ![[Pasted image 20240910172129.png]] 保存版本信息到本地 ![[Pasted image 20240912105145.png]] Jenkins需要的打包字段设置参考 ![[img_v3_02em_3b2b78ba-25f2-4ba5-b76d-fd64a5d72f2h.jpg]] ![[img_v3_02em_76182c1b-f0ad-43b6-91c8-c0a977a5d37h.jpg]]