mirror of
https://github.com/moonlight-stream/moonlight-chrome.git
synced 2025-08-16 16:16:44 +00:00
Add release build script
This commit is contained in:
parent
f4eca63944
commit
61176368bb
16
do-release.sh
Executable file
16
do-release.sh
Executable file
@ -0,0 +1,16 @@
|
|||||||
|
fail()
|
||||||
|
{
|
||||||
|
echo "$1" 1>&2
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
git diff-index --quiet HEAD -- || fail "Release builds must not have unstaged changes!"
|
||||||
|
|
||||||
|
rm moonlight-chrome.zip
|
||||||
|
make clean || fail "Clean failed"
|
||||||
|
make -j$(nproc) || fail "Build failed"
|
||||||
|
|
||||||
|
|
||||||
|
zip moonlight-chrome.zip -r . -i pnacl/Release/moonlight-chrome.* -i manifest.json -i index.html -i LICENSE || fail "Zip failed"
|
||||||
|
zip moonlight-chrome.zip -r icons || fail "Zip failed"
|
||||||
|
zip moonlight-chrome.zip -r static || fail "Zip failed"
|
Loading…
x
Reference in New Issue
Block a user