Skip to content

Instantly share code, notes, and snippets.

View thomasdarde's full-sized avatar

Thomas Darde thomasdarde

View GitHub Profile
@thomasdarde
thomasdarde / generateZipAndBlockamp.js
Created July 23, 2020 07:43 — forked from harshitsilly/generateZipAndBlockamp.js
Electron builder rebuild zip and update blockmap to work with auto-updater.
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;