Compare commits

..

10 commits

Author SHA1 Message Date
Mark Nellemann 31b325fc55 Update README.md 2024-05-17 07:55:35 +00:00
Mark Nellemann b9114a793c Update README.md 2024-05-17 07:54:57 +00:00
Mark Nellemann c14b2be92e Update README.md
All checks were successful
continuous-integration/drone/push Build is passing
2023-08-23 11:15:14 +00:00
Mark Nellemann cda74d3571 Update style.
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2023-08-23 13:06:46 +02:00
Mark Nellemann 57dba48d46 Set app icon
All checks were successful
continuous-integration/drone/push Build is passing
2023-08-23 12:18:49 +02:00
Mark Nellemann 6b70c56d53 Update README and build.
All checks were successful
continuous-integration/drone/push Build is passing
2023-08-23 09:39:45 +02:00
Mark Nellemann 95914460ee Change linux build image.
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2023-08-16 10:40:02 +02:00
Mark Nellemann c1d6b16126 Change linux build image.
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is failing
2023-08-16 10:22:06 +02:00
Mark Nellemann ed57148d34 Merge remote-tracking branch 'origin/main' 2023-08-16 09:53:02 +02:00
Mark Nellemann 8b6d863c6d Merge pull request 'Show service properties' (#2) from properties into main
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
Reviewed-on: #2
2023-08-16 07:40:40 +00:00
10 changed files with 28 additions and 49 deletions

View file

@ -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
View 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

View file

@ -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)

View file

@ -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

View file

@ -1 +1 @@
version = 1.0.1
version = 1.0.2

View file

@ -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");

View file

@ -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);
});
}

View file

@ -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;

View file

@ -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>