Look at the Nuxt documentation to learn more.
Make sure to install dependencies:
# npm
npm install
# pnpm
pnpm install
# yarn
yarn install
# bun
bun installStart the development server on http://localhost:3000:
# npm
npm run dev
# pnpm
pnpm dev
# yarn
yarn dev
# bun
bun run devBuild the application for production:
# npm
npm run build
# pnpm
pnpm build
# yarn
yarn build
# bun
bun run buildLocally preview production build:
# npm
npm run preview
# pnpm
pnpm preview
# yarn
yarn preview
# bun
bun run previewCheck out the deployment documentation for more information.
npm run build only runs Nuxt (SSR/build output). It does not produce a Mac application bundle.
Use the Electron packaging script (static site + electron-builder):
npm run electron:packThis runs nuxt generate (writes to .output/public) and then electron-builder --mac.
Artifacts appear under release/, for example:
FAWE-0.1.0.dmg— open this and drag the app into ApplicationsFAWE-0.1.0-mac.zip— unzip; inside you’ll findFAWE.app- A folder like
release/mac-arm64/orrelease/mac-x64/withFAWE.appyou can copy manually
Install manually:
# Example after unzip; adjust path if your release folder name differs
cp -R release/mac-arm64/FAWE.app /Applications/First launch: if macOS blocks the app (unidentified developer), right‑click the app → Open, or allow it under System Settings → Privacy & Security.
- Prepare a square image, ideally 1024×1024 PNG (with transparency if you like).
- Produce
build/icon.icns(macOS format). Options:- Xcode → Asset Catalog / Icon Composer, or
iconutilfrom an.iconsetfolder (Apple’s iconset layout), or- Online PNG → ICNS converters (search “png to icns”).
- In
package.json, underbuild.mac, set the icon path (create thebuild/folder if needed):
"mac": {
"category": "public.app-category.productivity",
"icon": "build/icon.icns",
"target": ["dmg", "zip"]
}- Run
npm run electron:packagain. The DMG andFAWE.appwill use your icon.
If you omit icon, electron-builder uses its default Electron icon until you add a file.