This document provides instructions for creating a desktop application using the descjop template for Clojure projects. It describes downloading Electron, initializing a new project, building the project for development and production, and packaging the application. The template supports Om and Reagent frameworks and runs on macOS, Windows, and Linux. It allows adding basic menus and shortcuts and outlines future goals like supporting main process figwheel and UI frameworks.
7. Features
● leiningen project template
○ Minimum project(no use library)
○ Om based project
○ Reagent based project
● Include helper alias
○ init
○ externs
○ build
● Support macOS, Windows, Linux
● Support develop mode (with figwheel)
● Support packaging app
18. Build project
production and development mode.
// build JavaScript both develop and production mode
$ lein descjop-once
// build for develop
$ lein descjop-once-dev
// build for production
$ lein descjop-once-prod
20. Run with figwheel
Open other terminal window, before run application.
and, Run Application
$ lein descjop-figwheel
// for Windows
$ .electronelectron.exe app/dev
// for macOS
$ ./electron/Electron.app/Contents/MacOS/Electron app/dev
22. Package Project
(If not already installed Electron-packager.)
Supported Platforms are macOS, Windows 32/64 bit and Linux
$ npm install -g electron-packager
// for OSX
$ lein descjop-uberapp-osx
// for windows 64bit app
$ descjop-uberapp-win64