mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
39 lines
838 B
Bash
Executable File
39 lines
838 B
Bash
Executable File
|
|
echo "#####################################"
|
|
echo "# Update ionic-angular-cordova-seed #"
|
|
echo "#####################################"
|
|
|
|
ARG_DEFS=(
|
|
)
|
|
|
|
function init {
|
|
TMP_DIR=$SCRIPT_DIR/../../tmp
|
|
BUILD_DIR=$SCRIPT_DIR/../../dist
|
|
|
|
SEED_DIR=$TMP_DIR/seed
|
|
rm -rf $SEED_DIR
|
|
mkdir -p $SEED_DIR
|
|
}
|
|
|
|
function run {
|
|
cd ../..
|
|
|
|
VERSION=$(readJsonProp "package.json" "version")
|
|
|
|
echo "-- Cloning ionic-angular-cordova-seed..."
|
|
git clone https://$GH_ORG:$GH_TOKEN@github.com/$GH_ORG/ionic-angular-cordova-seed.git $SEED_DIR
|
|
|
|
cd $SEED_DIR
|
|
|
|
echo "-- Updating files..."
|
|
cp -Rf $BUILD_DIR/* $SEED_DIR/www/lib/
|
|
|
|
git add -A
|
|
git commit -am "chore(release): update ionic to v$VERSION"
|
|
git push -q origin master
|
|
|
|
echo "-- ionic-angular-cordova-seed files update to v$VERSION successfully!"
|
|
}
|
|
|
|
source $(dirname $0)/../utils.inc
|