Skip to content

Latest commit

 

History

History
48 lines (35 loc) · 1.03 KB

File metadata and controls

48 lines (35 loc) · 1.03 KB

Repackaging Guide

Follow these steps if you want to rebuild the app from its packaged form.


1. Get the .asar file

  • Mac: Open the .dmg file with an archiver (like PeaZip) or use a dmg extractor.
  • Linux: Run the AppImage with:
    ./AppName.AppImage --appimage-extract

2. Extract the .asar

Use Asar Extractor to unpack the .asar file you found.


3. Clone the repo

Clone this repository, but don’t include submodules:

git clone https://github.com/Twig6943/PVZGE-Electron

4. Prepare directories

Inside the cloned repo:

  • Create a folder called pvzge_site
  • Inside pvzge_site create another folder called docs

5. Copy game files

From your decompiled .asar contents:

  • Go to out/renderer
  • Move everything from there into the docs folder you just made

6. Build the project

Install dependencies and build it:

npm install
npm run build:win -- --publish=never