frankhale / electron-with-express

A simple app that demonstrates spawning an Express app from Electron
MIT License
643 stars 147 forks source link

Can't pack by using macos #55

Open okeyzero opened 6 days ago

okeyzero commented 6 days ago

Describe the bug

electron-with-express@1.0.17 pack tsc && cd .. && electron-packager ./electron-with-express --icon=./electron-with-express/dist/favicon.ico --ignore="^(?!(.node_modules|.dist))(.src.|.screenshots.|.tsconfig.|.README.|.git.)" --asar.unpack=*.{node,dll,db} --overwrite

Packaging app for platform darwin arm64 using electron v31.0.2 invalid pattern

To Reproduce Steps to reproduce the behavior:

  1. git clone
  2. npm install
  3. npm run start
  4. npm run pack

Expected behavior Packaged as an application

Screenshots

image

Desktop (please complete the following information):

Additional context

frankhale commented 6 days ago

Hmm. Maybe the invalid pattern is talking about the regular expression in the ignore clause. I'll take a look. Thankfully I bought a MBP recently and am able to help on this.

okeyzero commented 6 days ago

嗯。也许无效模式指的是 ignore 子句中的正则表达式。我会看看的。幸好我最近买了一台 MBP,可以帮上忙。

thanks a lot