8000 Update Master to 0.7.5 by alexvandesande · Pull Request #816 · ethereum/mist · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Sep 5, 2020. It is now read-only.

Update Master to 0.7.5 #816

Merged
merged 85 commits into from
Jun 15, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
85 commits
Select commit Hold shift + click to select a range
c6b66c6
Remove old git diff tags
hiddentao May 11, 2016
302f705
Merge remote-tracking branch 'mist/develop' into develop
hiddentao May 11, 2016
dd1b4ed
Merge remote-tracking branch 'mist/develop' into develop
hiddentao May 14, 2016
58862cd
Merge remote-tracking branch 'mist/develop' into develop
hiddentao May 17, 2016
21d3baa
Merge remote-tracking branch 'mist/develop' into develop
hiddentao May 17, 2016
61cc695
updated nodes (#655)
duckized May 18, 2016
9e5b9ca
Upgrade code to work with Electron 1.0.1 (#651)
hiddentao May 18, 2016
3471f5e
Korean Translation (#645)
atomrigs May 18, 2016
63a7cc3
Merge remote-tracking branch 'mist/develop' into develop
hiddentao May 19, 2016
9fcc40e
fixed linux32 node path and binary (#665)
luclu May 19, 2016
af5b583
Node startup and synchronization improvements (#559)
hiddentao May 19, 2016
66f4637
Merge remote-tracking branch 'mist/develop' into develop
hiddentao May 20, 2016
06b7d92
remove old redundant code
hiddentao May 20, 2016
1857f98
Check for node startup error (#673)
hiddentao May 23, 2016
dd932b7
UI Changes to network indicator (#675)
duckized May 23, 2016
93ccf29
untracked public/i18n (#692)
duckized May 23, 2016
b16ddc6
small typo: some_where (#693)
duckized May 23, 2016
2324bf6
Merge branch 'remove_extra_code' of https://github.com/hiddentao/mist…
duckized May 23, 2016
2325ba9
Remove old, redundant code (#674)
hiddentao May 23, 2016
035b258
Integrate #601 along with some improvements to IPC Path
duckized May 23, 2016
db485a9
Merge branch 'develop' of https://github.com/ethereum/mist into develop
8000 duckized May 23, 2016
e46fc79
updates nodes to 1.4.5
duckized May 25, 2016
882af77
update the menu string
duckized May 25, 2016
664bbd1
Pass custom CLI options to the Ethereum node (#689)
hiddentao May 25, 2016
d3fd8d2
Nav bar glitch and new art for Mist (#696)
duckized May 25, 2016
3d61108
Merge pull request #708 from ethereum/update-nodes
frozeman May 25, 2016
18f4a28
added node linux 32 (#711)
frozeman May 25, 2016
4908a10
added unlock and send (#700)
frozeman May 25, 2016
98aa070
Check for update at startup and inform the user if a new version is a…
hiddentao May 26, 2016
9781898
Remove dependency on node log output for detecting startup success (#…
hiddentao May 26, 2016
d880b60
Norwegian Bokmål translation (#705)
sandakersmann May 26, 2016
216c0e5
bump version to 0.7.5
duckized May 27, 2016
01104b0
Upgrade to web3 version in order to fix broken Send tx funtionality
hiddentao May 29, 2016
e8833ef
update web3 to npm version
hiddentao May 30, 2016
4c24421
Suggestions and misspelling (#753)
AlessandroCrepaldi May 31, 2016
fb9d09d
fixed preloader scripts
frozeman May 31, 2016
e113316
Merge branch 'develop' of github.com:ethereum/mist into develop
frozeman May 31, 2016
b8825f6
Merge pull request #741 from hiddentao/fix_web3_dep
frozeman Jun 1, 2016
048610e
changed file permissions back
frozeman Jun 1, 2016
b6b5107
changed file permissions back
frozeman Jun 1, 2016
1aaedac
Merge branch 'develop' of github.com:ethereum/mist into develop
frozeman Jun 1, 2016
521326e
Fix Mist/Wallet app bundling (#721)
hiddentao Jun 1, 2016
4070542
Minor changes (#769)
AlessandroCrepaldi Jun 2, 2016
99d92e9
Full translation in italian (#768)
AlessandroCrepaldi Jun 2, 2016
5010556
start ci
hiddentao Jun 6, 2016
c002f1d
trigger build
hiddentao Jun 6, 2016
266207c
only build on node 4g
hiddentao Jun 6, 2016
a05cce7
fix deps
hiddentao Jun 6, 2016
d59e27a
Merge pull request #782 from ethereum/ci
hiddentao Jun 6, 2016
aa77b57
test develop branch
hiddentao Jun 6, 2016
e2c0567
added alex and fabian to notification list
hiddentao Jun 6, 2016
cd8dcf7
corrected %appdata% path in readme (#776)
luclu Jun 6, 2016
6c59a98
Refactoring Dapp IPC connection (#724)
hiddentao Jun 6, 2016
3eca456
adds default wallet hosted by github (#767)
duckized Jun 6, 2016
5a95a0a
Refactor splash screen (#772)
duckized Jun 6, 2016
bc370c5
update geth to 1.4.6 + win32 support (#784)
luclu Jun 6, 2016
16dc6ca
update travis notification email addr
hiddentao Jun 7, 2016
a423ca3
Fix problem with geth node being detached (#789)
hiddentao Jun 8, 2016
ee26bea
Changes to onboarding screen (#786)
duckized Jun 8, 2016
16e85af
fix handling of array results
hiddentao Jun 8, 2016
0a47a82
fix handling of results - ensure json result is always set
hiddentao Jun 9, 2016
ee80b66
readme: beautify privatenet ipcpath
Jun 9, 2016
c19f727
fix remaining issues
hiddentao Jun 10, 2016
9edb797
Merge pull request #800 from luclu/change_readme_priv_path
luclu Jun 10, 2016
64f52a3
Merge branch 'develop' into fix_payload
hiddentao Jun 13, 2016
3586c11
ensure error reponse doesn't include method and params
hiddentao Jun 13, 2016
1551664
upgrade to electron 1.2.2
hiddentao Jun 13, 2016
07b27a1
Fix the testnet label alignment (#792)
duckized Jun 13, 2016
1f8812c
Merge branch 'fix_payload' of https://github.com/hiddentao/mist into …
evertonfraga Jun 13, 2016
2231118
Merge branch 'hiddentao-fix_payload' into develop
evertonfraga Jun 13, 2016
134033b
Merge branch 'develop' into electron_122
hiddentao Jun 14, 2016
fc31a9f
fix web3.isConnected() issue
hiddentao Jun 14, 2016
5f1b4e7
Merge pull request #811 from hiddentao/electron_122
frozeman Jun 14, 2016
a2a60ae
fixes issue where onboarding screen would not appear
duckized Jun 14, 2016
8ae893e
Merge pull request #822 from ethereum/onboarding-fix
frozeman Jun 15, 2016
3117c4d
fixed dragging
frozeman Jun 15, 2016
c654097
adds a drag region to the mist sidebar (#820)
duckized Jun 15, 2016
dd77bfa
download nodes
frozeman Jun 15, 2016
e9225cd
added download-nodes
frozeman Jun 15, 2016
28e5d39
Merge branch 'develop' of github.com:ethereum/mist into develop
frozeman Jun 15, 2016
c461096
remove unecessary packages
frozeman Jun 15, 2016
0a472ce
remove unecessary drags
frozeman Jun 15, 2016
39e71bc
added gulp update nodes to travis
frozeman Jun 15, 2016
2c75b9a
Update menu items label
duckized Jun 15, 2016
83d4c33
update eth to 1.2.9 (#825)
duckized Jun 15, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
.DS_Store
node_modules/
packages/
interface_build/
interface/public/i18n/
dist_wallet/
dist_mist/
dist_mist/
config.json
nodes/geth/
27 changes: 27 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
sudo: required
dist: trusty

language: node_js

branches:
only:
- develop

node_js:
- "4"

before_script:
- "npm install"
- "npm install -g electron-prebuilt@1.0.1"
- "npm install -g meteor-build-client"
- "gulp update-nodes"

script:
- "npm test"

notifications:
email:
- mist@ethereum.org



35 changes: 30 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ you can simply run the executeable after download.
For updating simply download the new version and copy it over the old one (keep a backup of the old one if you want to be sure).
The data folder for Mist is stored in other places:

- Windows `%APPDATA%\Roaming\Mist`
- Windows `%APPDATA%\Mist`
- MacOSX `~/Library/Application Support/Mist`
- Linux `~/.config/Mist`

Expand All @@ -32,12 +32,16 @@ Once a Mist version is released the Meteor frontend part is bundled using `meteo

### Dependencies

Requires electron version 0.37.2 and Node.js version 4.3.0 or above.
Requirements:

* Electron v1.2.2
* Node v4.3.0 or above

To run mist in development you need [Node.js NPM](https://nodejs.org) and [Meteor](https://www.meteor.com/install) and electron installed:

$ curl https://install.meteor.com/ | sh
$ npm install -g electron-prebuilt@0.37.2
$ npm install -g electron-prebuilt@1.2.2
$ npm install -g gulp

### Installation

Expand All @@ -47,11 +51,13 @@ Now you're ready to install Mist:
$ cd mist
$ git submodule update --init
$ npm install
$ gulp update-nodes

To update Mist in the future, run:

$ cd mist
$ git pull && git submodule update
$ gulp update-nodes


### Run Mist
Expand Down Expand Up @@ -83,11 +89,27 @@ In the original window you can then start Mist using wallet mode:
$ electron . --mode wallet


### Passing options to Geth

You can pass command-line options directly to Geth by placing them after `--` in
the command-line invocation:

```bash
$ electron . --mode mist -- --rpcport 19343 --networkid 2
```


### Using Mist with a privatenet

To run a privatenet you need to have `geth` installed separately and run it with the `ipcpath` flag:
To run a private network you will need to set the `networkdid`, `ipcpath` and
`datadir` flags:

$ geth --networkid 1234 --ipcpath /Users/you/Library/Ethereum/geth.ipc --datadir ...
```bash
$ electron . -- --networkid 1234 --ipcpath ~/Library/Ethereum/geth.ipc --datadir ~/Library/Ethereum/privatenet
```

You can also run `geth` separately yourself with the same options prior to start
Mist normally.


### Deployment
Expand All @@ -108,6 +130,9 @@ To create a binaries you need to install the following tools:
To generate the binaries simply run:

$ cd mist
$ gulp update-nodes

// to generate mist
$ gulp mist

// Or to generate the wallet (using the https://github.com/ethereum/meteor-dapp-wallet -> master)
Expand Down
11 changes: 0 additions & 11 deletions config.js

This file was deleted.

3 changes: 2 additions & 1 deletion customProtocols.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const protocol = require('protocol');
const electron = require('electron');
const protocol = electron.protocol;
const path = require('path');


Expand Down
150 changes: 133 additions & 17 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,13 @@ var packager = require('electron-packager');
var spawn = require('child_process').spawn;
var merge = require('merge-stream');
var rename = require("gulp-rename");
var download = require('gulp-download');
var decompress = require('gulp-decompress');
var tap = require("gulp-tap");
// const zip = require('gulp-zip');
// var zip = require('gulp-zip');
// var zip = require('gulp-jszip');
var EasyZip = require('easy-zip').EasyZip;
// var EasyZip = require('easy-zip').EasyZip;
var minimist = require('minimist');
var fs = require('fs');
var rcedit = require('rcedit');
Expand All @@ -35,8 +38,16 @@ var type = 'mist';
var filenameLowercase = 'mist';
var filenameUppercase = 'Mist';
var applicationName = 'Mist';
var electronVersion = '1.2.2';
var gethVersion = '1.4.7';
var nodeUrls = {
'darwin-x64': 'https://github.com/ethereum/go-ethereum/releases/download/v1.4.7/geth-OSX-2016061509421-1.4.7-667a386.zip',
'linux-x64': 'https://github.com/ethereum/go-ethereum/releases/download/v1.4.7/geth-Linux64-20160615125500-1.4.7-667a386.tar.bz2',
'win32-x64': 'https://github.com/ethereum/go-ethereum/releases/download/v1.4.7/Geth-Win64-20160615094032-1.4.7-667a386.zip',
'linux-ia32': 'https://bintray.com/karalabe/ethereum/download_file?file_path=geth-1.4.7-stable-667a386-linux-386.tar.bz2',
'win32-ia32': 'https://bintray.com/karalabe/ethereum/download_file?file_path=geth-1.4.7-stable-667a386-windows-4.0-386.exe.zip'
};

var electronVersion = '0.37.2';
var osVersions = [];
var packJson = require('./package.json');
var version = packJson.version;
Expand Down Expand Up @@ -114,7 +125,108 @@ gulp.task('clean:dist', function (cb) {
], cb);
});

gulp.task('copy-files', ['clean:dist'], function() {
// DOWNLOAD NODES

gulp.task('clean:nodes', function (cb) {
return del([
'./nodes/geth/',
], cb);
});

gulp.task('downloadNodes', ['clean:nodes'], function(done) {
var streams = [];

_.each(nodeUrls, function(nodeUrl, os){

//var destPath = (os === 'darwin-x64')
// ? path +'/'+ filenameUppercase +'.app/Contents/Frameworks/node'
//: path +'/resources/node';


// donwload nodes
streams.push(download(nodeUrl)
.pipe(gulp.dest('./nodes/geth/')));

});

return merge.apply(null, streams);
});

gulp.task('unzipNodes', ['downloadNodes'], function(done) {
var streams = [];

_.each(nodeUrls, function(nodeUrl, os){

var fileName = nodeUrl.substr(nodeUrl.lastIndexOf('/'));

// unzip nodes
streams.push(gulp.src('./nodes/geth'+ fileName)
.pipe(decompress({strip: 1}))
.pipe(gulp.dest('./nodes/geth/'+ os)));

});

return merge.apply(null, streams);
});

gulp.task('renameNodes', ['unzipNodes'], function(done) {
var streams = [];

_.each(nodeUrls, function(nodeUrl, os){

var fileName = nodeUrl.substr(nodeUrl.lastIndexOf('/')).replace('download_file?file_path=','').replace('.tar.bz2','').replace('.zip','');

// unzip nodes
if(os === 'linux-ia32' || os === 'win32-ia32') {
console.log(fileName);
var task = gulp.src('./nodes/geth/'+ os + fileName);

if(os === 'linux-ia32')
task.pipe(rename('geth/'+ os + '/geth'));
if(os === 'win32-ia32')
task.pipe(rename('geth/'+ os + '/geth.exe'));

task.pipe(gulp.dest('./nodes/'));

streams.push(task);
}

});

return merge.apply(null, streams);
});

gulp.task('renameNodesDeleteOld', ['renameNodes'], function (cb) {
return del([
'./nodes/geth/linux-ia32/'+ nodeUrls['linux-ia32'].substr(nodeUrls['linux-ia32'].lastIndexOf('/')).replace('download_file?file_path=','').replace('.tar.bz2','').replace('.zip',''),
'./nodes/geth/win32-ia32/'+ nodeUrls['win32-ia32'].substr(nodeUrls['linux-ia32'].lastIndexOf('/')).replace('download_file?file_path=','').replace('.tar.bz2','').replace('.zip',''),
], cb);
});

// CHECK FOR NODES

var updatedNeeded = true;
gulp.task('checkNodes', function() {
return gulp.src('./nodes/geth/*.{zip,tar.bz2}')
.pipe(tap(function(file, t) {
if(!!~file.path.indexOf('-'+ gethVersion +'-')) {
updatedNeeded = false;
}
}))
.pipe(gulp.dest('./nodes/geth/'));
});


// BUNLDE PROCESS

gulp.task('copy-files', ['checkNodes', 'clean:dist'], function() {

// check if nodes are there
if(updatedNeeded){
console.error('YOUR NODES NEED TO BE UPDATED run $ gulp update-nodes');
throw new Error('YOUR NODES NEED TO BE UPDATED run $ gulp update-nodes');
}

return gulp.src([
'./tests/**/*.*',
'./modules/**/*.*',
Expand All @@ -125,17 +237,18 @@ gulp.task('copy-files', ['clean:dist'], function() {
'!./interface/**/*.*',
'!./geth',
'!./geth.exe',
'!./main.js',
'!./Wallet-README.txt'
], { base: './' })
.pipe(gulp.dest('./dist_'+ type +'/app'));
});

gulp.task('switch-production', ['clean:dist'], function() {
return gulp.src(['./main.js'])
.pipe(replace('global.production = false;', 'global.production = true;'))
.pipe(replace('global.mode = (argv.mode ? argv.mode : \'mist\');', 'global.mode = (argv.mode ? argv.mode : \''+ type +'\');'))
.pipe(gulp.dest('./dist_'+ type +'/app'));
gulp.task('switch-production', ['clean:dist', 'copy-files'], function(cb) {
fs.writeFileSync(__dirname+'/dist_'+ type +'/app/config.json', JSON.stringify({
production: true,
mode: type,
}));

cb();
});


Expand Down Expand Up @@ -222,13 +335,13 @@ gulp.task('create-binaries', ['copy-i18n'], function(cb) {
});
});

// FILE RENAMING

gulp.task('change-files', ['create-binaries'], function() {
var streams = [];

osVersions.map(function(os){
var stream,
path = './dist_'+ type +'/'+ filenameUppercase +'-'+ os;
var path = './dist_'+ type +'/'+ filenameUppercase +'-'+ os;

// change version file
streams.push(gulp.src([
Expand Down Expand Up @@ -364,11 +477,7 @@ gulp.task('getChecksums', [], function(done) {
var fileName = path.replace('./dist_'+ type +'/', '');
var sha = spawn('shasum', [path]);
sha.stdout.on('data', function(data){
console.log('SHASUM '+ fileName +': '+ data.toString().replace(path, ''));
});
var md5 = spawn('md5', [path]);
md5.stdout.on('data', function(data){
console.log('MD5 '+ fileName +': '+ data.toString().replace('MD5 ('+ path +') = ', ''));
console.log('SHASUM -a 256'+ fileName +': '+ data.toString().replace(path, ''));
});


Expand All @@ -394,6 +503,11 @@ gulp.task('taskQueue', [
// 'zip'
]);

// DOWNLOAD nodes
gulp.task('update-nodes', [
'renameNodesDeleteOld'
]);
gulp.task('download-nodes', ['update-nodes']);

// MIST task
gulp.task('mist', [
Expand All @@ -417,4 +531,6 @@ gulp.task('wallet-checksums', [
'getChecksums'
]);

gulp.task('default', ['mist']);
gulp.task('default', ['mist']);


Binary file modified icons/mist/icon.icns
Binary file not shown.
Binary file modified icons/mist/icon.ico
Binary file not shown.
Binary file modified icons/mist/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified icons/mist/icon2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
0