Skip to content

fix: harden wxapkg unpacking and expose app names - #62

Open
CCCCY-ci wants to merge 1 commit into
wux1an:mainfrom
CCCCY-ci:feat/harden-unpacker
Open

fix: harden wxapkg unpacking and expose app names#62
CCCCY-ci wants to merge 1 commit into
wux1an:mainfrom
CCCCY-ci:feat/harden-unpacker

Conversation

@CCCCY-ci

@CCCCY-ci CCCCY-ci commented Aug 16, 2026

Copy link
Copy Markdown

Summary

  • Bound unpack concurrency and stream archive entries during beautification.
  • Validate package headers, entry ranges, and cross-platform output paths.
  • Propagate contextual worker errors and clean up temporary decrypted files.
  • Display detected mini-program names when reliable package metadata is available.
  • Keep the JavaScript beautifier implementation local for reproducible builds.

Benchmark

Tested with 18 local packages, with JSON, HTML, and JavaScript beautification enabled. Each package was run twice.

Metric Baseline Current branch
Elapsed time 883.68 s 40.99 s
CPU time 2989.98 s 110.25 s
Peak working set 4413.4 MB 356.5 MB
Peak private bytes 4945.8 MB 401.6 MB

All output manifests matched between the two versions.

Tests

  • go test ./...
  • go test -race ./wechat
  • go vet ./wechat
  • npm run build

@CCCCY-ci CCCCY-ci closed this Aug 16, 2026
@CCCCY-ci CCCCY-ci reopened this Aug 16, 2026
@CCCCY-ci CCCCY-ci changed the title fix: improve wxapkg unpacking reliability and app name detection fix: harden wxapkg unpacking and expose app names Aug 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant