Skip to content

Commit 40e4b05

Browse files
committed
Add package script to build all artifacts needed for release
1 parent cf59f4d commit 40e4b05

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

package.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
VERSION="0.5.0"
2+
mkdir -p $VERSION
3+
echo "Build in release mode"
4+
bash export.sh > $VERSION/release.log 2>&1
5+
echo "Create release zip"
6+
zip -r $VERSION/unor4wifi-$VERSION-release.zip UNOR4USBBridge/build
7+
echo "Create unpdater packages"
8+
pushd unor4wifi-updater
9+
bash package.sh $VERSION > ../$VERSION/updater.log 2>&1
10+
popd
11+
mv unor4wifi-updater/unor4wifi-update-windows.zip $VERSION/unor4wifi-update-windows.zip
12+
mv unor4wifi-updater/unor4wifi-update-linux.zip $VERSION/unor4wifi-update-linux.zip
13+
mv unor4wifi-updater/unor4wifi-update-macos.zip $VERSION/unor4wifi-update-macos.zip
14+
echo "Build in debug mode"
15+
sed -i 's/DebugLevel=none/DebugLevel=verbose/g' compile.sh
16+
sed -i 's/DBG_ERROR/DBG_VERBOSE/g' UNOR4USBBridge/UNOR4USBBridge.ino
17+
bash export.sh > $VERSION/debug.log 2>&1
18+
echo "Create debug zip"
19+
zip -r $VERSION/unor4wifi-$VERSION-debug.zip UNOR4USBBridge/build
20+
echo "Done"
21+
echo "..."
22+
echo "Remember to restore compile script and .ino file"

0 commit comments

Comments
 (0)