Decompile WeChat applet and export uniapp or taro projects

Decompile WeChat Mini Program (common to the entire network)
Decompile WeChat Mini Program. Decompilation
is mainly divided into four stages.
Operation process

1. Node.js installation
2. Node installation module
3. Start decompilation
4. Import into WeChat developer tools and run

WeChat Mini Program Decompilation
When you encounter a mini program function that you don’t know how to write, and you happen to see a similar function in the mini program next door, you usually want to learn from it. This article introduces the method of mini program decompilation.

There are a very small number of small programs that cannot be decompiled. After all, some big companies let you see the source code. What if you turn around and copy it, right?

Decompilation is mainly divided into four stages:
1. Nodejs environment installation;

2. Node module installation;

3. Download the decompilation script;

4. WeChat developer tools import code

Note: There are links at the bottom of the above tools

Operation process
1. Node.js installation. To
install node.js, download the link https://nodejs.org/zh-cn/download/ or http://nodejs.cn/download/ . Just NEXT during the installation process. Please pay attention after installation. Set nodejs as an environment variable (related link).

After the installation is successful, check whether the installation is successful: open cmd, enter node -v in the console, and the following result vxx.xx.x version number appears, that is, the installation is successful. (Which version is fine, it doesn’t matter)
Insert image description here

2. Modules that node.js needs to install:


npm install esprima
    
npm install css-tree
    
npm install cssbeautify
    
npm install vm2
    
npm install uglify-es
    
npm install js-beautify

3. Download the small program package decryption tool wxappUnpacker (supports subpackaging and uniapp small programs) (tool link, provided for free at the end of the article) open the
small program that needs to be decompiled through the simulator, and find the small program you just opened in the RE file manager Generate the corresponding __xxx__.wxapkg small program package. Copy to the computer to prepare for the next step (this will not be introduced in detail);

4. Start decompilation.
Open the directory where the decompilation script wxappUnpacker is located, and open the wxappUnpacker.exe software.
Please add image description

last step:

Insert image description here
Just import the .wxapk package directly and export the corresponding applet source code;
although there may be some source code components that are difficult to understand, at least you can decompile the applet that has subcontracting and uniapp compilation;
success!

4. Import it into the WeChat developer tool and run it

Tool link acquisition:
G public account (programmer Wu) replied: decompile and export uniapp to receive

For other abnormal problem handling, you can check the latest article tutorials on my homepage;

Guess you like

Origin blog.csdn.net/Liang_ming_/article/details/132253277