{"id":13670410,"url":"https://github.com/system-cpu/wxappUnpacker","last_synced_at":"2025-04-27T13:32:15.576Z","repository":{"id":44434624,"uuid":"230569892","full_name":"system-cpu/wxappUnpacker","owner":"system-cpu","description":"基于node反编译小程序 已经配置完成","archived":false,"fork":false,"pushed_at":"2023-02-28T09:47:35.000Z","size":102,"stargazers_count":499,"open_issues_count":10,"forks_count":282,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-11-11T08:40:38.268Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/system-cpu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-12-28T06:38:09.000Z","updated_at":"2024-11-10T05:16:06.000Z","dependencies_parsed_at":"2024-01-14T16:27:45.257Z","dependency_job_id":null,"html_url":"https://github.com/system-cpu/wxappUnpacker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/system-cpu%2FwxappUnpacker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/system-cpu%2FwxappUnpacker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/system-cpu%2FwxappUnpacker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/system-cpu%2FwxappUnpacker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/system-cpu","download_url":"https://codeload.github.com/system-cpu/wxappUnpacker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251145624,"owners_count":21543073,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T09:00:41.756Z","updated_at":"2025-04-27T13:32:14.863Z","avatar_url":"https://github.com/system-cpu.png","language":"JavaScript","readme":"\n# 安装\n```\nnpm install\n```\n\n# 安装依赖\n```\nnpm install esprima\n    \nnpm install css-tree\n    \nnpm install cssbeautify\n    \nnpm install vm2\n    \nnpm install uglify-es\n    \nnpm install js-beautify\n\n\n```\n# 使用\n\nAndroid 手机最近使用过的微信小程序所对应的 wxapkg 包文件都存储在特定文件夹下，可通过以下命令查看：\n\nadb pull /data/data/com.tencent.mm/MicroMsg/{User}/appbrand/pkg\n\n\n--\nnode wuWxapkg.js  .wxapkg\n\n其中`{User}` 为当前用户的用户名，类似于 `2bc**************b65`。\n\n\n\n\n\n# 分包功能\n\n当检测到 wxapkg 为子包时, 添加-s 参数指定主包源码路径即可自动将子包的 wxss,wxml,js 解析到主包的对应位置下. 完整流程大致如下: \n1. 获取主包和若干子包\n2. 解包主包  \n    - windows系统使用: `./bingo.bat testpkg/master-xxx.wxapkg`\n    - Linux系统使用: `./bingo.sh testpkg/master-xxx.wxapkg`\n3. 解包子包  \n    - windows系统使用: `./bingo.bat testpkg/sub-1-xxx.wxapkg -s=../master-xxx`\n    - Linux系统使用:  `./bingo.sh testpkg/sub-1-xxx.wxapkg -s=../master-xxx`\n\n\nTIP\n\u003e -s 参数可为相对路径或绝对路径, 推荐使用绝对路径, 因为相对路径的起点不是当前目录 而是子包解包后的目录\n\n```\n├── testpkg\n│   ├── sub-1-xxx.wxapkg #被解析子包\n│   └── sub-1-xxx               #相对路径的起点\n│       ├── app-service.js\n│   ├── master-xxx.wxapkg\n│   └── master-xxx             # ../master-xxx 就是这个目录\n│       ├── app.json\n```\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsystem-cpu%2FwxappUnpacker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsystem-cpu%2FwxappUnpacker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsystem-cpu%2FwxappUnpacker/lists"}