Add deploy/release scripts
This commit is contained in:
9
scripts/deploy-vanilla.sh
Executable file
9
scripts/deploy-vanilla.sh
Executable 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
|
||||
@@ -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
33
scripts/release.sh
Executable 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
|
||||
Reference in New Issue
Block a user