GithubHelp home page GithubHelp logo

Comments (16)

ysh329 avatar ysh329 commented on May 21, 2024 1

@Julymycin 嘿,我说大兄弟,你试试我给你发的这段,你下载他这个AppImage文件,我下面代码都给你写好了,你试试,是不是出啥问题了:

# dowload first
wget -c 'https://github-production-release-asset-2e65be.s3.amazonaws.com/96892030/31406bde-8b89-11e7-801c-633f87ce662c?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20170828%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170828T143126Z&X-Amz-Expires=300&X-Amz-Signature=701b9aa96c5c6dc067b648ff01e59fb34246e489be5cce55764d383f766b34e8&X-Amz-SignedHeaders=host&actor_id=7320657&response-content-disposition=attachment%3B%20filename%3Dwewechat-1.0.0-x86_64.AppImage&response-content-type=application%2Foctet-stream'
# make AppImage executive
sudo chmod a+x wewechat-1.0.0-x86_64.AppImage
# prepare to install
./wewechat-1.0.0-x86_64.AppImage

from wewechat.

trazyn avatar trazyn commented on May 21, 2024

release 里的 appimage 不能安装么》

from wewechat.

ysh329 avatar ysh329 commented on May 21, 2024

Env.

Ubuntu 16.04 64bit

Installation

# dowload first
wget -c 'https://github-production-release-asset-2e65be.s3.amazonaws.com/96892030/31406bde-8b89-11e7-801c-633f87ce662c?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20170828%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170828T143126Z&X-Amz-Expires=300&X-Amz-Signature=701b9aa96c5c6dc067b648ff01e59fb34246e489be5cce55764d383f766b34e8&X-Amz-SignedHeaders=host&actor_id=7320657&response-content-disposition=attachment%3B%20filename%3Dwewechat-1.0.0-x86_64.AppImage&response-content-type=application%2Foctet-stream'
# make AppImage executive
sudo chmod a+x wewechat-1.0.0-x86_64.AppImage
# prepare to install
./wewechat-1.0.0-x86_64.AppImage

I think it's not install guide but execution guide. After executing ./wewechat-1.0.0-x86_64.AppImage, it didn't install on your machine but ran...... 🤣

from wewechat.

Julymycin avatar Julymycin commented on May 21, 2024

使用npm的时候报错
no such file or directory, open '/home/julymycin/package.json

from wewechat.

trazyn avatar trazyn commented on May 21, 2024

目测你是clone代码到 /home/julymycin 然后 npm install,然而你并没有进入到 clone的目录

from wewechat.

Julymycin avatar Julymycin commented on May 21, 2024

好吧,发现了,是我cd错了目录= =
谢谢~

from wewechat.

Julymycin avatar Julymycin commented on May 21, 2024

发现还是有点问题,进入目录后执行npm install,到这一步时报错:
$ npm install
npm WARN [email protected] requires a peer of postcss@^6.0.0 but none was installed.

npm ERR! code EINTEGRITY
npm ERR! sha1-L6nhJgX6EACdRFSdb82KY93g5P8= integrity checksum failed when using sha1: wanted sha1-L6nhJgX6EACdRFSdb82KY93g5P8= but got sha1-wiIFQMOugQj6pkVLq4Hfwy4DlrA=. (523763 bytes)

from wewechat.

trazyn avatar trazyn commented on May 21, 2024

from wewechat.

Julymycin avatar Julymycin commented on May 21, 2024

再来一遍就好了...但是,在这里
Packaging for linux x64 using electron 1.6.11 to ../release/linux-unpacked
Building AppImage for arch x64
报错,红色的报错信息老长了......
最后一部分日志是
16 verbose Linux 4.12.8-2-ARCH
17 verbose argv "/usr/bin/node" "/usr/bin/npm" "run" "package-linux"
18 verbose node v8.4.0
19 verbose npm v5.3.0
20 error code ELIFECYCLE
21 error errno 255
22 error [email protected] package-linux: npm run build && rm -rf release && build --linux --projectDir ./dist
22 error Exit status 255
23 error Failed at the [email protected] package-linux script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 255, true ]

from wewechat.

trazyn avatar trazyn commented on May 21, 2024

from wewechat.

Julymycin avatar Julymycin commented on May 21, 2024

