Compare commits
10 commits
properties
...
main
Author | SHA1 | Date | |
---|---|---|---|
Mark Nellemann | 31b325fc55 | ||
Mark Nellemann | b9114a793c | ||
Mark Nellemann | c14b2be92e | ||
Mark Nellemann | cda74d3571 | ||
Mark Nellemann | 57dba48d46 | ||
Mark Nellemann | 6b70c56d53 | ||
Mark Nellemann | 95914460ee | ||
Mark Nellemann | c1d6b16126 | ||
Mark Nellemann | ed57148d34 | ||
Mark Nellemann | 8b6d863c6d |
11
.drone.yml
11
.drone.yml
|
@ -7,21 +7,14 @@ type: docker
|
|||
# os: linux
|
||||
# arch: amd64
|
||||
|
||||
|
||||
steps:
|
||||
|
||||
# - name: test
|
||||
# image: docker.io/bellsoft/liberica-openjdk-debian:17
|
||||
# commands:
|
||||
# - ./gradlew --quiet --no-daemon test
|
||||
|
||||
- name: jpackage
|
||||
image: docker.io/debian:stable
|
||||
image: docker.io/eclipse-temurin:17
|
||||
environment:
|
||||
AUTH_TOKEN: # Gitea access token ENV variable
|
||||
from_secret: AUTH_TOKEN # Name of DroneCI secret exposed above
|
||||
commands:
|
||||
- apt-get update && apt-get install -y dpkg-dev rpm unzip zip curl openjdk-17-jdk
|
||||
- apt-get update && apt-get install -y dpkg-dev rpm unzip zip curl
|
||||
- ./gradlew --no-daemon clean build jpackage
|
||||
- for file in build/jpackage/*.* ; do curl -s --user "$${AUTH_TOKEN}" --upload-file "$${file}" "https://git.data.coop/api/packages/${DRONE_REPO_OWNER}/generic/${DRONE_REPO_NAME}/${DRONE_TAG}/$(basename $file)" ; done
|
||||
when:
|
||||
|
|
4
Dockerfile
Normal file
4
Dockerfile
Normal file
|
@ -0,0 +1,4 @@
|
|||
FROM docker.io/eclipse-temurin:17 AS build
|
||||
COPY . .
|
||||
RUN apt update && apt install -y dpkg-dev rpm
|
||||
RUN ./gradlew clean build jpackage
|
38
README.md
38
README.md
|
@ -1,37 +1,3 @@
|
|||
# mDNS Explorer
|
||||
# Repository moved
|
||||
|
||||
View multicastDNS services on your local network.
|
||||
|
||||
![mDNS-Explorer](doc/mDNS-Explorer.png)
|
||||
|
||||
|
||||
## Development
|
||||
|
||||
Java SDK version 17 (or later) is required.
|
||||
|
||||
Information on how to build and package jftpd:
|
||||
|
||||
```shell
|
||||
./gradlew build jpackage
|
||||
```
|
||||
|
||||
### Windows
|
||||
|
||||
Download and install
|
||||
- Microsoft .NET Framework 3.5
|
||||
- Wix Toolset 3.11.2 (or later)
|
||||
|
||||
|
||||
### Linux
|
||||
|
||||
TODO
|
||||
|
||||
docker build . -f docker/Dockerfile.rpm-txt
|
||||
|
||||
or
|
||||
|
||||
docker build . -f docker/Dockerfile.deb-txt
|
||||
|
||||
### MacOS
|
||||
|
||||
TODO
|
||||
Please visit [github.com/mnellemann/mdns-explorer](https://github.com/mnellemann/mdns-explorer)
|
11
build.gradle
11
build.gradle
|
@ -5,6 +5,7 @@ plugins {
|
|||
id 'org.openjfx.javafxplugin' version '0.0.14'
|
||||
id 'com.google.osdetector' version '1.7.3'
|
||||
id 'org.beryx.jlink' version '2.26.0'
|
||||
id "com.github.ben-manes.versions" version "0.47.0"
|
||||
}
|
||||
|
||||
repositories {
|
||||
|
@ -40,10 +41,12 @@ dependencies {
|
|||
implementation 'org.slf4j:slf4j-api:2.0.7' // Logging API
|
||||
runtimeOnly 'org.slf4j:slf4j-simple:2.0.7' // Logging API
|
||||
|
||||
implementation 'io.github.mkpaz:atlantafx-base:2.0.1'
|
||||
implementation 'jakarta.inject:jakarta.inject-api:2.0.1'
|
||||
implementation 'jakarta.annotation:jakarta.annotation-api:2.1.1'
|
||||
implementation 'org.jmdns:jmdns:3.5.8'
|
||||
|
||||
|
||||
testImplementation 'org.spockframework:spock-core:2.3-groovy-3.0'
|
||||
testImplementation 'org.slf4j:slf4j-simple:2.0.7'
|
||||
}
|
||||
|
@ -79,6 +82,7 @@ jlink {
|
|||
'--copyright', 'Mark Nellemann <mark.nellemann@gmail.com>',
|
||||
'--app-version', project.findProperty('version')
|
||||
]
|
||||
icon = 'src/main/resources/icon.png'
|
||||
|
||||
// Requires: https://wixtoolset.org/ to create installer on Windows
|
||||
if(osdetector.os == 'windows') {
|
||||
|
@ -116,3 +120,10 @@ jlink {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
// https://github.com/ben-manes/gradle-versions-plugin
|
||||
tasks.named("dependencyUpdates").configure {
|
||||
rejectVersionIf {
|
||||
isNonStable(it.candidate.version)
|
||||
}
|
||||
}
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 87 KiB After Width: | Height: | Size: 59 KiB |
|
@ -1 +1 @@
|
|||
version = 1.0.1
|
||||
version = 1.0.2
|
||||
|
|
|
@ -6,6 +6,7 @@ import javafx.fxml.FXMLLoader;
|
|||
import javafx.scene.Scene;
|
||||
import javafx.scene.image.Image;
|
||||
import javafx.stage.Stage;
|
||||
import atlantafx.base.theme.NordDark;
|
||||
|
||||
import java.awt.Taskbar;
|
||||
import java.awt.Toolkit;
|
||||
|
@ -40,6 +41,9 @@ public class App extends Application {
|
|||
|
||||
}
|
||||
|
||||
// find more themes in 'atlantafx.base.theme' package
|
||||
Application.setUserAgentStylesheet(new NordDark().getUserAgentStylesheet());
|
||||
|
||||
FXMLLoader fxmlLoader = new FXMLLoader(App.class.getResource("main.fxml"));
|
||||
Scene scene = new Scene(fxmlLoader.load());
|
||||
primaryStage.setTitle("mDNS Explorer");
|
||||
|
|
|
@ -43,7 +43,7 @@ public class NetworkServiceListener implements ServiceListener {
|
|||
log.info("serviceRemoved() - Service: " + name);
|
||||
Platform.runLater( () -> {
|
||||
observableList.stream().filter(e -> (
|
||||
e.getName().equals(name) && e.getUrl().equals(url)
|
||||
e.getName().equals(name)
|
||||
)).forEach(observableList::remove);
|
||||
});
|
||||
}
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
module biz.nellemann.mdexpl {
|
||||
requires javafx.controls;
|
||||
requires javafx.fxml;
|
||||
requires java.desktop;
|
||||
requires javax.jmdns;
|
||||
requires org.slf4j;
|
||||
requires jakarta.inject;
|
||||
requires jakarta.annotation;
|
||||
requires java.desktop;
|
||||
requires atlantafx.base;
|
||||
|
||||
opens biz.nellemann.mdexpl to javafx.fxml;
|
||||
exports biz.nellemann.mdexpl;
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
<ListView fx:id="listView" BorderPane.alignment="CENTER" />
|
||||
</center>
|
||||
<right>
|
||||
<ListView fx:id="propertiesList" />
|
||||
<ListView fx:id="propertiesList" maxWidth="1.7976931348623157E308" prefWidth="360.0" />
|
||||
</right>
|
||||
|
||||
</BorderPane>
|
||||
|
|
Loading…
Reference in a new issue