node-serialport
node-serialport copied to clipboard
g++: error: unrecognized command line option ‘-m64’
SerialPort Version
10.4.0
Node Version
v16.17.0
Electron Version
v17.4.11
Platform
Linux linaro-alip 4.19.219 #334 SMP Mon Jul 18 13:48:02 CST 2022 aarch64 GNU/Linux
Architecture
arm64
Hardware or chipset of serialport
No response
What steps will reproduce the bug?
- download electron-serialport demo from https://github.com/serialport/electron-serialport
-
yarn -
yarn start, it work well - add electron-builder:
yarn add electron-builder@^23.3.3 --save-dev - add
electron-builder.ymllike:
productName: electron-serialport
appId: jsbay.com.app
copyright: copyright
directories:
output: build
electronDownload:
mirror: https://npm.taobao.org/mirrors/electron/
# linux:
# target:
# # - target: AppImage
# - target: deb
# arch:
# - x64
# - arm64
# - armv7l
# - target": "deb"
# - arch: ["arm64", "armv7l", "x64"]
- add scripts
"build": "electron-builder build"topackage.json - run
yarn build
What happens?
got error g++: error: unrecognized command line option ‘-m64’

What should have happened?
wish to pack success
Additional information
No response