Skip to content

fix: make build scripts cross-platform with auto platform detection#9

Open
fancyboi999 wants to merge 1 commit intoMemeCalculate:mainfrom
fancyboi999:fancy/fix-cross-platform-build
Open

fix: make build scripts cross-platform with auto platform detection#9
fancyboi999 wants to merge 1 commit intoMemeCalculate:mainfrom
fancyboi999:fancy/fix-cross-platform-build

Conversation

@fancyboi999
Copy link

Summary

  • replace Windows-only PowerShell prebuild logic with a cross-platform Node cleanup script
  • add platform-aware build routing so npm run build auto-selects build:win / build:mac / build:linux
  • split build pipeline into reusable steps (build:app, pack:*) and add explicit scripts for each OS
  • update electron-builder config so macOS/Linux use build/icon.png and add mac/linux targets

Why

Issue #1 reports npm run build fails on macOS/Linux because prebuild hardcodes powershell.

Verification

Executed on macOS:

  • npm run build -> auto-routed to build:mac, succeeded (produced .dmg and .zip)
  • npm run build:linux -> succeeded (produced .AppImage)
  • npm run build:win -> succeeded (produced setup.exe)

Closes #1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

不支持mac吗

1 participant