0.0.1 • Published 7 years ago
@marshallofsound/electron-not-down-load v0.0.1
@electron/download
Download Electron release artifacts
Usage
Simple: Downloading an Electron Binary ZIP
import { downloadElectron } from '@electron/download';
const zipFilePath = await downloadElectron('4.0.4');Advanced: Downloading a macOS Electron Symbol File
import { downloadElectron } from '@electron/download';
const zipFilePath = await downloadElectron({
version: '4.0.4',
platform: 'darwin',
assetName: 'electron',
assetSuffix: 'symbols',
arch: 'x64',
});How It Works
This module downloads Electron to a known place on your system and caches it so that future requests for that asset can be returned instantly. The cache locations are:
- Linux:
$XDG_CACHE_HOMEor~/.cache/electron/ - MacOS:
~/Library/Caches/electron/ - Windows:
%LOCALAPPDATA%/electron/Cacheor~/AppData/Local/electron/Cache/
0.0.1
7 years ago