Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

可否写下工程搭建? #1

Open
sollyu opened this issue Mar 1, 2019 · 9 comments
Open

可否写下工程搭建? #1

sollyu opened this issue Mar 1, 2019 · 9 comments

Comments

@sollyu
Copy link

sollyu commented Mar 1, 2019

可否写下工程搭建、编译、发布等步骤?
外门程序员想手动编译。

@Fxxk-XueXiQiangGuo
Copy link
Member

Fxxk-XueXiQiangGuo commented Mar 1, 2019

需要安装 nodejs 和 npm

是不需要编译的,直接可以运行

npm install [email protected]
npx electron .

打包

npm install electron-packager
npx electron-packager . fuck-xuexiqiangguo \
    --executable-name="Fuck学习强国" \
    --electron-version="3.0.15" --overwrite --asar --icon="logo.png" \
    --ignore="node_modules" --ignore="package-lock.json"

@njzjz
Copy link

njzjz commented Mar 5, 2019

需要安装 nodejs 和 npm

是不需要编译的,直接可以运行

npm install [email protected]
npx electron .

打包

npm install electron-packager
npx electron-packager . fuck-xuexiqiangguo \
    --executable-name="Fuck学习强国" \
    --electron-version="3.0.15" --overwrite --asar --icon="logo.png" \
    --ignore="node_modules" --ignore="package-lock.json"

Can you publish the source code to npm?

@cs6699
Copy link

cs6699 commented Mar 5, 2019

这个软件只能玩视频,要是能自动答题就更完美了

@unixzii
Copy link

unixzii commented Mar 6, 2019

需要安装 nodejs 和 npm
是不需要编译的,直接可以运行

npm install [email protected]
npx electron .

打包

npm install electron-packager
npx electron-packager . fuck-xuexiqiangguo \
    --executable-name="Fuck学习强国" \
    --electron-version="3.0.15" --overwrite --asar --icon="logo.png" \
    --ignore="node_modules" --ignore="package-lock.json"

Can you publish the source code to npm?

@njzjz You said you had reported the author of this issue, I don't think you need this cheat app. What performance art are you performing? You just make me SUCK.

@njzjz
Copy link

njzjz commented Mar 6, 2019 via email

@ciao1
Copy link

ciao1 commented Mar 8, 2019

大佬可以的!我还想自己搞个程序..无奈编程能力弱渣

@metalbreeze
Copy link

xming+虚机用不了,
不论是纯linux版本,
还是src 目录下 执行 “npx electron .”
没有任何错误,过一会就退出了(xeyes、xclock没有问题)
有啥办法么?

@h4xx3d
Copy link

h4xx3d commented Apr 5, 2019

实测必须把png转换为ico才能正常打包,否则rcedit.exe找不到图标文件

@op69qs
Copy link

op69qs commented Apr 12, 2019

nodejs有版本要求吗

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

No branches or pull requests

9 participants