mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-10 11:05:47 +00:00
e7633c6d2f
* Replace all mentions of MyEtherWallet in translations with MyCrypto * Replace all translation mentions of kvhnuke/etherwallet repo with MyCryptoHQ/MyCrypto repo. * Replace all instances of MEW with MyCrypto in translations. * Replace all instances of myetherwallet.com with mycrypto.com * First pass of myetherwallet -> mycrypto in codebase. * Replace most MEWs and mews with MyCrypto or MyC or myc * Update all assets, clean out unused old assets. * Adjust v3 url * Convert all links to help articles to a help link component to make future changes easier. * Rework onboarding images * Adjust logo colors due to CMY issue. * Update donation address, remove mentions of mewtopia.eth * Update license * Update sosh meed and referral links. * Fix more translations strings. * Tscheck fix. * Update shapeshift api key.
69 lines
1.9 KiB
JavaScript
69 lines
1.9 KiB
JavaScript
'use strict';
|
|
const path = require('path');
|
|
const fs = require('fs');
|
|
const rimraf = require('rimraf');
|
|
const builder = require('electron-builder');
|
|
const config = require('./config');
|
|
|
|
function shouldBuildOs(os) {
|
|
return !process.env.ELECTRON_OS || process.env.ELECTRON_OS === os;
|
|
}
|
|
|
|
async function build() {
|
|
console.log('Beginning Electron build process...');
|
|
const jsBuildDir = path.join(config.path.output, 'electron-js');
|
|
const electronBuildsDir = path.join(config.path.output, 'electron-builds');
|
|
const compression = 'store';
|
|
|
|
console.log('Clearing out old builds...');
|
|
rimraf.sync(electronBuildsDir);
|
|
|
|
// Builder requires package.json be in the app directory, so copy it in
|
|
fs.copyFileSync(
|
|
path.join(config.path.root, 'package.json'),
|
|
path.join(jsBuildDir, 'package.json')
|
|
);
|
|
|
|
console.log('Building...');
|
|
await builder.build({
|
|
mac: shouldBuildOs('mac') ? ['zip', 'dmg'] : undefined,
|
|
win: shouldBuildOs('windows') ? ['nsis'] : undefined,
|
|
linux: shouldBuildOs('linux') ? ['AppImage'] : undefined,
|
|
x64: true,
|
|
ia32: true,
|
|
config: {
|
|
appId: 'com.github.mycrypto.mycryptohq',
|
|
productName: 'MyCrypto',
|
|
directories: {
|
|
app: jsBuildDir,
|
|
output: electronBuildsDir,
|
|
},
|
|
mac: {
|
|
category: 'public.app-category.finance',
|
|
icon: path.join(config.path.electron, 'icons/icon.icns'),
|
|
compression
|
|
},
|
|
win: {
|
|
icon: path.join(config.path.electron, 'icons/icon.ico'),
|
|
compression
|
|
},
|
|
linux: {
|
|
category: 'Finance',
|
|
compression
|
|
},
|
|
publish: {
|
|
provider: 'github',
|
|
owner: 'MyCryptoHQ',
|
|
repo: 'MyCrypto',
|
|
vPrefixedTagName: false
|
|
},
|
|
// IMPORTANT: Prevents extending configs in node_modules
|
|
extends: null
|
|
}
|
|
});
|
|
|
|
console.info(`Electron builds are finished! Available at ${electronBuildsDir}`);
|
|
}
|
|
|
|
build();
|