Build and package the Cardstock desktop installer. Defaults to current platform; pass "windows" or "macOS" to target a specific OS.
Package Cardstock as a standalone desktop installer.
windows or win → build Windows NSIS installer (.exe)macOS or mac → build macOS DMG installer (.dmg)Check the skill arguments. Map them to the dist script argument:
winmaccd C:\Users\mikes\Documents\CardMaker && node scripts/dist.js <target>
Where <target> is win, mac, or omitted for auto-detect.
This command:
Note: macOS builds can only be produced on macOS, and Windows builds can only be produced on Windows. If the build fails due to cross-compilation, inform the user they need to run it on the target platform.
Report the full path and file size of the generated installer. Verify it built successfully:
ls -lh "C:\Users\mikes\Documents\CardMaker\dist-electron\Cardstock Setup"*.exe 2>/dev/null
ls -lh "C:\Users\mikes\Documents\CardMaker\dist-electron/"*.dmg 2>/dev/null
Only report whichever file type was actually built.
scripts/setup-codesign-cache.js script handles this automatically. It skips entirely on non-Windows platforms../chrome/ and bundled in extraResources/chrome/.