专栏名称: __ihhu
前段
目录
相关文章推荐
前端大全  ·  真的建议所有前端立即拿下软考(红利期) ·  5 天前  
前端大全  ·  Create React ... ·  6 天前  
前端大全  ·  React+AI 技术栈(2025 版) ·  4 天前  
商务河北  ·  经开区“美•强•优”三重奏 ·  4 天前  
51好读  ›  专栏  ›  __ihhu

一款使用 Vue.js 构建的跨平台原生桌面应用 Vuido

__ihhu  · 掘金  · 前端  · 2018-06-07 00:49

正文

Create native desktop applications for Windows, OS X and Linux using Vue.js .

NPM module MIT License

Introduction

Vuido makes it possible to create lightweight, native desktop applications using Vue.js. Application using Vuido can run on Windows, OS X and Linux, using native GUI components, and don't require Electron.

Under the hood, Vuido uses the libui library which provides native GUI components for each desktop platform, and the libui-node bindings for Node.js.

Vuido supports most of the standard Vue.js API and it's compatible with many Vue.js extensions, for example Vuex. Applications using Vuido can also use all standard Node.js modules and any packages compatible with Node.js.

Prerequisites

The following prerequisites are needed to compile libui-node , which is used by Vuido.

Windows

npm install --global --production windows-build-tools

Linux

If they are not provided by default in your distribution:

Ubuntu / Debian

sudo apt install build-essential libgtk-3-dev

OS X

  • Xcode
xcode-select --install

Quick setup

The easiest way to start using Vuido is to use vue-cli to create the scaffolding of the project.

First make sure that vue-cli is installed globally:

npm install -g vue-cli

Run the following command to create the project (replace my-project with the name of your project):

vue init mimecorg/vuido-webpack-template my-project

Enter the directory created by vue-cli and install all dependencies:

cd my-project
npm install

Now you can build and run your application:

npm run build
npm start

Packaging

Although native desktop applications can run in the standard Node.js environment, it is recommended to use LaunchUI to package and distribute them to end users.







请到「今天看啥」查看全文