Build cross-platform desktop apps with Nuxtjs. Low ram usage and binary size optimize.
It uses Cocoa/WebKit on macOS, gtk-webkit2 on Linux and Edge on Windows 10.
Application start webview
Install golang https://golang.org/doc/install
for linux:
sudo apt-get install libwebkit2gtk-4.0-dev
sudo apt-get -y install make
# install dependencies
$ npm install
# serve with hot reload at localhost:3000
$ npm run dev
# build for production and launch server
$ npm run build
$ npm run start
# generate static project
$ npm run generate
# generate static project & build binary (Golang use)
$ npm run builder
# generate static project & build binary (Deno required)
$ npm run builder:deno
For detailed explanation on how things work, check out Nuxt.js docs.
linux:
make build-deb
darwin:
Modify assets/Info.plist & icon.icns
make build-darwin
window:
GOOS=windows GOARCH=amd64 go build -ldflags="-H windowsgui" -v -o bin/moomin-win32-amd64.exe .
For detailed explanation, check out Makefile.
- nuxt/module: https://modules.nuxtjs.org/
- nuxt/http: https://http.nuxtjs.org/
- nuxt/pwa: https://pwa.nuxtjs.org/
- nuxt/device: https://github.com/nuxt-community/device-module
- @stephendltg/e-bus : https://www.npmjs.com/package/@stephendltg/e-bus
- nuxt-vuex-localstorage: https://www.npmjs.com/package/nuxt-vuex-localstorage
- Vue i18n: https://kazupon.github.io/vue-i18n/
sudo dpkg -i nom_du_paquet.deb
sudo apt-get remove nom_du_paquet