mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-12 23:07:15 -06:00
Windows on ARM:
- changed DLL filename from aarch64 to arm64 - publish ARM DLL to Maven Central
This commit is contained in:
@@ -129,6 +129,7 @@ flatlafPublish {
|
||||
nativeArtifacts = listOf(
|
||||
NativeArtifact( "${natives}/flatlaf-windows-x86.dll", "windows-x86", "dll" ),
|
||||
NativeArtifact( "${natives}/flatlaf-windows-x86_64.dll", "windows-x86_64", "dll" ),
|
||||
NativeArtifact( "${natives}/flatlaf-windows-arm64.dll", "windows-arm64", "dll" ),
|
||||
NativeArtifact( "${natives}/libflatlaf-linux-x86_64.so", "linux-x86_64", "so" ),
|
||||
)
|
||||
}
|
||||
|
||||
@@ -55,12 +55,12 @@ class FlatNativeLibrary
|
||||
|
||||
String classifier;
|
||||
String ext;
|
||||
if( SystemInfo.isWindows_10_orLater ) {
|
||||
// Windows: requires Windows 10/11
|
||||
if( SystemInfo.isWindows_10_orLater && (SystemInfo.isX86 || SystemInfo.isX86_64 || SystemInfo.isAARCH64) ) {
|
||||
// Windows: requires Windows 10/11 (x86, x86_64 or aarch64)
|
||||
|
||||
if ( SystemInfo.isAARCH64 )
|
||||
classifier = "windows-aarch64";
|
||||
else if ( SystemInfo.isX86_64 )
|
||||
if( SystemInfo.isAARCH64 )
|
||||
classifier = "windows-arm64";
|
||||
else if( SystemInfo.isX86_64 )
|
||||
classifier = "windows-x86_64";
|
||||
else
|
||||
classifier = "windows-x86";
|
||||
|
||||
Reference in New Issue
Block a user