Merge pull request #19 from jameshball/master

Add .jar to releases
pull/35/head
James H Ball 2021-05-10 20:18:53 +01:00 zatwierdzone przez GitHub
commit 5f2989c414
5 zmienionych plików z 38 dodań i 6 usunięć

Wyświetl plik

@ -5,7 +5,7 @@ on:
branches: [ release ]
jobs:
build:
release:
runs-on: windows-latest
@ -27,7 +27,9 @@ jobs:
with:
body_path: CHANGELOG
tag_name: v${{ env.VERSION }}
files: target/osci-render-${{ env.VERSION }}.exe
files: |
target/osci-render-${{ env.VERSION }}.exe
target/osci-render-${{ env.VERSION }}.jar
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: jameshball/osci-render

24
pom.xml
Wyświetl plik

@ -36,6 +36,7 @@
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>3.2.0</version>
<executions>
<execution>
<id>default-jar</id>
@ -47,6 +48,29 @@
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<archive>
<manifest>
<mainClass>sh.ball.gui.Gui</mainClass>
</manifest>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<appendAssemblyId>false</appendAssemblyId>
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>

Wyświetl plik

@ -23,4 +23,14 @@ public class EventFactory {
long tmp = Math.round(value);
return (double) tmp / factor;
}
public static Effect edgeStretch(double value) {
return (count, v) -> {
if (count % 2 == 0) {
return v.translate(new Vector2(value, 0));
} else {
return v.translate(new Vector2(-value, 0));
}
};
}
}

Wyświetl plik

@ -5,12 +5,10 @@ import sh.ball.audio.AudioPlayer;
import sh.ball.audio.effect.Effect;
import sh.ball.audio.FrameProducer;
import java.awt.event.ActionListener;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.util.EventListener;
import java.util.List;
import java.util.Map;
import java.util.ResourceBundle;
@ -23,8 +21,6 @@ import javafx.fxml.Initializable;
import javafx.stage.FileChooser;
import javafx.stage.Stage;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;
import javax.xml.parsers.ParserConfigurationException;
import org.xml.sax.SAXException;