完整的log吗?
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'run', 'package-linux' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prepackage-linux', 'package-linux', 'postpackage-linux' ]
5 info lifecycle [email protected]prepackage-linux: [email protected]
6 info lifecycle [email protected]
package-linux: [email protected]
7 verbose lifecycle [email protected]package-linux: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]
package-linux: PATH: /usr/lib/node_modules/npm/bin/node-gyp-bin:/home/julymycin/Downloads/weweChat/node_modules/.bin:/home/julymycin/bin:/other/things/in/path:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
9 verbose lifecycle [email protected]package-linux: CWD: /home/julymycin/Downloads/weweChat
10 silly lifecycle [email protected]
package-linux: Args: [ '-c',
10 silly lifecycle 'npm run build && rm -rf release && build --linux --projectDir ./dist' ]
11 silly lifecycle [email protected]package-linux: Returned: code: 255 signal: null
12 info lifecycle [email protected]
package-linux: Failed to exec package-linux script
13 verbose stack Error: [email protected] package-linux: npm run build && rm -rf release && build --linux --projectDir ./dist
13 verbose stack Exit status 255
13 verbose stack at EventEmitter. (/usr/lib/node_modules/npm/lib/utils/lifecycle.js:289:16)
13 verbose stack at emitTwo (events.js:125:13)
13 verbose stack at EventEmitter.emit (events.js:213:7)
13 verbose stack at ChildProcess. (/usr/lib/node_modules/npm/lib/utils/spawn.js:40:14)
13 verbose stack at emitTwo (events.js:125:13)
13 verbose stack at ChildProcess.emit (events.js:213:7)
13 verbose stack at maybeClose (internal/child_process.js:927:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
14 verbose pkgid [email protected]
15 verbose cwd /home/julymycin/Downloads/weweChat
16 verbose Linux 4.12.8-2-ARCH
17 verbose argv "/usr/bin/node" "/usr/bin/npm" "run" "package-linux"
18 verbose node v8.4.0
19 verbose npm v5.3.0
20 error code ELIFECYCLE
21 error errno 255
22 error [email protected] package-linux: npm run build && rm -rf release && build --linux --projectDir ./dist
22 error Exit status 255
23 error Failed at the [email protected] package-linux script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 255, true ]

from wewechat.

trazyn avatar trazyn commented on May 21, 2024

from wewechat.

Julymycin avatar Julymycin commented on May 21, 2024

@ysh329 我自己下载了AppImage了,然后运行后两行就是直接运行了呀
另外第一行的话,直接返回了403 forbidden

from wewechat.

Julymycin avatar Julymycin commented on May 21, 2024

@trazyn 完整的log就是我之前发的那24行~
如果是报错信息的话,就是:
Installing app dependencies for arch x64 to /home/julymycin/Downloads/weweChat/dist
Packaging for linux x64 using electron 1.6.11 to ../release/linux-unpacked
Building AppImage for arch x64
Error: Exit code: 127. Command failed: /home/julymycin/.cache/electron-builder/AppImage/AppImage-09-07-16-linux/xorriso -joliet on -volid AppImage -dev /home/julymycin/Downloads/weweChat/release/wewechat-1.0.0-x86_64.AppImage -padding 0 -map /home/julymycin/Downloads/weweChat/release/linux-unpacked /usr/bin -map /tmp/electron-builder-ZZTqQI/1.sh /AppRun -map /tmp/electron-builder-ZZTqQI/0-wewechat.desktop /wewechat.desktop -map /home/julymycin/Downloads/weweChat/resource/128x128.png /usr/share/icons/default/128x128/apps/wewechat.png -map /home/julymycin/Downloads/weweChat/resource/16x16.png /usr/share/icons/default/16x16/apps/wewechat.png -map /home/julymycin/Downloads/weweChat/resource/32x32.png /usr/share/icons/default/32x32/apps/wewechat.png -map /home/julymycin/Downloads/weweChat/resource/48x48.png /usr/share/icons/default/48x48/apps/wewechat.png -map /home/julymycin/Downloads/weweChat/resource/64x64.png /usr/share/icons/default/64x64/apps/wewechat.png -map /home/julymycin/Downloads/weweChat/resource/96x96.png /usr/share/icons/default/96x96/apps/wewechat.png -map /home/julymycin/Downloads/weweChat/resource/128x128.png /.DirIcon -map /home/julymycin/.cache/electron-builder/AppImage-packages/10.03.17 /usr/lib -chown_r 0 / -- -zisofs level=9:block_size=128k:by_magic=off set_filter_r --zisofs /
/home/julymycin/.cache/electron-builder/AppImage/AppImage-09-07-16-linux/xorriso: error while loading shared libraries: libreadline.so.6: cannot open shared object file: No such file or directory

/home/julymycin/.cache/electron-builder/AppImage/AppImage-09-07-16-linux/xorriso: error while loading shared libraries: libreadline.so.6: cannot open shared object file: No such file or directory

