Closed svnwell closed 5 years ago
me too
me too
+1
也是这种情况, 克隆仓库自己编译 run dev
能正常运行, 编译报错
Ubuntu 18.10
Error: Exit code: 1. Command failed: /home/seven/.cache/electron-builder/fpm/fpm-1.9.3-2.3.1-linux-x86_64/fpm -s dir -t rpm --architecture amd64 --name wewechat --force --after-install /tmp/t-MNIGq4/0-after-install --after-remove /tmp/t-MNIGq4/2-after-remove --description Unofficial WeChat client built with React, MobX and Electron. --version 1.1.7 --package /home/seven/Downloads/weweChat/release/wewechat-1.1.7-linux-x86_64.rpm --maintainer undefined <var.darling@gmail.com> --url https://github.com/trazyn/weweChat#readme --vendor undefined <var.darling@gmail.com> --rpm-compression xzmt --rpm-os linux --depends libnotify --depends libappindicator --depends libXScrnSaver --license MIT /home/seven/Downloads/weweChat/release/linux-unpacked/=/opt/wewechat /home/seven/Downloads/weweChat/resource/16x16.png=/usr/share/icons/hicolor/16x16/apps/wewechat.png /home/seven/Downloads/weweChat/resource/24x24.png=/usr/share/icons/hicolor/24x24/apps/wewechat.png /home/seven/Downloads/weweChat/resource/32x32.png=/usr/share/icons/hicolor/32x32/apps/wewechat.png /home/seven/Downloads/weweChat/resource/48x48.png=/usr/share/icons/hicolor/48x48/apps/wewechat.png /home/seven/Downloads/weweChat/resource/64x64.png=/usr/share/icons/hicolor/64x64/apps/wewechat.png /home/seven/Downloads/weweChat/resource/96x96.png=/usr/share/icons/hicolor/96x96/apps/wewechat.png /home/seven/Downloads/weweChat/resource/128x128.png=/usr/share/icons/hicolor/128x128/apps/wewechat.png /home/seven/Downloads/weweChat/resource/256x256.png=/usr/share/icons/hicolor/256x256/apps/wewechat.png /tmp/t-MNIGq4/8-wewechat.desktop=/usr/share/applications/wewechat.desktop
{:timestamp=>"2018-12-04T11:15:15.766648+0800", :message=>"Need executable 'rpmbuild' to convert dir to rpm", :level=>:error}
at /home/seven/Downloads/weweChat/node_modules/builder-util/src/util.ts:122:16
at ChildProcess.exithandler (child_process.js:282:5)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:925:16)
at Socket.stream.socket.on (internal/child_process.js:346:11)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)
at Pipe._handle.close [as _onclose] (net.js:557:12)
From previous event:
at exec (/home/seven/Downloads/weweChat/node_modules/builder-util/src/util.ts:85:3)
at /home/seven/Downloads/weweChat/node_modules/electron-builder-lib/src/targets/fpm.ts:232:11
at Generator.next (<anonymous>)
From previous event:
at FpmTarget.build (/home/seven/Downloads/weweChat/node_modules/electron-builder-lib/out/targets/fpm.js:280:11)
at default.each.it (/home/seven/Downloads/weweChat/node_modules/electron-builder-lib/src/platformPackager.ts:120:89)
at runCallback (timers.js:810:20)
at tryOnImmediate (timers.js:768:5)
at processImmediate [as _immediateCallback] (timers.js:745:5)
From previous event:
at taskManager.addTask.default.map.then (/home/seven/Downloads/weweChat/node_modules/electron-builder-lib/src/platformPackager.ts:120:37)
From previous event:
at LinuxPackager.packageInDistributableFormat (/home/seven/Downloads/weweChat/node_modules/electron-builder-lib/src/platformPackager.ts:120:10)
at /home/seven/Downloads/weweChat/node_modules/electron-builder-lib/src/platformPackager.ts:114:10
at Generator.next (<anonymous>)
at runCallback (timers.js:810:20)
at tryOnImmediate (timers.js:768:5)
at processImmediate [as _immediateCallback] (timers.js:745:5)
From previous event:
at LinuxPackager.pack (/home/seven/Downloads/weweChat/node_modules/electron-builder-lib/out/platformPackager.js:196:11)
at /home/seven/Downloads/weweChat/node_modules/electron-builder-lib/src/packager.ts:364:24
at Generator.next (<anonymous>)
at xfs.stat (/home/seven/Downloads/weweChat/node_modules/fs-extra-p/node_modules/fs-extra/lib/mkdirs/mkdirs.js:56:16)
at /home/seven/Downloads/weweChat/node_modules/graceful-fs/polyfills.js:285:20
at FSReqWrap.oncomplete (fs.js:153:5)
From previous event:
at Packager.doBuild (/home/seven/Downloads/weweChat/node_modules/electron-builder-lib/out/packager.js:432:11)
at /home/seven/Downloads/weweChat/node_modules/electron-builder-lib/src/packager.ts:308:52
at Generator.next (<anonymous>)
at /home/seven/Downloads/weweChat/node_modules/graceful-fs/graceful-fs.js:111:16
at /home/seven/Downloads/weweChat/node_modules/graceful-fs/graceful-fs.js:45:10
at FSReqWrap.oncomplete (fs.js:135:15)
From previous event:
at Packager._build (/home/seven/Downloads/weweChat/node_modules/electron-builder-lib/out/packager.js:376:11)
at /home/seven/Downloads/weweChat/node_modules/electron-builder-lib/src/packager.ts:270:23
at Generator.next (<anonymous>)
at runCallback (timers.js:810:20)
at tryOnImmediate (timers.js:768:5)
at processImmediate [as _immediateCallback] (timers.js:745:5)
From previous event:
at Packager.build (/home/seven/Downloads/weweChat/node_modules/electron-builder-lib/out/packager.js:332:11)
at /home/seven/Downloads/weweChat/node_modules/electron-builder/src/builder.ts:310:40
at Generator.next (<anonymous>)
From previous event:
at _build (/home/seven/Downloads/weweChat/node_modules/electron-builder/out/builder.js:61:21)
at build (/home/seven/Downloads/weweChat/node_modules/electron-builder/src/builder.ts:280:10)
at then (/home/seven/Downloads/weweChat/node_modules/electron-builder/src/cli/cli.ts:48:33)
at runCallback (timers.js:810:20)
at tryOnImmediate (timers.js:768:5)
at processImmediate [as _immediateCallback] (timers.js:745:5)
From previous event:
at Object.args [as handler] (/home/seven/Downloads/weweChat/node_modules/electron-builder/src/cli/cli.ts:48:33)
at Object.runCommand (/home/seven/Downloads/weweChat/node_modules/yargs/lib/command.js:235:44)
at Object.parseArgs [as _parseArgs] (/home/seven/Downloads/weweChat/node_modules/yargs/yargs.js:1074:24)
at Object.get [as argv] (/home/seven/Downloads/weweChat/node_modules/yargs/yargs.js:989:21)
at Object.<anonymous> (/home/seven/Downloads/weweChat/node_modules/electron-builder/src/cli/cli.ts:42:15)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:191:16)
at bootstrap_node.js:612:3
me too
same here
me too
Duplicate of https://github.com/trazyn/weweChat/issues/196
源码编译,不再出现此错误
Segmentation fault (core dumped)