Add Drone, remove malware Jenkins
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Dmitry Isaenko 2022-07-18 23:08:25 +03:00
parent b6ab72e7fd
commit 690b1469da
4 changed files with 36 additions and 21 deletions

29
.drone.yml Normal file
View file

@ -0,0 +1,29 @@
kind: pipeline
type: docker
name: default
steps:
- name: test
image: maven:3-jdk-11
commands:
- mvn -B -DskipTests clean package
volumes:
- name: m2
path: /root/.m2
- name: archive-artifact
image: alpine:latest
commands:
- mkdir -p /builds/konogonka
- cp target/konogonka-*jar /builds/konogonka/
volumes:
- name: builds
path: /builds
volumes:
- name: m2
host:
path: /home/docker/drone/files/m2
- name: builds
host:
path: /home/www/builds

21
Jenkinsfile vendored
View file

@ -1,21 +0,0 @@
pipeline {
agent {
docker {
image 'maven:3-jdk-11'
args '-v /home/docker/jenkins/files/m2:/root/.m2'
}
}
stages {
stage('Build') {
steps {
sh 'mvn -B -DskipTests clean package'
}
}
}
post {
always {
archiveArtifacts artifacts: 'target/*-jar-with-dependencies.jar', onlyIfSuccessful: true
}
}
}

View file

@ -42,6 +42,7 @@
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.build.timestamp.format>yyyyMMdd.HHmmss</maven.build.timestamp.format>
</properties> </properties>
<issueManagement> <issueManagement>
@ -164,6 +165,7 @@
--> -->
</dependencies> </dependencies>
<build> <build>
<finalName>${project.artifactId}-${project.version}-${maven.build.timestamp}</finalName>
<plugins> <plugins>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
@ -199,6 +201,7 @@
<descriptorRefs> <descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef> <descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs> </descriptorRefs>
<appendAssemblyId>false</appendAssemblyId>
</configuration> </configuration>
<executions> <executions>
<execution> <execution>

View file

@ -22,6 +22,8 @@ package konogonka.Tools.RomFs;
import konogonka.LoperConverter; import konogonka.LoperConverter;
import konogonka.RainbowDump; import konogonka.RainbowDump;
import java.util.Arrays;
public class Level6Header { public class Level6Header {
private long headerLength; private long headerLength;
private long directoryHashTableOffset; private long directoryHashTableOffset;
@ -43,6 +45,7 @@ public class Level6Header {
throw new Exception("Level 6 Header section is too small"); throw new Exception("Level 6 Header section is too small");
headerLength = getNext(); headerLength = getNext();
directoryHashTableOffset = getNext(); directoryHashTableOffset = getNext();
directoryHashTableOffset <<= 32;
directoryHashTableLength = getNext(); directoryHashTableLength = getNext();
directoryMetadataTableOffset = getNext(); directoryMetadataTableOffset = getNext();
directoryMetadataTableLength = getNext(); directoryMetadataTableLength = getNext();
@ -51,6 +54,7 @@ public class Level6Header {
fileMetadataTableOffset = getNext(); fileMetadataTableOffset = getNext();
fileMetadataTableLength = getNext(); fileMetadataTableLength = getNext();
fileDataOffset = getNext(); fileDataOffset = getNext();
RainbowDump.hexDumpUTF8(Arrays.copyOfRange(headerBytes, 0, 0x50));
} }
private long getNext(){ private long getNext(){