File tree Expand file tree Collapse file tree 4 files changed +25
-23
lines changed Expand file tree Collapse file tree 4 files changed +25
-23
lines changed Original file line number Diff line number Diff line change @@ -22,10 +22,8 @@ deploy:
22
22
tags : true
23
23
- provider : releases
24
24
api_key : " $GITHUB_TOKEN"
25
- file :
26
- - " build/$TRAVIS_TAG/win-x64/react-stdio.exe"
27
- - " build/$TRAVIS_TAG/linux-x64/react-stdio"
28
- - " build/$TRAVIS_TAG/macos/react-stdio"
25
+ file_glob : true
26
+ file : build/*.zip
29
27
skip_cleanup : true
30
28
on :
31
29
tags : true
Original file line number Diff line number Diff line change 12
12
" server.js"
13
13
],
14
14
"scripts" : {
15
- "build" : " node ./scripts/build.js " ,
15
+ "build" : " ./scripts/build.sh " ,
16
16
"test" : " jest"
17
17
},
18
18
"dependencies" : {
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ mkdir -p build
4
+
5
+ tag=${TRAVIS_TAG:- " v$npm_package_version " }
6
+
7
+ # TODO: Enable x86 builds when https://github.com/zeit/pkg/issues/310 is fixed
8
+ platforms=( win-x64 linux-x64 macos )
9
+
10
+ for platform in " ${platforms[@]} "
11
+ do
12
+ archive=react-stdio-$platform
13
+
14
+ echo " Creating build/$archive ..."
15
+
16
+ pkg bin/react-stdio -t $platform -o build/$archive /react-stdio
17
+ echo " $tag " > build/$archive /version
18
+
19
+ cd build
20
+ zip -q -r $archive $archive
21
+ cd - > /dev/null
22
+ done
You can’t perform that action at this time.
0 commit comments