Skip to main content

electron

· One min read

install

npm install -g cnpm --registry=https://registry.npm.taobao.org
alias cnpm="npm --registry=https://registry.npm.taobao.org \
--cache=$HOME/.npm/.cache/cnpm \
--disturl=https://npm.taobao.org/dist \
--userconfig=$HOME/.cnpmrc"

cnpm install -g electron-packager

electron-packager . echo-test --platform=win32 --arch=x64 --icon=./app/assets/images/tx.jpg --overwrite --out ./dist --version=1.1.0