Skip to content
This repository was archived by the owner on Oct 4, 2019. It is now read-only.

Commit de04b9b

Browse files
committed
fix build (correct app name, icons, images, arch)
1 parent c75a11b commit de04b9b

File tree

5 files changed

+25
-18
lines changed

5 files changed

+25
-18
lines changed

gulpfile.js

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,11 @@ function platformIsActive(osArch) {
8080
// TASKS
8181
gulp.task('set-variables-mist', () => {
8282
type = 'mist';
83-
applicationName = 'Mist';
83+
applicationName = 'Ethereum Classic Mist';
8484
});
8585
gulp.task('set-variables-wallet', () => {
8686
type = 'wallet';
87-
applicationName = 'Ethereum Wallet';
87+
applicationName = 'Ethereum Classic Wallet';
8888
});
8989

9090

@@ -129,6 +129,11 @@ gulp.task('copy-app-folder-files', ['copy-app-source-files'], (done) => {
129129

130130

131131
gulp.task('copy-build-folder-files', ['clean:dist', 'copy-app-folder-files'], () => {
132+
//fix not generating icons
133+
gulp.src([`./icons/${type}/icons/*`], { base: './' })
134+
.pipe(flatten())
135+
.pipe(gulp.dest(`./dist_${type}/build/icons`));
136+
132137
return gulp.src([
133138
`./icons/${type}/*`,
134139
'./interface/public/images/dmg-background.jpg',
@@ -218,7 +223,7 @@ gulp.task('build-dist', ['download-signatures', 'copy-i18n'], (cb) => {
218223
console.log('Bundling platforms: ', options.platform);
219224

220225
const appPackageJson = _.extend({}, packJson, {
221-
name: applicationName.replace(/\s/, ''),
226+
name: applicationName.replace(/\s/g, ''),
222227
productName: applicationName,
223228
description: applicationName,
224229
homepage: 'https://github.com/ethereumproject/mist',
@@ -247,19 +252,21 @@ gulp.task('build-dist', ['download-signatures', 'copy-i18n'], (cb) => {
247252
],
248253
},
249254
dmg: {
250-
// background: '../build/dmg-background.jpg', //TODO
255+
background: '../build/dmg-background.jpg',
251256
'icon-size': 128,
252-
contents: [{
253-
x: 441,
254-
y: 448,
255-
type: 'link',
256-
path: '/Applications',
257-
},
257+
contents: [
258258
{
259-
x: 441,
260-
y: 142,
259+
x: 470,
260+
y: 135,
261+
type: 'link',
262+
path: '/Applications',
263+
},
264+
{
265+
x: 125,
266+
y: 135,
261267
type: 'file',
262-
}],
268+
}
269+
],
263270
},
264271
},
265272
directories: {
@@ -308,8 +315,8 @@ gulp.task('release-dist', ['build-dist'], (done) => {
308315
shell.rm('-rf', releasePath);
309316
shell.mkdir('-p', releasePath);
310317

311-
const appNameHypen = applicationName.replace(/\s/, '-');
312-
const appNameNoSpace = applicationName.replace(/\s/, '');
318+
const appNameHypen = applicationName.replace(/\s/g, '-');
319+
const appNameNoSpace = applicationName.replace(/\s/g, '');
313320
const versionDashed = version.replace(/\./g, '-');
314321

315322
const cp = (inputPath, outputPath) => {

icons/wallet/dmg-background.jpg

114 KB
Loading

icons/wallet/icons/512x512.png

95.3 KB
Loading

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "Mist",
3-
"version": "0.9.0",
3+
"version": "0.9.1",
44
"license": "GPL-3.0",
5-
"author": "Ethereum Classic Community",
5+
"author": "Ethereum Classic Community <splix@ethereumclassic.org>",
66
"contributors": [
77
"Ethereum Mist Team <avsa@ethereum.org>"
88
],

scripts/build-dist.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ if (argv.linux) {
2323
}
2424

2525
builder.build({
26-
targets: builder.createTargets(targets, null, 'all'),
26+
targets: builder.createTargets(targets, null, 'x64'),
2727
devMetadata: {
2828
build: {
2929
afterPack(params) {

0 commit comments

Comments
 (0)