Add Drone, remove malware Jenkins
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
b6ab72e7fd
commit
690b1469da
4 changed files with 36 additions and 21 deletions
29
.drone.yml
Normal file
29
.drone.yml
Normal 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
21
Jenkinsfile
vendored
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
3
pom.xml
3
pom.xml
|
@ -42,6 +42,7 @@
|
|||
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<maven.build.timestamp.format>yyyyMMdd.HHmmss</maven.build.timestamp.format>
|
||||
</properties>
|
||||
|
||||
<issueManagement>
|
||||
|
@ -164,6 +165,7 @@
|
|||
-->
|
||||
</dependencies>
|
||||
<build>
|
||||
<finalName>${project.artifactId}-${project.version}-${maven.build.timestamp}</finalName>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
|
@ -199,6 +201,7 @@
|
|||
<descriptorRefs>
|
||||
<descriptorRef>jar-with-dependencies</descriptorRef>
|
||||
</descriptorRefs>
|
||||
<appendAssemblyId>false</appendAssemblyId>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
|
|
|
@ -22,6 +22,8 @@ package konogonka.Tools.RomFs;
|
|||
import konogonka.LoperConverter;
|
||||
import konogonka.RainbowDump;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
public class Level6Header {
|
||||
private long headerLength;
|
||||
private long directoryHashTableOffset;
|
||||
|
@ -43,6 +45,7 @@ public class Level6Header {
|
|||
throw new Exception("Level 6 Header section is too small");
|
||||
headerLength = getNext();
|
||||
directoryHashTableOffset = getNext();
|
||||
directoryHashTableOffset <<= 32;
|
||||
directoryHashTableLength = getNext();
|
||||
directoryMetadataTableOffset = getNext();
|
||||
directoryMetadataTableLength = getNext();
|
||||
|
@ -51,6 +54,7 @@ public class Level6Header {
|
|||
fileMetadataTableOffset = getNext();
|
||||
fileMetadataTableLength = getNext();
|
||||
fileDataOffset = getNext();
|
||||
RainbowDump.hexDumpUTF8(Arrays.copyOfRange(headerBytes, 0, 0x50));
|
||||
}
|
||||
|
||||
private long getNext(){
|
||||
|
|
Loading…
Reference in a new issue