-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Facelift and major functioality improvements Update dependencies and optimize image processing Removed imgscalr-lib and added simple-png-javafx as a dependency to enhance image processing and remove dependency on AWT and Swing. Optimized the image resizing process in 'ProcessFile' by reusing the last resized image when the next image size is the same as the last one. Unnecessary print statements were removed, and project version was updated to 1.3.4. Add window drag functionality and update JavaFX Maven plugin The draggable area to move the application window has been implemented. Listeners for mouse drag and press events have been added for this purpose in Window.java. In pom.xml, the JavaFX Maven plugin version is updated. The plugin's groupId has been updated and unnecessary code commented out or removed.
- Loading branch information
1 parent
bcbab9b
commit 91a0a6b
Showing
10 changed files
with
213 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<groupId>com.simtechdata</groupId> | ||
<artifactId>MacIcns</artifactId> | ||
<version>1.3.4</version> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.codehaus.mojo</groupId> | ||
<artifactId>versions-maven-plugin</artifactId> | ||
<version>${versions-maven-plugin}</version> | ||
<executions> | ||
<execution> | ||
<goals> | ||
<goal>display-dependency-updates</goal> | ||
<goal>display-plugin-updates</goal> | ||
<goal>property-updates-report</goal> | ||
<goal>dependency-updates-report</goal> | ||
<goal>plugin-updates-report</goal> | ||
<goal>update-properties</goal> | ||
<goal>use-latest-versions</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<version>${maven-compiler-plugin}</version> | ||
</plugin> | ||
<plugin> | ||
<artifactId>maven-shade-plugin</artifactId> | ||
<version>3.2.4</version> | ||
<executions> | ||
<execution> | ||
<phase>package</phase> | ||
<goals> | ||
<goal>shade</goal> | ||
</goals> | ||
<configuration> | ||
<transformers> | ||
<transformer> | ||
<mainClass>your.main.Class</mainClass> | ||
</transformer> | ||
</transformers> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<artifactId>maven-surefire-plugin</artifactId> | ||
<version>${maven-surefire-plugin}</version> | ||
<configuration> | ||
<classpathDependencyExcludes>org.graalvm.nativeimage</classpathDependencyExcludes> | ||
<argLine>-ea</argLine> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.openjfx</groupId> | ||
<artifactId>javafx-maven-plugin</artifactId> | ||
<version>${javafx-maven-plugin}</version> | ||
<configuration> | ||
<mainClass>${mainClass}</mainClass> | ||
<launcher>MacIcns</launcher> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>com.gluonhq</groupId> | ||
<artifactId>gluonfx-maven-plugin</artifactId> | ||
<version>${gluonfx-maven-plugin}</version> | ||
<configuration> | ||
<mainClass>${mainClass}</mainClass> | ||
<linkerArgs> | ||
<arg>${system-linker-arg}</arg> | ||
</linkerArgs> | ||
<nativeImageArgs> | ||
<arg>--enable-url-protocols=https</arg> | ||
<arg>--enable-url-protocols=http</arg> | ||
<arg>--no-fallback</arg> | ||
<arg>--verbose</arg> | ||
<arg>--add-exports=org.graalvm.nativeimage.builder/com.oracle.svm.core.jdk=ALL-UNNAMED</arg> | ||
<arg>${system-native-image-arg}</arg> | ||
<arg>${compatibility-arg}</arg> | ||
<arg>-H:ReflectionConfigurationFiles=${project.basedir}/config/reflect-config.json</arg> | ||
</nativeImageArgs> | ||
<appIdentifier>${mainClass}</appIdentifier> | ||
<releaseConfiguration> | ||
<vendor>Syphon</vendor> | ||
<description>MacIcns is a program that will take a single 1024x1024 png file and create a | ||
correctly formatted icns file</description> | ||
<packageType>${package.type}</packageType> | ||
<bundleShortVersion>${project.version}</bundleShortVersion> | ||
<bundleVersion>${project.version}</bundleVersion> | ||
<skipSigning>true</skipSigning> | ||
</releaseConfiguration> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
<profiles> | ||
<profile> | ||
<id>build-for-macos-latest</id> | ||
<properties> | ||
<system-linker-arg>${pom.basedir}/config/missing_symbols-macos-latest.o</system-linker-arg> | ||
<mac.app.store>true</mac.app.store> | ||
<system-native-image-arg>-Dsvm.platform=org.graalvm.nativeimage.Platform$MACOS_AMD64</system-native-image-arg> | ||
<package.type>pkg</package.type> | ||
</properties> | ||
</profile> | ||
</profiles> | ||
<properties> | ||
<maven.compiler.release>20</maven.compiler.release> | ||
<versions-maven-plugin>2.16.2</versions-maven-plugin> | ||
<mainClass>com.simtechdata.Main</mainClass> | ||
<maven-surefire-plugin>3.2.2</maven-surefire-plugin> | ||
<native-maven-plugin>0.9.28</native-maven-plugin> | ||
<javapackager>1.7.2</javapackager> | ||
<gluonfx-maven-plugin>1.0.21</gluonfx-maven-plugin> | ||
<maven-assembly-plugin>3.3.0</maven-assembly-plugin> | ||
<maven-jar-plugin>3.3.0</maven-jar-plugin> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
<javafx.version>21-ea+24</javafx.version> | ||
<javafx-maven-plugin>0.0.8</javafx-maven-plugin> | ||
<maven-compiler-plugin>3.11.0</maven-compiler-plugin> | ||
</properties> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.