Skip to content

Commit

Permalink
Use Docker in the build to fix #534.
Browse files Browse the repository at this point in the history
  • Loading branch information
David Braun authored and David Braun committed Mar 20, 2018
1 parent aafed85 commit 2843490
Show file tree
Hide file tree
Showing 9 changed files with 286 additions and 39 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,19 @@ $ yarn run testnet local
---

### Production
Get the Gaia binary from [GitHub](`https://github.com/cosmos/gaia/releases`).

Building requires that [Docker](https://www.docker.com/get-docker) is installed
on your system. The build is made from code in the commit at `HEAD`, not from the files in the working tree.

Build and run the app.
```bash
yarn run build:{darwin|win32|linux} -- --binary={path to the gaia binary}
yarn run build --platform={darwin|win32|linux}
open builds/Cosmos-{platform}-x64/Cosmos.app
```

When you are testing the build system you can skip the repackaging of the JS files.
```bash
$ yarn run build:darwin -- --skip-pack --binary=...
$ yarn run build --platform=darwin --skip-pack
```

To test if your build worked run:
Expand Down
1 change: 0 additions & 1 deletion config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ let config = {
ignore: /^\/(src|index\.ejs|icons)/,
out: path.join(__dirname, 'builds'),
overwrite: true,
platform: process.env.PLATFORM_TARGET || 'darwin,linux,win32',
packageManager: 'yarn'
},

Expand Down
204 changes: 204 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 2 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,7 @@
"node": ">=9.4.0"
},
"scripts": {
"build:clean": "cross-env PLATFORM_TARGET=clean node tasks/release.js",
"build:darwin": "cross-env PLATFORM_TARGET=darwin node tasks/release.js",
"build:linux": "cross-env PLATFORM_TARGET=linux node tasks/release.js",
"build:mas": "cross-env PLATFORM_TARGET=mas node tasks/release.js",
"build:win32": "cross-env PLATFORM_TARGET=win32 node tasks/release.js",
"build": "cd tasks/build && ./build.sh",
"local": "yarn run testnet local",
"testnet": "node tasks/testnet.js",
"lint": "eslint --ext .js,.vue -f ./node_modules/eslint-friendly-formatter app test",
Expand Down Expand Up @@ -69,6 +65,7 @@
"json-loader": "^0.5.4",
"lodash": "^4.17.4",
"markdown-it": "^8.3.2",
"minimist": "1.2.0",
"mkdirp": "^0.5.1",
"moment-timezone": "~0.5.13",
"node-loader": "^0.6.0",
Expand Down
Loading

0 comments on commit 2843490

Please sign in to comment.