This release contains a ready-to-use batch file that automates the process of turning Photopea v2 into a portable Windows desktop app using Electron.
- One-click
.exebuilder for Photopea - Interactive icon selection
- Auto-setup of Electron environment
- Portable output—no installation required
- Download
build_photopea.batfrom this release. - Place it inside your
photopea-v2folder. - Right-click → “Run as Administrator”.
- Enter your
.icopath when prompted. - Your app will be built at:
dist/Photopea-win32-x64/Photopea.exe
Click the .bat file below to download and start building your own offline Photopea desktop app.
where node >nul 2>nul
if %errorlevel% neq 0 (
echo ❌ Node.js not found. Please install Node.js first.
pause
exit /b
)if not exist package.json (
echo Initializing npm project...
npm init -y >nul
)echo Installing Electron...
call npm install electron --save-devif not exist main.js (
echo Creating main.js...
:: Generates Electron window with icon and loads index.html
:: Includes contextIsolation and disables menu bar
...
)powershell -Command "(Get-Content package.json) -replace '\"scripts\": \{[^}]*\}', '\"scripts\": {\"start\": \"electron .\"}' | Set-Content package.json"set /p ICON_PATH=💠 Enter full path to your icon (.ico):
if not exist "%ICON_PATH%" (
echo ❌ Icon not found at: %ICON_PATH%
pause
exit /b
)
copy "%ICON_PATH%" "%cd%\icon.ico" >nulcall npm install -g electron-packager
call electron-packager . Photopea --platform=win32 --arch=x64 --out=dist --overwrite --icon=icon.icoecho ✅ Build complete! Your EXE is ready at:
echo %cd%\dist\Photopea-win32-x64\Photopea.exe
pause🎁 Bonus: Local Dev Setup (Optional)
Want to make a setup file?
{
"name": "photopea-v2",
"version": "1.0.0",
"description": "Offline version of Photopea using Electron.",
"main": "index.js",
"scripts": {
"start": "electron .",
"dist": "electron-builder"
},
"keywords": [],
"author": "",
"license": "ISC",
"type": "commonjs",
"devDependencies": {
"electron": "^39.0.0",
"electron-builder": "^24.6.0"
},
"build": {
"appId": "com.yourname.photopea",
"productName": "Photopea V2",
"win": {
"target": "nsis",
"icon": "build/icon.ico"
},
"nsis": {
"oneClick": false,
"allowToChangeInstallationDirectory": true,
"createDesktopShortcut": true,
"createStartMenuShortcut": true
}
}
}npm install --save-dev electron-builder
npm run distThis creates a setup.exe for Photopea using Electron-Builder then you can install and use it like a normal desktop app.
This project and script are provided solely for educational and personal learning purposes.
It is NOT affiliated with Photopea, nor endorsed by the Photopea team.
This builder simply wraps the open-source Photopea v2 project in a desktop shell using Electron, and is intended to help users understand how Electron packaging works.
Commercial use, redistribution, or any form of misuse is strictly prohibited.
Please respect software licenses and do not use this script or its output for any unauthorized, illegal, or unethical purposes.The author does not accept responsibility for any misuse, infringement, or violation resulting from the use of this tool.
If you are unsure about the legal implications, DO NOT use this tool.