mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-12 14:45:21 +08:00
Compare commits
12 Commits
enhancemen
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
653e4badeb | ||
|
|
7324f26e09 | ||
|
|
00a57ea972 | ||
|
|
433126e7a1 | ||
|
|
6ce4b7e970 | ||
|
|
d64bb1591a | ||
|
|
4a978c8331 | ||
|
|
20a1bd2e4c | ||
|
|
b4cef2703e | ||
|
|
2db65f0866 | ||
|
|
606222fbae | ||
|
|
06c1a5908c |
@@ -86,7 +86,7 @@ specific packages.
|
||||
|
||||
**Q: Does drag and drop work on linux?**
|
||||
|
||||
> A: No *(see [#855](https://github.com/debauchee/barrier/issues/544) if you'd like to change that)*
|
||||
> A: No *(see [#855](https://github.com/debauchee/barrier/issues/855) if you'd like to change that)*
|
||||
|
||||
|
||||
**Q: What OSes are supported?**
|
||||
|
||||
@@ -80,7 +80,7 @@ jobs:
|
||||
displayName: Clean Build
|
||||
|
||||
- job: MacBuild
|
||||
displayName: macOS builds
|
||||
displayName: Mac Build
|
||||
strategy:
|
||||
matrix:
|
||||
big-sur-Release:
|
||||
@@ -110,8 +110,8 @@ jobs:
|
||||
- script: sh -x ./clean_build.sh
|
||||
displayName: Clean Build
|
||||
- task: PublishBuildArtifacts@1
|
||||
displayName: Publish Release DMG if on Big Sur agent
|
||||
condition: eq(variables['imageName'], 'macOS-11')
|
||||
displayName: Publish Release DMG
|
||||
condition: eq(variables['B_BUILD_TYPE'], 'Release')
|
||||
inputs:
|
||||
pathtoPublish: build/bundle
|
||||
artifactName: Mac Release DMG and App $(imageName)
|
||||
artifactName: Mac Release Disk Image and App $(imageName)
|
||||
|
||||
@@ -1,47 +1,32 @@
|
||||
#!/bin/sh
|
||||
|
||||
cd "$(dirname "$0")" || exit 1
|
||||
|
||||
# some environments have cmake v2 as 'cmake' and v3 as 'cmake3'
|
||||
# check for cmake3 first then fallback to just cmake
|
||||
|
||||
B_CMAKE=$(command -v cmake3 2>/dev/null)
|
||||
if [ "$?" -eq 0 ]; then
|
||||
continue
|
||||
B_CMAKE=`type cmake3 2>/dev/null`
|
||||
if [ $? -eq 0 ]; then
|
||||
B_CMAKE=`echo "$B_CMAKE" | cut -d' ' -f3`
|
||||
else
|
||||
if command -v cmake 2>/dev/null; then
|
||||
B_CMAKE=$(command -v cmake)
|
||||
else
|
||||
echo "ERROR: CMake not in $PATH, cannot build! Please install CMake, or if this persists, file a bug report."
|
||||
exit 1
|
||||
fi
|
||||
B_CMAKE=cmake
|
||||
fi
|
||||
|
||||
B_BUILD_TYPE="${B_BUILD_TYPE:-Debug}"
|
||||
B_CMAKE_FLAGS="-DCMAKE_BUILD_TYPE=${B_BUILD_TYPE} ${B_CMAKE_FLAGS:-}"
|
||||
|
||||
# default build configuration
|
||||
B_BUILD_TYPE=${B_BUILD_TYPE:-Debug}
|
||||
if [ "$(uname)" = "Darwin" ]; then
|
||||
# macOS needs a little help, so we source this environment script to fix paths.
|
||||
. ./macos_environment.sh
|
||||
|
||||
B_CMAKE_FLAGS="${B_CMAKE_FLAGS} -DCMAKE_OSX_SYSROOT=$(xcode-select --print-path)/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -DCMAKE_OSX_DEPLOYMENT_TARGET=10.9"
|
||||
# OSX needs a lot of extra help, poor thing
|
||||
# run the osx_environment.sh script to fix paths
|
||||
. ./osx_environment.sh
|
||||
B_CMAKE_FLAGS="-DCMAKE_OSX_SYSROOT=$(xcode-select --print-path)/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -DCMAKE_OSX_DEPLOYMENT_TARGET=10.9 $B_CMAKE_FLAGS"
|
||||
fi
|
||||
|
||||
# Source local build variables to the environment, if available.
|
||||
# If not, continue as normal, and silently.
|
||||
[ -e "./build_env.sh" ] && . "./build_env.sh"
|
||||
# allow local customizations to build environment
|
||||
[ -r ./build_env.sh ] && . ./build_env.sh
|
||||
|
||||
# Initialise Git submodules
|
||||
git submodule update --init --recursive
|
||||
|
||||
rm -rf ./build
|
||||
mkdir build
|
||||
cd ./build
|
||||
|
||||
$B_CMAKE "$B_CMAKE_FLAGS" .. || exit 1
|
||||
|
||||
echo "INFO: Now commencing Barrier build process..."
|
||||
echo "INFO: We're building an $B_BUILD_TYPE output type."
|
||||
$(command -v make) || exit 1
|
||||
|
||||
B_CMAKE_FLAGS="-DCMAKE_BUILD_TYPE=$B_BUILD_TYPE $B_CMAKE_FLAGS"
|
||||
rm -rf build
|
||||
mkdir build || exit 1
|
||||
cd build || exit 1
|
||||
echo "Starting Barrier $B_BUILD_TYPE build..."
|
||||
$B_CMAKE $B_CMAKE_FLAGS .. || exit 1
|
||||
make || exit 1
|
||||
echo "Build completed successfully"
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
Refactor CI builds, and build scripts to be more resilient, and effective
|
||||
1
doc/newsfragments/linux-drag-drop-faq.doc
Normal file
1
doc/newsfragments/linux-drag-drop-faq.doc
Normal file
@@ -0,0 +1 @@
|
||||
Fixed FAQ link to Linux drag and drop issue.
|
||||
1
doc/newsfragments/restore-dpiawareness.bugfix
Normal file
1
doc/newsfragments/restore-dpiawareness.bugfix
Normal file
@@ -0,0 +1 @@
|
||||
Fixed a regression in 2.4.0 that caused Barrier to not support scaling other than 100% (https://github.com/debauchee/barrier/issues/1462).
|
||||
@@ -21,7 +21,9 @@ set(sources
|
||||
if (WIN32)
|
||||
file(GLOB arch_headers "MSWindows*.h")
|
||||
file(GLOB arch_sources "MSWindows*.cpp")
|
||||
list(APPEND sources barrierc.rc)
|
||||
list(APPEND sources
|
||||
barrierc.rc
|
||||
barrierc.exe.manifest)
|
||||
elseif (APPLE)
|
||||
file(GLOB arch_headers "OSX*.h")
|
||||
file(GLOB arch_sources "OSX*.cpp")
|
||||
|
||||
16
src/cmd/barrierc/barrierc.exe.manifest
Normal file
16
src/cmd/barrierc/barrierc.exe.manifest
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
|
||||
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
|
||||
<security>
|
||||
<requestedPrivileges>
|
||||
<requestedExecutionLevel level="asInvoker" uiAccess="false"></requestedExecutionLevel>
|
||||
</requestedPrivileges>
|
||||
</security>
|
||||
</trustInfo>
|
||||
<application xmlns="urn:schemas-microsoft-com:asm.v3">
|
||||
<windowsSettings>
|
||||
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
|
||||
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitor</dpiAwareness>
|
||||
</windowsSettings>
|
||||
</application>
|
||||
</assembly>
|
||||
@@ -21,7 +21,9 @@ set(sources
|
||||
if (WIN32)
|
||||
file(GLOB arch_headers "MSWindows*.h")
|
||||
file(GLOB arch_sources "MSWindows*.cpp")
|
||||
list(APPEND sources barriers.rc)
|
||||
list(APPEND sources
|
||||
barriers.rc
|
||||
barriers.exe.manifest)
|
||||
elseif (APPLE)
|
||||
file(GLOB arch_headers "OSX*.h")
|
||||
file(GLOB arch_sources "OSX*.cpp")
|
||||
|
||||
16
src/cmd/barriers/barriers.exe.manifest
Normal file
16
src/cmd/barriers/barriers.exe.manifest
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
|
||||
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
|
||||
<security>
|
||||
<requestedPrivileges>
|
||||
<requestedExecutionLevel level="asInvoker" uiAccess="false"></requestedExecutionLevel>
|
||||
</requestedPrivileges>
|
||||
</security>
|
||||
</trustInfo>
|
||||
<application xmlns="urn:schemas-microsoft-com:asm.v3">
|
||||
<windowsSettings>
|
||||
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
|
||||
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitor</dpiAwareness>
|
||||
</windowsSettings>
|
||||
</application>
|
||||
</assembly>
|
||||
@@ -1,3 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
|
||||
@@ -98,7 +98,7 @@ FileChunk::assemble(barrier::IStream* stream, String& dataReceived, size_t& expe
|
||||
case kDataChunk:
|
||||
dataReceived.append(content);
|
||||
if (CLOG->getFilter() >= kDEBUG2) {
|
||||
LOG((CLOG_DEBUG2 "recv file chunck size=%i", content.size()));
|
||||
LOG((CLOG_DEBUG2 "recv file chunk size=%i", content.size()));
|
||||
double interval = stopwatch.getTime();
|
||||
receivedDataSize += content.size();
|
||||
LOG((CLOG_DEBUG2 "recv file interval=%f s", interval));
|
||||
|
||||
@@ -190,7 +190,7 @@ void generate_pem_self_signed_cert(const std::string& path)
|
||||
|
||||
X509_sign(cert, private_key, EVP_sha256());
|
||||
|
||||
auto fp = fopen_utf8_path(path.c_str(), "r");
|
||||
auto fp = fopen_utf8_path(path.c_str(), "w");
|
||||
if (!fp) {
|
||||
throw std::runtime_error("Could not open certificate output path");
|
||||
}
|
||||
|
||||
@@ -324,7 +324,7 @@ XWindowsScreen::leave()
|
||||
m_impl->XGetInputFocus(m_display, &m_lastFocus, &m_lastFocusRevert);
|
||||
|
||||
// take focus
|
||||
if (m_isPrimary || !m_preserveFocus) {
|
||||
if (!m_preserveFocus) {
|
||||
m_impl->XSetInputFocus(m_display, m_window, RevertToPointerRoot, CurrentTime);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user