Skip to content

Instantly share code, notes, and snippets.

Avatar

Thomas Darde thomasdarde

View GitHub Profile
@thomasdarde
thomasdarde / generateZipAndBlockamp.js
Created Jul 23, 2020 — forked from harshitsilly/generateZipAndBlockamp.js
Electron builder rebuild zip and update blockmap to work with auto-updater.
View generateZipAndBlockamp.js
const path = require('path');
const { execSync } = require('child_process');
const fs = require('fs');
const yaml = require('js-yaml');
const { appBuilderPath } = require('app-builder-bin');
const currentWorkingDirectory = process.cwd();
const packageInfo = require(path.join(currentWorkingDirectory, 'package.json'));
const APP_NAME = packageInfo.build.productName;
const APP_VERSION = process.argv[2] ? process.argv[2] : packageInfo.version;