From b8bcecdc05a15ebe16c84c020253b088a8d8bf1f Mon Sep 17 00:00:00 2001 From: Pavel Evstigneev Date: Thu, 7 Jun 2018 02:10:32 +0800 Subject: [PATCH] Update build instructions --- BUILDING_DEPS.md | 2 +- CONTRIBUTING.md | 6 +++--- packager.js | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/BUILDING_DEPS.md b/BUILDING_DEPS.md index 8027b30c..3164a0bc 100644 --- a/BUILDING_DEPS.md +++ b/BUILDING_DEPS.md @@ -21,7 +21,7 @@ cp /Applications/Postgres.app/Contents/Versions/latest/bin/pg_dump ./vendor/darw install_name_tool -change /Applications/Postgres.app/Contents/Versions/10/lib/libpq.5.dylib @loader_path/libpq.5.10.dylib ./vendor/darwin/psql install_name_tool -change /Applications/Postgres.app/Contents/Versions/10/lib/libpq.5.dylib @loader_path/libpq.5.10.dylib ./vendor/darwin/pg_dump -PATH=/Applications/Postgres.app/Contents/Versions/latest/bin:$PATH ./node_modules/.bin/electron-rebuild -n 54 +PATH=/Applications/Postgres.app/Contents/Versions/latest/bin:$PATH ./node_modules/.bin/electron-rebuild -n 59 install_name_tool -change /Applications/Postgres.app/Contents/Versions/10/lib/libpq.5.dylib @loader_path/../../../../vendor/darwin/libpq.5.10.dylib node_modules/libpq/build/Release/addon.node diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 41b91c6e..2c989fad 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -30,9 +30,9 @@ As a workaround, before creating package need to delete developer dependecies fr # make sure you have ran "rake rebuild_ext" # delete "devDependencies" from package.json npm prune -npm install -g electron-packager@10.1.1 -npm install -g requireg -sudo npm install -g electron@1.7.12 +npm install -g electron-packager@12.1.0 +npm install requireg +sudo npm install -g electron@2.0.2 node packager.js rake build_dmg ``` diff --git a/packager.js b/packager.js index 766edf1c..2c78610b 100644 --- a/packager.js +++ b/packager.js @@ -1,11 +1,11 @@ -var requireg = require('requireg') +var requireg = require('requireg'); var packager = requireg('electron-packager'); var rebuild = requireg('electron-rebuild').rebuild; var packageJson = require('./package.json'); var child_process = require('child_process'); var opts = { - electronVersion: '1.7.12', + electronVersion: '2.0.2', dir: '.', arch: 'x64', platform: 'darwin',