当前位置:网站首页>Teach you to turn the web page into Exe file (super simple)

Teach you to turn the web page into Exe file (super simple)

2022-06-23 21:22:00 Star ten weaves

This article is also published on my blog : Teach you to turn the web page into .exe file . - Secondary yuan フロントエンド

Have you ever thought about turning web pages into computer software

have access to Node.js

download :Node.js (nodejs.org)

It may pop up during installation PowerShell, Don't party , This is normal .

Press... After installation "Windows Winkey +R" Turn on run , Then input :

cmd

That is, the administrator's command indicator

Effect after input

Click OK after input , Then the console pops out !

Enter the command after installation :

Npm -v
Node -v
  • Be careful :npm -v as well as node -v,-v There is a space between and the previous statement .

If the version number appears after entering, the installation will be successful , Otherwise, it needs to be installed again .

At this time , We need to install npm This plugin , The specific command is as follows :

npm install nativefier -g

When the effect appears and the progress bar ends

We need to install cnpm, The specific command is as follows :

npm install -g cnpm --registry=https://registry.npm.taobao.org

Equal progress bar

And then , We'll pass it again cnpm install electron, The specific command is as follows :

cnpm install -g electron

At this time , We type in the command :

nativefier --name " The software name " --tray " website "
 For example, to convert B Official website :nativefier --name "bilibili" --tray "https://www.bilibili.com"

Now let's just wait for the conversion to complete !

  • Be careful : The software name must contain only English and the underscore and dollar characters .

Wait for the directory display after the conversion

But you may find that :

The details are incorrect

At this time, we need to modify

You need this software

download :http://101.32.99.5:5212/s/mac2

Take us bilibili.exe Drag Software

Then find the version information , Just change it

After modification, click the compile script to save

Then delete the original

It's great to use

notes : Only in 64 Bit system running

原网站

版权声明
本文为[Star ten weaves]所创,转载请带上原文链接,感谢
https://yzsam.com/2021/12/202112250937399449.html