当前位置:网站首页>Teach you how to develop desktop applications with web pages
Teach you how to develop desktop applications with web pages
2022-06-23 20:21:00 【Mark community】
1、 download nw.js
https://nwjs.io/
The best download sdk edition . 2、 Unzip and open the installation package
After downloading , Unpack the open
In the picture app The folder was created by myself , You also need to create one yourself , Put your project files in it . app There is usually one in the folder index.html( The page display ), You also need to create a package.json file ( Parameter configuration ):
{ “name”: “first app”, “main”: “index.html”, “version”: “1.0”, “window”: { “height”: 300, “width”: 360, “show”: true, “title”: “first app”, “toolbar”: true, “frame”: true, “resizable”:false, “icon”: “./icon.png”, “transparent”:false } }
Here's what the parameters mean :
name: This app The name of , You can take any ~ main: representative app Entry file , What we use here is index.html, Is that when app What's the first page at launch . version: Version number , It is generally used for subsequent version upgrade . window: Set the window . height: Height , Unit pixel . width: Width , Unit pixel . show: When the program click to run, whether to display the window directly . title: Window title , When the entry page title Use this property as the window title when the label is empty . toolbar: Whether to enable the toolbar . frame: Use border or not , That is to say, it contains minimization , Close the border of the etc button . resizable: Whether the window can be resized . icon: Window icon , It's also the icon shown in the Quick Launch bar . transparent: Whether the window background is transparent .
And then app All the files in the folder are compressed into app.zip The compressed file of , Change it to app.nw file . take app.nw from app Paste into the root directory , then Open the command line tool and merge it into exe file :
copy /b “E:\myweb\maomin\nwjs\nw.exe”+“E:\myweb\maomin\nwjs\app.nw” “E:\myweb\maomin\nwjs\app.exe”
Here's just an example , According to their own storage path to . When the merge is complete, you will see a file named app.exe The file of . 3、 download Enigma Virtual Box
For more information, please refer to the original , Reproduced from :https://blog.csdn.net/weixin_44519496/article/details/119924554
边栏推荐
- Hotline salon issue 26 - cloud security session
- 【Golang】快速复习指南QuickReview(三)——map
- Open source SPL redefines OLAP server
- 基于SSM实现微博系统
- 数字化采购转型解决方案:SaaS采购管理平台推进企业阳光采购
- Implementing MySQL fuzzy search with node and express
- 混沌工程,了解一下
- Uniswap founder: no independent token will be issued for genie, and Genie products will be integrated into the uniswap interface
- SAP实施项目上的内部顾问与外部顾问,相互为难还是相互成就?
- ElastricSearch第二弹之分片原理
猜你喜欢

Use of the vs2022scanf function. An error is reported when using scanf - the return value is ignored: Solutions

Kotlin jetpack compose Tab的渲染 AnimatedVisibility的使用

Why is only one value displayed on your data graph?

Importance and purpose of test

ElastricSearch第二弹之分片原理

Kubernetes 资源拓扑感知调度优化

开源 SPL 重新定义 OLAP Server

Application de JDBC dans les essais de performance

Open source SPL redefines OLAP server

Rstudio 1.4 software installation package and installation tutorial
随机推荐
怎么开户?在国海证券开户安全吗?需要带什么?
@@脚本实现Ishell自动部署
金九银十,靠这个细节,offer拿到手软!
Technology sharing | wvp+zlmediakit realizes streaming playback of camera gb28181
Game asset reuse: a new way to find required game assets faster
Application de JDBC dans les essais de performance
Activity registration | introduction to mongodb 5.0 sequential storage features
重庆 奉节耀奎塔,建成后当地连中五名进士,是川江航运的安全塔
Elastricearch's fragmentation principle of the second bullet
SQL聯合查詢(內聯、左聯、右聯、全聯)的語法
20省市公布元宇宙路线图
【Golang】深究字符串——从byte rune string到Unicode与UTF-8
Goldfish rhca memoirs: do447 managing user and team access -- effectively managing users with teams
【Golang】使用Go语言操作etcd——配置中心
宝安区航城街道领导一行莅临联诚发参观调研
解读2022年度敏捷教练行业现状报告
What are the requirements for new bonds? Is it safe to play new bonds
ZABBIX monitoring - Aruba AP operation data
MySQL时间函数的运用,简单问题
Application of JDBC in performance test