You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
388 B
20 lines
388 B
#!/bin/sh
|
|
|
|
if [ -z "$1" ]; then
|
|
echo "build-release.sh [android|linux|macos|windows]"
|
|
exit 1
|
|
fi
|
|
|
|
if [ -f "VERSION" ]; then
|
|
VERSION=`cat VERSION`
|
|
else
|
|
VERSION=`git describe --tags --abbrev=1`
|
|
fi
|
|
|
|
if [ -f "BUILDDATE" ]; then
|
|
BUILDDATE=`cat BUILDDATE`
|
|
else
|
|
BUILDDATE=`date +%G-%m-%d-%H-%M`
|
|
fi
|
|
|
|
flutter build $1 --dart-define BUILD_VER=$VERSION --dart-define BUILD_DATE=$BUILDDATE |