2017-02-19 01:18:17 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
2018-01-11 04:51:53 +08:00
|
|
|
#
|
|
|
|
# Upload CLI
|
|
|
|
#
|
|
|
|
curl --ftp-create-dirs -T tools/cli/target/teavm-cli-$NEW_VERSION.jar \
|
|
|
|
-u $TEAVM_FTP_LOGIN:$TEAVM_FTP_PASSWORD \
|
|
|
|
ftp://$TEAVM_FTP_HOST/httpdocs/cli/dev/teavm-cli-$NEW_VERSION.jar
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# Update IDEA repository descriptor
|
|
|
|
#
|
2017-02-19 01:18:17 +08:00
|
|
|
cat <<EOF >.idea-repository.xml
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<plugins>
|
2017-02-19 21:59:46 +08:00
|
|
|
<plugin id="org.teavm.idea" url="https://dl.bintray.com/konsoletyper/teavm/org/teavm/teavm-idea/$NEW_VERSION/teavm-idea-$NEW_VERSION.zip" version="$NEW_VERSION">
|
2018-01-01 20:05:30 +08:00
|
|
|
<idea-version since-build="163.12024.16" until-build="181.*" />
|
2017-02-19 01:18:17 +08:00
|
|
|
<description>TeaVM support</description>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
EOF
|
|
|
|
|
2017-02-19 04:50:31 +08:00
|
|
|
curl --ftp-create-dirs -T .idea-repository.xml \
|
2017-02-19 21:59:46 +08:00
|
|
|
-u $TEAVM_FTP_LOGIN:$TEAVM_FTP_PASSWORD \
|
2017-02-19 04:50:31 +08:00
|
|
|
ftp://$TEAVM_FTP_HOST/httpdocs/idea/dev/teavmRepository.xml
|
2018-01-11 04:51:53 +08:00
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# Upload Eclipse plugin
|
|
|
|
#
|
2018-01-11 05:29:06 +08:00
|
|
|
cd tools/eclipse/updatesite/target/repository
|
2018-01-11 04:51:53 +08:00
|
|
|
find . -type f -exec curl \
|
|
|
|
--ftp-create-dirs \
|
2018-01-11 16:37:14 +08:00
|
|
|
-u $TEAVM_FTP_LOGIN:$TEAVM_FTP_PASSWORD \
|
|
|
|
-T {} \
|
|
|
|
ftp://$TEAVM_FTP_HOST/httpdocs/eclipse/update-site/$BASE_VERSION-dev/{} \;
|
2018-01-11 05:29:06 +08:00
|
|
|
cd ../../../../..
|