Skip to content

Commit 825aa78

Browse files
committed
Updated build scripts and build instructions.
1 parent 1a5e486 commit 825aa78

File tree

14 files changed

+770
-78
lines changed

14 files changed

+770
-78
lines changed

build/binary/linux.js

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/**
2+
* @fileoverview BUILD configuration for Coding with Chrome (linux app).
3+
*
4+
* @license Copyright 2018 The Coding with Chrome Authors.
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*
18+
* @author [email protected] (Markus Bordihn)
19+
*/
20+
let mv = require('mv');
21+
22+
23+
/**
24+
* Linux 32 bit
25+
*/
26+
mv('dist/binary/linux32/binary',
27+
'dist/binary/linux32/Coding with Chrome',
28+
{mkdirp: false}, function() {});
29+
30+
31+
/**
32+
* Linux 64 bit
33+
*/
34+
mv('dist/binary/linux64/binary',
35+
'dist/binary/linux64/Coding with Chrome',
36+
{mkdirp: false}, function() {});

build/binary/osx.js

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/**
2+
* @fileoverview BUILD configuration for Coding with Chrome (osx app).
3+
*
4+
* @license Copyright 2018 The Coding with Chrome Authors.
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*
18+
* @author [email protected] (Markus Bordihn)
19+
*/
20+
let mv = require('mv');
21+
22+
23+
/**
24+
* OSX 64 bit
25+
*/
26+
mv('dist/binary/osx64/binary',
27+
'dist/binary/osx64/Coding with Chrome',
28+
{mkdirp: false}, function() {});

build/binary/win.js

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/**
2+
* @fileoverview BUILD configuration for Coding with Chrome (win app).
3+
*
4+
* @license Copyright 2018 The Coding with Chrome Authors.
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*
18+
* @author [email protected] (Markus Bordihn)
19+
*/
20+
let mv = require('mv');
21+
22+
23+
/**
24+
* Windows 32 bit
25+
*/
26+
mv('dist/binary/win32/binary.exe',
27+
'dist/binary/win32/Coding with Chrome.exe',
28+
{mkdirp: false}, function() {});
29+
30+
/**
31+
* Windows 64 bit
32+
*/
33+
mv('dist/binary/win64/binary.exe',
34+
'dist/binary/win64/Coding with Chrome.exe',
35+
{mkdirp: false}, function() {});

doc/BUILD_RELEASE_CHECKLIST.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,13 @@ npm run publish:chrome_app
8080

8181
Use the generated **dist/chrome_app.zip** file for the upload to the
8282
Chrome Store or to share over other ways.
83+
84+
### Binary (experimental)
85+
86+
```bash
87+
npm run build:nw_app
88+
npm run publish:nw_app
89+
```
90+
91+
Use the generated **dist/binary/*/*** folders to create an zip archive for
92+
the upload to GitHub or to share over other ways.

0 commit comments

Comments
 (0)