at /home/julymycin/Downloads/weweChat/node_modules/builder-util/src/util.ts:86:16
at ChildProcess.exithandler (child_process.js:277:5)
at emitTwo (events.js:125:13)
at ChildProcess.emit (events.js:213:7)
at maybeClose (internal/child_process.js:927:16)
at Socket.stream.socket.on (internal/child_process.js:348:11)
at emitOne (events.js:115:13)
at Socket.emit (events.js:210:7)
at Pipe._handle.close [as _onclose] (net.js:545:12)

From previous event:
at exec (/home/julymycin/Downloads/weweChat/node_modules/builder-util/src/util.ts:58:3)
at /home/julymycin/Downloads/weweChat/node_modules/electron-builder/src/targets/appImage.ts:94:5
at Generator.next ()
From previous event:
at AppImageTarget.build (/home/julymycin/Downloads/weweChat/node_modules/electron-builder/out/targets/appImage.js:167:11)
at taskManager.addTask.default.map.it (/home/julymycin/Downloads/weweChat/node_modules/electron-builder/src/platformPackager.ts:110:85)
From previous event:
at LinuxPackager.packageInDistributableFormat (/home/julymycin/Downloads/weweChat/node_modules/electron-builder/src/platformPackager.ts:110:41)
at /home/julymycin/Downloads/weweChat/node_modules/electron-builder/src/platformPackager.ts:106:10
From previous event:
at LinuxPackager.pack (/home/julymycin/Downloads/weweChat/node_modules/electron-builder/out/platformPackager.js:174:11)
at /home/julymycin/Downloads/weweChat/node_modules/electron-builder/src/packager.ts:259:24
From previous event:
at Packager.doBuild (/home/julymycin/Downloads/weweChat/node_modules/electron-builder/out/packager.js:338:11)
at /home/julymycin/Downloads/weweChat/node_modules/electron-builder/src/packager.ts:185:52
at Generator.next ()
From previous event:
at Packager.build (/home/julymycin/Downloads/weweChat/node_modules/electron-builder/out/packager.js:257:11)
at /home/julymycin/Downloads/weweChat/node_modules/electron-builder/src/builder.ts:266:40
at Generator.next ()
at build (/home/julymycin/Downloads/weweChat/node_modules/electron-builder/out/builder.js:69:21)
at loadEnv.then (/home/julymycin/Downloads/weweChat/node_modules/electron-builder/src/cli/cli.ts:49:4)
From previous event:
at build (/home/julymycin/Downloads/weweChat/node_modules/electron-builder/out/builder.js:69:21)
at loadEnv.then (/home/julymycin/Downloads/weweChat/node_modules/electron-builder/out/cli/cli.js:155:79)
at runCallback (timers.js:781:20)
at tryOnImmediate (timers.js:743:5)
at processImmediate [as _immediateCallback] (timers.js:714:5)
From previous event:
at Object.args [as handler] (/home/julymycin/Downloads/weweChat/node_modules/electron-builder/out/cli/cli.js:155:68)
at Object.self.runCommand (/home/julymycin/Downloads/weweChat/node_modules/yargs/lib/command.js:233:22)
at Object.Yargs.self._parseArgs (/home/julymycin/Downloads/weweChat/node_modules/yargs/yargs.js:1018:24)
at Object.get [as argv] (/home/julymycin/Downloads/weweChat/node_modules/yargs/yargs.js:927:19)
at Object. (/home/julymycin/Downloads/weweChat/node_modules/electron-builder/out/cli/cli.js:151:465)
at Module._compile (module.js:573:30)
at Object.Module._extensions..js (module.js:584:10)
at Module.load (module.js:507:32)
at tryModuleLoad (module.js:470:12)
at Function.Module._load (module.js:462:3)
at Function.Module.runMain (module.js:609:10)
at startup (bootstrap_node.js:158:16)
at bootstrap_node.js:598:3
npm ERR! code ELIFECYCLE
npm ERR! errno 255
npm ERR! [email protected] package-linux: npm run build && rm -rf release && build --linux --projectDir ./dist
npm ERR! Exit status 255
npm ERR!
npm ERR! Failed at the [email protected] package-linux script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/julymycin/.npm/_logs/2017-08-29T06_27_59_482Z-debug.log

from wewechat.

trazyn avatar trazyn commented on May 21, 2024

@Julymycin /home/julymycin/.cache/electron-builder/AppImage/AppImage-09-07-16-linux/xorriso: error while loading shared libraries: libreadline.so.6: cannot open shared object file: No such file or directory

下载的依赖有问题,国内网络到aws的s3 经常会被断开或重置,国内装npm依赖最好挂ss或者vpn,或者用淘宝的cnpm

from wewechat.

Julymycin avatar Julymycin commented on May 21, 2024

好的,谢啦

from wewechat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.