Skip to content

App build process

Tomasz Dziuda edited this page Jun 19, 2018 · 20 revisions

Required software

For app build you will need the following software installed:

  • node.js (8.*)
  • npm (>= 5.*)
  • python (>= 2.5.0 && < 3.0.0)
  • electron (in version used by Publii), electron-packager, node-gyp and gulp node.js modules installed globally

Only for Windows:

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

Only for macOS:

  • Install XCode

Build process

npm install
npm run dev
npm run build

keytar, sharp and node-expat node modules compilation

Run the following command in the directory of these modules:

node-gyp rebuild --target=ELECTRON_VERSION --arch=x64 --dist-url=https://atom.io/download/atom-shell

ELECTRON_VERSION - replace with current version of the Electron used in the app.

Clone this wiki locally