mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-21 23:20:23 +00:00
Rework
This commit is contained in:
parent
63a579cf05
commit
215b461a65
4 changed files with 8 additions and 4 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -19,3 +19,6 @@ ComponentsGenerated.wxs
|
|||
!dist/javafx/**/lib
|
||||
!dist/javafx/**/bin
|
||||
dev.properties
|
||||
xcuserdata/
|
||||
*.dylib
|
||||
project.xcworkspace
|
||||
|
|
|
@ -33,6 +33,6 @@ public class NativeMacOsWindowControl {
|
|||
return;
|
||||
}
|
||||
|
||||
NativeBridge.MacOsLibrary.INSTANCE.setAppearance(new NativeLong(nsWindow), darkMode);
|
||||
NativeBridge.MacOsLibrary.INSTANCE.setAppearance(new NativeLong(nsWindow), seamlessFrame, darkMode);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,6 +13,6 @@ public class NativeBridge {
|
|||
|
||||
public static MacOsLibrary INSTANCE = Native.load("xpipe_bridge", MacOsLibrary.class, Map.of());
|
||||
|
||||
public abstract void setAppearance(NativeLong window, boolean dark);
|
||||
public abstract void setAppearance(NativeLong window, boolean seamlessFrame, boolean dark);
|
||||
}
|
||||
}
|
||||
|
|
5
dist/base.gradle
vendored
5
dist/base.gradle
vendored
|
@ -234,10 +234,11 @@ if (org.gradle.internal.os.OperatingSystem.current().isWindows()) {
|
|||
def nativeLib = "$projectDir/native_lib/macos"
|
||||
def proj = "$nativeLib/xpipe_bridge.xcodeproj"
|
||||
exec {
|
||||
commandLine 'xcodebuild', proj, '-scheme', 'xpipe_bridge', "CONFIGURATION_BUILD_DIR=${project.getLayout().getBuildDirectory().dir("native_lib")}", 'build'
|
||||
environment 'CONFIGURATION_BUILD_DIR', project.getLayout().getBuildDirectory().dir("native_lib")
|
||||
commandLine '/Users/crschnick/Downloads/Xcode-beta.app/Contents/Developer/usr/bin/xcodebuild', '-configuration', 'Release', '-project', proj, '-scheme', 'xpipe_bridge', '-derivedDataPath', project.getLayout().getBuildDirectory().dir("native_lib").get(), 'build'
|
||||
}
|
||||
copy {
|
||||
from project.getLayout().getBuildDirectory().dir("native_lib").get().file('xpipe_bridge.dylib')
|
||||
from project.getLayout().getBuildDirectory().dir("native_lib").get().dir('macos').file('libxpipe_bridge.dylib')
|
||||
into "$distDir/$app/Contents/runtime/Contents/Home/bin/"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue