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:
2222 tags : true
2323- provider : releases
2424 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
2927 skip_cleanup : true
3028 on :
3129 tags : true
Original file line number Diff line number Diff line change 1212 " server.js"
1313 ],
1414 "scripts" : {
15- "build" : " node ./scripts/build.js " ,
15+ "build" : " ./scripts/build.sh " ,
1616 "test" : " jest"
1717 },
1818 "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