Add deploy/release scripts

This commit is contained in:
Adam
2017-02-24 11:27:29 -05:00
parent 0c325c85be
commit 7b4d5748bd
3 changed files with 42 additions and 6 deletions

9
scripts/deploy-vanilla.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
if [ "$#" -ne 2 ] ; then
exit 1
fi
echo "Deploying vanilla version $1 ($2) to $RUNELITE_REPOSITORY_URL"
mvn deploy:deploy-file -DgroupId=net.runelite.rs -DartifactId=vanilla -Dversion=$1 -Dfile=$2 -DrepositoryId=runelite -Durl=$RUNELITE_REPOSITORY_URL

View File

@@ -26,12 +26,6 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>net.runelite</groupId>
<artifactId>runelite-parent</artifactId>
<version>1.1.21-SNAPSHOT</version>
</parent>
<groupId>net.runelite</groupId>
<artifactId>scripts</artifactId>
<name>Scripts</name>

33
scripts/release.sh Executable file
View File

@@ -0,0 +1,33 @@
#!/bin/bash
if [ "$#" -ne 1 ] ; then
exit 1
fi
echo "Releasing version $1"
VANILLA_VER=$1
cd ..
pushd runescape-client
find src/main/java -maxdepth 1 -name "*.java" -printf "%f\n" | sed 's/\.java$//' > src/main/resources/classes.txt
git add src/main/resources/classes.txt
popd
# bump versions
find . -name pom.xml -exec sed -i "s/<version>.*<\/version>.*rs version.*/<version>$VANILLA_VER.1-SNAPSHOT<\/version> <!-- rs version -->/" {} \;
pushd runescape-client-injector
# update vanilla jar version for injector
mvn -U versions:use-latest-versions -DincludesList=net.runelite.rs:vanilla:jar
if [ $? -ne 0 ] ; then
exit 1
fi
popd
find . -name pom.xml -exec git add {} \;
git commit -m "Update $VANILLA_VER"
mvn release:clean release:prepare release:perform -Darguments="-DskipTests" -B