mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-12 22:55:53 +08:00
Compare commits
100 Commits
v2.1.1
...
remotes/fo
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d362f7ad52 | ||
|
|
9b5e2c2da3 | ||
|
|
e518694026 | ||
|
|
a82b845e07 | ||
|
|
ab40f52f4b | ||
|
|
84fcbea34b | ||
|
|
2f86911c87 | ||
|
|
18ac0fe4b5 | ||
|
|
c54424794f | ||
|
|
929a8e133d | ||
|
|
854a6b2a86 | ||
|
|
d85a47ad80 | ||
|
|
35e6693d6d | ||
|
|
cdf37376f5 | ||
|
|
6a70ef9efb | ||
|
|
4afa31ac54 | ||
|
|
acbe6d371f | ||
|
|
5d031588b2 | ||
|
|
0af43a2488 | ||
|
|
3e6095fc34 | ||
|
|
47aac5081f | ||
|
|
acca0d7f6f | ||
|
|
75db3a64ca | ||
|
|
15ddd868d4 | ||
|
|
5621846854 | ||
|
|
a90b1bdd34 | ||
|
|
b8ca2d0381 | ||
|
|
fac5610b44 | ||
|
|
bf1fd35237 | ||
|
|
783fbbd84d | ||
|
|
24b3ee547c | ||
|
|
41f5ef2e09 | ||
|
|
726f5e2b53 | ||
|
|
a92e9d90f4 | ||
|
|
79c08baf43 | ||
|
|
0a56cdbca0 | ||
|
|
4dedd88ab2 | ||
|
|
b6861a7d3c | ||
|
|
c806a5137a | ||
|
|
cb1d116cce | ||
|
|
c38c6bcaa2 | ||
|
|
4afe5ddf87 | ||
|
|
943b9a8a0a | ||
|
|
730c065ee7 | ||
|
|
94f8336af5 | ||
|
|
03f9009d10 | ||
|
|
3d835ea4aa | ||
|
|
1b99390c96 | ||
|
|
d4a2a055cc | ||
|
|
5f71b47b5a | ||
|
|
ea3e20ade1 | ||
|
|
14a7ca0848 | ||
|
|
51118014b1 | ||
|
|
2c32270d49 | ||
|
|
624a718f2d | ||
|
|
ce3e8243a9 | ||
|
|
be45440e84 | ||
|
|
65172ebd60 | ||
|
|
b8fa610f8f | ||
|
|
ab887a4e90 | ||
|
|
a58cdf625e | ||
|
|
0eeb4ce240 | ||
|
|
53ebc47ace | ||
|
|
f203a7f49e | ||
|
|
e65ea3c545 | ||
| 3794767459 | |||
| b2aac6719f | |||
| 075d4f4758 | |||
| c63dd6f4f1 | |||
| 9e2fbe269d | |||
|
|
7a0bc3abb7 | ||
|
|
5916d40053 | ||
|
|
af8bbf2674 | ||
| a381347233 | |||
| 73c13ab023 | |||
|
|
443e656be2 | ||
|
|
87820d9387 | ||
|
|
c7c14f02dd | ||
| 5498836b6f | |||
|
|
cc69299ea3 | ||
|
|
ccfa11ca7b | ||
|
|
b28442ee1b | ||
|
|
4806441cb2 | ||
|
|
55c74e9075 | ||
|
|
4c0690dd96 | ||
|
|
af789958f0 | ||
|
|
5467b90982 | ||
|
|
f928c81afc | ||
|
|
39ccc4cbe6 | ||
| 2ddc81d927 | |||
| dc5dc25de7 | |||
|
|
53ee9c7803 | ||
| 1f3a91e74e | |||
|
|
99188fe24b | ||
| a956cad0da | |||
| e88bc97e63 | |||
|
|
f857354535 | ||
|
|
b570e57591 | ||
|
|
76c39aaf4e | ||
|
|
a645e9a296 |
11
.gitignore
vendored
11
.gitignore
vendored
@@ -20,3 +20,14 @@ src/gui/gui.pro.user*
|
||||
src/gui/.qmake.stash
|
||||
src/gui/.rnd
|
||||
src/setup/win32/barrier.suo
|
||||
Makefile
|
||||
*.cmake
|
||||
**/CMakeFiles/
|
||||
CMakeCache.txt
|
||||
/rpm
|
||||
# Visual Studio 2015/2017 cache/options directory
|
||||
.vs/
|
||||
# VS Code Directory
|
||||
.vscode/
|
||||
# Transient in-project-directory dependencies
|
||||
/deps/
|
||||
|
||||
40
.travis.yml
40
.travis.yml
@@ -1,10 +1,34 @@
|
||||
language: cpp
|
||||
before_install:
|
||||
- sudo apt-get update -qq
|
||||
- sudo apt-get install -qq libxtst-dev
|
||||
- sudo apt-get install -qq qtdeclarative5-dev
|
||||
- sudo apt-get install -qq libavahi-compat-libdnssd-dev
|
||||
script: sh -x ./clean_build.sh
|
||||
# skip install phase since we have a customized install package
|
||||
# creation tool for each supported platform
|
||||
|
||||
matrix:
|
||||
include:
|
||||
- os: linux
|
||||
sudo: false
|
||||
dist: trusty
|
||||
addons:
|
||||
apt:
|
||||
packages:
|
||||
- libxtst-dev
|
||||
- qtdeclarative5-dev
|
||||
- libavahi-compat-libdnssd-dev
|
||||
script: sh -x ./clean_build.sh
|
||||
|
||||
- os: osx
|
||||
osx_image: xcode9
|
||||
script:
|
||||
- export COLUMNS=80
|
||||
- curl -LO https://raw.githubusercontent.com/GiovanniBussi/macports-ci/master/macports-ci
|
||||
- chmod +x ./macports-ci
|
||||
- ./macports-ci install
|
||||
- PATH="$PATH:/opt/local/bin"
|
||||
- sudo port -N install qt5-qtbase openssl
|
||||
- sh -x ./clean_build.sh
|
||||
|
||||
- os: osx
|
||||
osx_image: xcode9
|
||||
script:
|
||||
- brew update
|
||||
- brew install qt openssl
|
||||
- sh -x ./clean_build.sh
|
||||
|
||||
install: true
|
||||
|
||||
@@ -63,6 +63,7 @@ if (UNIX)
|
||||
include (CheckIncludeFileCXX)
|
||||
include (CheckSymbolExists)
|
||||
include (CheckCSourceCompiles)
|
||||
include (FindPkgConfig)
|
||||
|
||||
check_include_file_cxx (istream HAVE_ISTREAM)
|
||||
check_include_file_cxx (ostream HAVE_OSTREAM)
|
||||
@@ -131,7 +132,9 @@ if (UNIX)
|
||||
# curl is used on both Linux and Mac
|
||||
find_package (CURL)
|
||||
if (CURL_FOUND)
|
||||
list (APPEND libs curl)
|
||||
include_directories(${CURL_INCLUDE_DIRS})
|
||||
list (APPEND libs ${CURL_LIBRARIES})
|
||||
|
||||
else()
|
||||
message (FATAL_ERROR "Missing library: curl")
|
||||
endif()
|
||||
@@ -163,6 +166,12 @@ if (UNIX)
|
||||
link_directories("/usr/local/lib")
|
||||
endif()
|
||||
|
||||
if (${PKG_CONFIG_FOUND})
|
||||
pkg_check_modules (AVAHI_COMPAT REQUIRED avahi-compat-libdns_sd)
|
||||
include_directories (BEFORE SYSTEM ${AVAHI_COMPAT_INCLUDE_DIRS})
|
||||
set (CMAKE_REQUIRED_INCLUDES "${CMAKE_REQUIRED_INCLUDES};${AVAHI_COMPAT_INCLUDE_DIRS}")
|
||||
endif ()
|
||||
|
||||
set (XKBlib "X11/Xlib.h;X11/XKBlib.h")
|
||||
set (CMAKE_EXTRA_INCLUDE_FILES "${XKBlib};X11/extensions/Xrandr.h")
|
||||
check_type_size ("XRRNotifyEvent" X11_EXTENSIONS_XRANDR_H)
|
||||
@@ -187,7 +196,7 @@ if (UNIX)
|
||||
message (FATAL_ERROR "Missing header: " ${XKBlib})
|
||||
endif()
|
||||
|
||||
if (NOT HAVE_DNSSD)
|
||||
if (BARRIER_BUILD_GUI AND NOT HAVE_DNSSD)
|
||||
message (FATAL_ERROR "Missing header: dns_sd.h")
|
||||
endif()
|
||||
|
||||
@@ -302,13 +311,30 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "Windows")
|
||||
${OPENSSL_ROOT}/lib/ssleay32.lib
|
||||
)
|
||||
elseif (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
||||
set (OPENSSL_ROOT /usr/local/opt/openssl)
|
||||
find_program(BREW_PROGRAM "brew")
|
||||
find_program(PORT_PROGRAM "port")
|
||||
|
||||
if (IS_DIRECTORY /opt/local AND PORT_PROGRAM)
|
||||
# macports
|
||||
set (OPENSSL_ROOT /opt/local)
|
||||
|
||||
set (OPENSSL_LIBS
|
||||
${OPENSSL_ROOT}/lib/libssl.a
|
||||
${OPENSSL_ROOT}/lib/libcrypto.a
|
||||
z
|
||||
)
|
||||
elseif (IS_DIRECTORY /usr/local/opt/openssl AND BREW_PROGRAM)
|
||||
# brew
|
||||
set (OPENSSL_ROOT /usr/local/opt/openssl)
|
||||
|
||||
include_directories (BEFORE SYSTEM ${OPENSSL_ROOT}/include)
|
||||
|
||||
set (OPENSSL_LIBS
|
||||
${OPENSSL_ROOT}/lib/libssl.a
|
||||
${OPENSSL_ROOT}/lib/libcrypto.a
|
||||
)
|
||||
endif()
|
||||
|
||||
include_directories (BEFORE SYSTEM ${OPENSSL_ROOT}/include)
|
||||
set (OPENSSL_LIBS
|
||||
${OPENSSL_ROOT}/lib/libssl.a
|
||||
${OPENSSL_ROOT}/lib/libcrypto.a
|
||||
)
|
||||
elseif (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
||||
set (OPENSSL_LIBS ssl crypto)
|
||||
else()
|
||||
@@ -364,12 +390,20 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
||||
set (BARRIER_BUNDLE_BINARY_DIR ${BARRIER_BUNDLE_APP_DIR}/Contents/MacOS)
|
||||
|
||||
configure_files (${BARRIER_BUNDLE_SOURCE_DIR} ${BARRIER_BUNDLE_DIR})
|
||||
|
||||
if (CMAKE_BUILD_TYPE STREQUAL "Release")
|
||||
add_custom_target(Barrier_dmg ALL
|
||||
bash build_installer.sh
|
||||
DEPENDS barrier barriers barrierc
|
||||
WORKING_DIRECTORY ${BARRIER_BUNDLE_DIR})
|
||||
endif()
|
||||
endif()
|
||||
|
||||
#
|
||||
# Windows installer
|
||||
#
|
||||
if (${CMAKE_SYSTEM_NAME} MATCHES "Windows")
|
||||
set (BARRIER_WIX_VERSION "${BARRIER_VERSION_MAJOR}.${BARRIER_VERSION_MINOR}.${BARRIER_VERSION_PATCH}")
|
||||
message (STATUS "Configuring the wix installer")
|
||||
configure_files (${CMAKE_CURRENT_SOURCE_DIR}/dist/wix ${CMAKE_BINARY_DIR}/installer-wix)
|
||||
message (STATUS "Configuring the inno installer")
|
||||
|
||||
13
README.md
13
README.md
@@ -1,16 +1,23 @@
|
||||
# Barrier
|
||||
|
||||
Eliminate the barrier between your machines.
|
||||
Eliminate the barrier between your machines.
|
||||
Find [releaes here](https://github.com/debauchee/barrier/releases).
|
||||
|
||||
### Contact info:
|
||||
|
||||
- `#barrier` on freenode
|
||||
|
||||
Master branch build status: [](https://travis-ci.org/debauchee/barrier)
|
||||
|
||||
Azure Pipelines build status: [](https://dev.azure.com/debauchee/Barrier/_build/latest?definitionId=1&branchName=master)
|
||||
|
||||
### What is it?
|
||||
|
||||
Barrier is KVM software forked from Symless's synergy 1.9 codebase. Synergy was a commercialized reimplementation of the original CosmoSynergy written by Chris Schoeneman.
|
||||
|
||||
### What's different?
|
||||
|
||||
Whereas synergy has moved beyond its goals from the 1.x era, barrier aims to maintain that simplicity. Barrier will let you use your keyboard and mouse from machine A to control machine B (or more). That's it.
|
||||
Whereas synergy has moved beyond its goals from the 1.x era, Barrier aims to maintain that simplicity. Barrier will let you use your keyboard and mouse from machine A to control machine B (or more). It's that simple.
|
||||
|
||||
### Project goals
|
||||
|
||||
@@ -22,7 +29,7 @@ Communication. Everything we do is in the open. Our issue tracker will let you s
|
||||
|
||||
### Contact & support
|
||||
|
||||
Please be aware that the *only* way to draw our attention to a bug is to create a new PR in the issue tracker. Write a clear, concise, detailed report and you will get a clear, concise, detailed response. Priority is always give to issues that affect a wider range of users.
|
||||
Please be aware that the *only* way to draw our attention to a bug is to create a new PR in the issue tracker. Write a clear, concise, detailed report and you will get a clear, concise, detailed response. Priority is always given to issues that affect a wider range of users.
|
||||
|
||||
For short and simple questions or to just say hello find us on the Freenode IRC network in the #barrier channel.
|
||||
|
||||
|
||||
82
azure-pipelines.yml
Normal file
82
azure-pipelines.yml
Normal file
@@ -0,0 +1,82 @@
|
||||
trigger:
|
||||
tags:
|
||||
include:
|
||||
- '*'
|
||||
branches:
|
||||
include:
|
||||
- '*'
|
||||
|
||||
jobs:
|
||||
- job: WinBuild
|
||||
displayName: Windows Build
|
||||
pool:
|
||||
vmImage: 'vs2017-win2016'
|
||||
strategy:
|
||||
matrix:
|
||||
Debug:
|
||||
CI_ENV_BUILD_TYPE: Debug
|
||||
Release with Release Installer:
|
||||
CI_ENV_BUILD_TYPE: Release
|
||||
steps:
|
||||
# Gather Dependencies
|
||||
- task: PowerShell@2
|
||||
displayName: Download Bonjour SDK-like
|
||||
inputs:
|
||||
filePath: azure-pipelines/download_install_bonjour_sdk_like.ps1
|
||||
- task: UsePythonVersion@0
|
||||
displayName: Selecting Python Installer for QLI Installer
|
||||
inputs:
|
||||
versionSpec: '3.7'
|
||||
- task: PowerShell@2
|
||||
displayName: Installing QT
|
||||
condition: ne(variables['CacheRestored'], 'true')
|
||||
inputs:
|
||||
filePath: azure-pipelines/download_install_qt.ps1
|
||||
# Build time!
|
||||
- powershell: Copy-Item azure-pipelines\build_env_tmpl.bat build_env.bat
|
||||
displayName: Layering Azure Pipeline's build_env.bat
|
||||
- script: |
|
||||
call "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Enterprise\\Common7\\Tools\\vsdevcmd" -arch=x64 && clean_build.bat
|
||||
displayName: Clean Build
|
||||
- task: ArchiveFiles@2
|
||||
displayName: Archive Completed Build Directory
|
||||
inputs:
|
||||
rootFolderOrFile: build\bin\$(CI_ENV_BUILD_TYPE)\
|
||||
includeRootFolder: true
|
||||
archiveFile: $(Build.ArtifactStagingDirectory)\$(CI_ENV_BUILD_TYPE).zip
|
||||
- task: PublishBuildArtifacts@1
|
||||
displayName: Publish Completed Build Directory Archive Build Artifact
|
||||
inputs:
|
||||
pathtoPublish: $(Build.ArtifactStagingDirectory)\$(CI_ENV_BUILD_TYPE).zip
|
||||
artifactName: $(CI_ENV_BUILD_TYPE)
|
||||
- script: build_installer.bat
|
||||
displayName: Build Installer
|
||||
condition: eq(variables['CI_ENV_BUILD_TYPE'], 'Release')
|
||||
- task: PublishBuildArtifacts@1
|
||||
displayName: Publish Release Installer
|
||||
condition: eq(variables['CI_ENV_BUILD_TYPE'], 'Release')
|
||||
inputs:
|
||||
pathtoPublish: build\installer-inno\bin
|
||||
artifactName: Release Installer
|
||||
|
||||
- job: LinuxBuild
|
||||
displayName: Linux Build
|
||||
pool:
|
||||
vmImage: 'ubuntu-16.04'
|
||||
steps:
|
||||
- script: sudo apt-get install -y libxtst-dev qtdeclarative5-dev libavahi-compat-libdnssd-dev libcurl4-openssl-dev
|
||||
displayName: Install Dependencies
|
||||
- script: sh -x ./clean_build.sh
|
||||
displayName: Clean Build
|
||||
|
||||
- job: MacBuild
|
||||
displayName: Mac Build
|
||||
pool:
|
||||
vmImage: 'macOS-10.14'
|
||||
steps:
|
||||
- script: brew update
|
||||
displayName: Update brew
|
||||
- script: brew install qt openssl
|
||||
displayName: Install Dependencies
|
||||
- script: sh -x ./clean_build.sh
|
||||
displayName: Clean Build
|
||||
6
azure-pipelines/build_env_tmpl.bat
Normal file
6
azure-pipelines/build_env_tmpl.bat
Normal file
@@ -0,0 +1,6 @@
|
||||
set B_BUILD_TYPE=%CI_ENV_BUILD_TYPE%
|
||||
set B_QT_ROOT=%cd%\deps\Qt
|
||||
set B_QT_VER=Qt5.12.3\5.12.3
|
||||
set B_QT_MSVC=msvc2017_64
|
||||
set B_BONJOUR=%cd%\deps\BonjourSDKLike
|
||||
|
||||
12
azure-pipelines/download_install_bonjour_sdk_like.ps1
Normal file
12
azure-pipelines/download_install_bonjour_sdk_like.ps1
Normal file
@@ -0,0 +1,12 @@
|
||||
$ErrorActionPreference = "Stop"
|
||||
|
||||
New-Item -Force -ItemType Directory -Path ".\deps\"
|
||||
$Wc = New-Object System.Net.WebClient
|
||||
$Wc.DownloadFile('https://github.com/nelsonjchen/mDNSResponder/releases/download/v2019.05.08.1/x64_RelWithDebInfo.zip', 'deps\BonjourSDKLike.zip') ;
|
||||
Write-Output 'Downloaded BonjourSDKLike Zip'
|
||||
Write-Output 'Unzipping BonjourSDKLike Zip'
|
||||
Remove-Item -Recurse -Force -ErrorAction Ignore .\deps\BonjourSDKLike
|
||||
Expand-Archive .\deps\BonjourSDKLike.zip -DestinationPath .\deps\BonjourSDKLike
|
||||
Write-Output 'Installed BonjourSDKLike Zip'
|
||||
Remove-Item deps\BonjourSDKLike.zip
|
||||
Write-Output 'Deleted BonjourSDKLike Zip'
|
||||
25
azure-pipelines/download_install_qt.ps1
Normal file
25
azure-pipelines/download_install_qt.ps1
Normal file
@@ -0,0 +1,25 @@
|
||||
$ErrorActionPreference = "Stop"
|
||||
|
||||
$qli_install_version = '2019.05.12.4'
|
||||
$qt_version = '5.12.3'
|
||||
|
||||
New-Item -Force -ItemType Directory -Path ".\deps\"
|
||||
|
||||
Write-Output 'Downloading QLI Installer'
|
||||
$Wc = New-Object System.Net.WebClient
|
||||
$Wc.DownloadFile("https://github.com/nelsonjchen/qli-installer/archive/v$qli_install_version.zip", '.\deps\qli-installer.zip') ;
|
||||
Write-Output 'Downloaded QLI Installer'
|
||||
|
||||
Write-Output 'Extracting QLI Installer'
|
||||
Expand-Archive deps\qli-installer.zip deps\
|
||||
Move-Item .\deps\qli-installer-$qli_install_version\ .\deps\qli-installer
|
||||
Write-Output 'Extracted QLI Installer'
|
||||
|
||||
Write-Output 'Installing QLI Installer Dependencies'
|
||||
pip install -r .\deps\qli-installer\requirements.txt
|
||||
Write-Output 'Installed QLI Installer Dependencies'
|
||||
|
||||
Write-Output 'Starting QT Installer'
|
||||
$Env:QLI_OUT_DIR = ".\deps\Qt\Qt$qt_version"
|
||||
python .\deps\qli-installer\qli-installer.py $qt_version windows desktop win64_msvc2017_64
|
||||
Write-Output 'Installed QT Installer'
|
||||
@@ -1,25 +1,24 @@
|
||||
@echo off
|
||||
set WIX_ROOT=C:\Program Files (x86)\WiX Toolset v3.11
|
||||
set INNO_ROOT=C:\Program Files (x86)\Inno Setup 5
|
||||
|
||||
set savedir=%cd%
|
||||
cd /d %~dp0
|
||||
|
||||
if not exist build\bin\Release goto buildproject
|
||||
|
||||
cd build\installer
|
||||
if ERRORLEVEL 1 goto buildproject
|
||||
|
||||
echo Building 64-bit Windows installer...
|
||||
"%WIX_ROOT%\bin\candle.exe" -nologo -arch x64 -dConfiguration=Release -dPlatform=x64 -ext WixUtilExtension -ext WixFirewallExtension Product.wxs -o Barrier.wixobj
|
||||
if ERRORLEVEL 1 goto failed
|
||||
"%WIX_ROOT%\bin\light.exe" -nologo -ext WixUtilExtension -ext WixFirewallExtension -ext WixUIExtension Barrier.wixobj -o bin\Barrier.msi
|
||||
|
||||
cd build\installer-inno
|
||||
if ERRORLEVEL 1 goto buildproject
|
||||
"%INNO_ROOT%\ISCC.exe" /Qp barrier.iss
|
||||
if ERRORLEVEL 1 goto failed
|
||||
|
||||
echo Build completed successfully
|
||||
goto done
|
||||
|
||||
:buildproject
|
||||
echo To build a 64-bit Windows installer:
|
||||
echo - set Q_BUILD_TYPE=Release in build_env.bat
|
||||
echo - set B_BUILD_TYPE=Release in build_env.bat
|
||||
echo - also set other environmental overrides necessary for your build environment
|
||||
echo - run clean_build.bat to build Barrier and verify that it succeeds
|
||||
echo - re-run this script to create the installation package
|
||||
@@ -29,7 +28,7 @@ goto done
|
||||
echo Build failed
|
||||
|
||||
:done
|
||||
set WIX_ROOT=
|
||||
set INNO_ROOT=
|
||||
|
||||
cd /d %savedir%
|
||||
set savedir=
|
||||
|
||||
@@ -3,13 +3,25 @@
|
||||
REM defaults - override them by creating a build_env.bat file
|
||||
set B_BUILD_TYPE=Debug
|
||||
set B_QT_ROOT=C:\Qt
|
||||
set B_QT_VER=5.6.3
|
||||
set B_QT_MSVC=msvc2015_64
|
||||
set B_QT_VER=5.11.1
|
||||
set B_QT_MSVC=msvc2017_64
|
||||
set B_BONJOUR=C:\Program Files\Bonjour SDK
|
||||
|
||||
set savedir=%cd%
|
||||
cd /d %~dp0
|
||||
|
||||
REM cmake generator name for the target build system
|
||||
if "%VisualStudioVersion%"=="15.0" (
|
||||
set cmake_gen=Visual Studio 15 2017
|
||||
) else if "%VisualStudioVersion%"=="16.0" (
|
||||
set cmake_gen=Visual Studio 16 2019
|
||||
) else (
|
||||
echo Visual Studio version was not detected.
|
||||
echo Did you forget to run inside a VS developer prompt?
|
||||
echo Using the default cmake generator.
|
||||
set cmake_gen=Visual Studio 16 2019
|
||||
)
|
||||
|
||||
if exist build_env.bat call build_env.bat
|
||||
|
||||
REM needed by cmake to set bonjour include dir
|
||||
@@ -25,7 +37,7 @@ rmdir /q /s build
|
||||
mkdir build
|
||||
if ERRORLEVEL 1 goto failed
|
||||
cd build
|
||||
cmake -G "Visual Studio 15 2017 Win64" -D CMAKE_BUILD_TYPE=%B_BUILD_TYPE% -D CMAKE_PREFIX_PATH="%B_QT_FULLPATH%" -D DNSSD_LIB="%B_BONJOUR%\Lib\x64\dnssd.lib" -D QT_VERSION=%B_QT_VER% ..
|
||||
cmake -G "%cmake_gen%" -A x64 -D CMAKE_BUILD_TYPE=%B_BUILD_TYPE% -D CMAKE_PREFIX_PATH="%B_QT_FULLPATH%" -D DNSSD_LIB="%B_BONJOUR%\Lib\x64\dnssd.lib" -D QT_VERSION=%B_QT_VER% ..
|
||||
if ERRORLEVEL 1 goto failed
|
||||
echo @msbuild barrier.sln /p:Platform="x64" /p:Configuration=%B_BUILD_TYPE% /m %B_BUILD_OPTIONS% > make.bat
|
||||
call make.bat
|
||||
@@ -69,3 +81,4 @@ set B_BONJOUR=
|
||||
set BONJOUR_SDK_HOME=
|
||||
set B_QT_FULLPATH=
|
||||
set savedir=
|
||||
set cmake_gen=
|
||||
|
||||
@@ -14,7 +14,7 @@ if [ "$(uname)" = "Darwin" ]; then
|
||||
# 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=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk -DCMAKE_OSX_DEPLOYMENT_TARGET=10.9 $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 $B_CMAKE_FLAGS"
|
||||
fi
|
||||
# allow local customizations to build environment
|
||||
[ -r ./build_env.sh ] && . ./build_env.sh
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
cmake_minimum_required (VERSION 3.4)
|
||||
|
||||
set (BARRIER_VERSION_MAJOR 2)
|
||||
set (BARRIER_VERSION_MINOR 1)
|
||||
set (BARRIER_VERSION_MINOR 2)
|
||||
set (BARRIER_VERSION_PATCH 0)
|
||||
|
||||
#
|
||||
|
||||
5
debian/changelog
vendored
Normal file
5
debian/changelog
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
barrier (2.1-1) unstable; urgency=low
|
||||
|
||||
* Initial release (Closes: #123456)
|
||||
|
||||
-- Debauchee Open Source Group <debauchee.oss@gmail.com> Sat, 01 Apr 2018 00:00:00 +0000
|
||||
8
dist/inno/barrier.iss.in
vendored
8
dist/inno/barrier.iss.in
vendored
@@ -6,6 +6,7 @@
|
||||
#define MyAppServiceName "Barrier"
|
||||
#define MyAppServiceExe "barrierd.exe"
|
||||
#define MyAppServiceDesc "Manages the Barrier background processes."
|
||||
#define MyAppListenerDesc "Barrier Listener"
|
||||
|
||||
[Setup]
|
||||
AppId={{41036EA6-3F7A-4803-8AE0-469E5E91EFCC}
|
||||
@@ -40,6 +41,10 @@ Name: "{commonprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
|
||||
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
|
||||
|
||||
[Run]
|
||||
; there's no "check if exists" or "insert if not exists" for netsh's firewall commands
|
||||
; to avoid duplicate entries remove the existing rule (fails if it doesn't exist) before adding
|
||||
Filename: {sys}\netsh.exe; Parameters: "advfirewall firewall delete rule name=""{#MyAppListenerDesc}"""; Flags: runhidden
|
||||
Filename: {sys}\netsh.exe; Parameters: "advfirewall firewall add rule name=""{#MyAppListenerDesc}"" protocol=TCP dir=in localport=24800 action=allow"; Flags: runhidden
|
||||
Filename: {sys}\sc.exe; Parameters: "create {#MyAppServiceName} start= auto binPath= ""{app}\{#MyAppServiceExe}"""; Flags: runhidden
|
||||
Filename: {sys}\sc.exe; Parameters: "description {#MyAppServiceName} ""{#MyAppServiceDesc}"""; Flags: runhidden
|
||||
Filename: {sys}\sc.exe; Parameters: "start {#MyAppServiceName}"; Flags: runhidden
|
||||
@@ -51,6 +56,7 @@ Type: files; Name: "{app}\barrierd.log"
|
||||
[UninstallRun]
|
||||
Filename: {sys}\sc.exe; Parameters: "stop {#MyAppServiceName}"; Flags: runhidden
|
||||
Filename: {sys}\sc.exe; Parameters: "delete {#MyAppServiceName}"; Flags: runhidden
|
||||
Filename: {sys}\netsh.exe; Parameters: "advfirewall firewall delete rule name=""{#MyAppListenerDesc}"""; Flags: runhidden
|
||||
|
||||
[CustomMessages]
|
||||
DependenciesDir="redist"
|
||||
@@ -68,7 +74,7 @@ begin
|
||||
// initialize windows version
|
||||
initwinversion();
|
||||
|
||||
vcredist2017('14'); // min allowed version is 14.0
|
||||
vcredist2017('14'); // min allowed version is 14.0
|
||||
|
||||
Result := true;
|
||||
end;
|
||||
|
||||
21
dist/macos/bundle/build_installer.sh.in
vendored
21
dist/macos/bundle/build_installer.sh.in
vendored
@@ -3,12 +3,6 @@
|
||||
# change this to rename the installer package
|
||||
B_DMG="Barrier-@BARRIER_VERSION@.dmg"
|
||||
|
||||
# sanity check so we don't distribute packages full of debug symbols
|
||||
if [ "@CMAKE_BUILD_TYPE@" != "Release" ]; then
|
||||
echo Will only build installers for Release builds
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cd @CMAKE_CURRENT_SOURCE_DIR@/build/bundle || exit 1
|
||||
|
||||
B_REREF_SCRIPT=@CMAKE_CURRENT_SOURCE_DIR@/build/bundle/reref_dylibs.sh
|
||||
@@ -41,7 +35,10 @@ cp @CMAKE_RUNTIME_OUTPUT_DIRECTORY@/* . || exit 1
|
||||
# TODO: this is hacky and will probably break if there is more than one qt
|
||||
# version installed. need a better way to find this library
|
||||
B_COCOA=$(find /usr/local/Cellar/qt -type f -name libqcocoa.dylib | head -1)
|
||||
if [ $? -ne 0 ] || [ "x$B_COCOA" = "x" ]; then
|
||||
if [ "x$B_COCOA" = "x" ]; then
|
||||
B_COCOA=$(find /opt/local/libexec/qt5/plugins -type f -name libqcocoa.dylib | head -1)
|
||||
fi
|
||||
if [ "x$B_COCOA" = "x" ]; then
|
||||
echo "Could not find cocoa platform plugin"
|
||||
exit 1
|
||||
fi
|
||||
@@ -65,6 +62,14 @@ $B_REREF_SCRIPT platforms/libqcocoa.dylib ../ || exit 1
|
||||
printf "%s\n" "#!/bin/sh" "cd \$(dirname \$0)" "exec ./barrier" > barrier.sh
|
||||
chmod +x barrier.sh
|
||||
|
||||
echo "Barrier.app created successfully"
|
||||
|
||||
# sanity check so we don't distribute a dmg with debug symbols
|
||||
if [ "@CMAKE_BUILD_TYPE@" != "Release" ]; then
|
||||
echo "dmg only created for Release builds"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# create the DMG to be distributed in build/bundle
|
||||
cd ../../..
|
||||
hdiutil create -size 64m -fs HFS+ -volname "Barrier" temp.dmg || exit 1
|
||||
@@ -74,4 +79,4 @@ hdiutil detach mnt || exit 1
|
||||
hdiutil convert temp.dmg -format UDZO -o $B_DMG || exit 1
|
||||
rm temp.dmg
|
||||
|
||||
echo "Installer created successfully"
|
||||
echo "dmg $B_DMB created successfully"
|
||||
|
||||
2
dist/macos/bundle/reref_dylibs.sh
vendored
2
dist/macos/bundle/reref_dylibs.sh
vendored
@@ -21,6 +21,8 @@ B_LIBS=$(otool -XL $B_TARGET | awk '{ print $1 }' | grep -Ev '^(/usr/lib|/System
|
||||
[ $? -ne 0 ] && exit 1
|
||||
for B_LIB in $B_LIBS; do
|
||||
B_LIB_NAME=$(basename $B_LIB)
|
||||
# otool reports barrier as "barrier:" which fails self-reference test below
|
||||
B_LIB_NAME=${B_LIB_NAME//:}
|
||||
|
||||
# ignore self-references
|
||||
[ "$B_TARGET" = "$B_LIB_NAME" ] && continue
|
||||
|
||||
99
dist/rpm/barrier.spec.in
vendored
99
dist/rpm/barrier.spec.in
vendored
@@ -1,26 +1,105 @@
|
||||
%global barrier_revision @BARRIER_REVISION@
|
||||
Summary: Keyboard and mouse sharing solution
|
||||
Name: barrier
|
||||
Version: @BARRIER_VERSION@
|
||||
Summary: Keyboard and mouse sharing solution
|
||||
Group: Applications/Productivity
|
||||
URL: https://github.com/debauchee/barrier/
|
||||
Source: https://github.com/debauchee/barrier/
|
||||
Vendor: Debauchee
|
||||
Packager: Debauchee <todo@mail.com>
|
||||
Release: @BARRIER_BUILD_NUMBER@%{?dist}
|
||||
License: GPLv2
|
||||
Release: @BARRIER_BUILD_NUMBER@@BARRIER_SNAPSHOT_INFO@%{?dist}
|
||||
Group: System Environment/Daemons
|
||||
URL: https://github.com/debauchee/barrier
|
||||
Source0: https://github.com/debauchee/barrier/archive/v%{version}.tar.gz
|
||||
|
||||
BuildRequires: cmake3
|
||||
BuildRequires: avahi-compat-libdns_sd-devel
|
||||
BuildRequires: libX11-devel
|
||||
BuildRequires: libXtst-devel
|
||||
BuildRequires: qt5-qtbase-devel
|
||||
BuildRequires: libcurl-devel
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: openssl-devel
|
||||
|
||||
%description
|
||||
Barrier allows you to share one mouse and keyboard between multiple computers.
|
||||
Work seamlessly across Windows, macOS and Linux.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{version}
|
||||
|
||||
|
||||
%build
|
||||
%{cmake3} -DSYNERGY_VERSION_STAGE:STRING=@BARRIER_VERSION_STAGE@ -DSYNERGY_REVISION:STRING=%{barrier_revision} .
|
||||
make %{?_smp_mflags}
|
||||
|
||||
|
||||
%install
|
||||
install -D -p -m 0755 bin/barrier %{buildroot}%{_bindir}/barrier
|
||||
install -D -p -m 0755 bin/barrierc %{buildroot}%{_bindir}/barrierc
|
||||
install -D -p -m 0755 bin/barriers %{buildroot}%{_bindir}/barriers
|
||||
install -D -p -m 0644 doc/barrierc.1 %{buildroot}%{_mandir}/man1/barrierc.1
|
||||
install -D -p -m 0644 doc/barriers.1 %{buildroot}%{_mandir}/man1/barriers.1
|
||||
install -D -p -m 0644 res/barrier.desktop %{buildroot}%{_datadir}/applications/barrier.desktop
|
||||
install -D -p -m 0644 res/barrier.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/barrier.svg
|
||||
|
||||
cd %{buildroot}%{_bindir}
|
||||
|
||||
mkdir -p %{buildroot}%{_datadir}/metainfo
|
||||
## Write AppStream
|
||||
cat <<END> %{buildroot}%{_datadir}/metainfo/%{name}.appdata.xml
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Copyright 2018 Ding-Yi Chen <dchen@redhat.com> -->
|
||||
<component type="desktop-application">
|
||||
<id>%{name}</id>
|
||||
<metadata_license>FSFAP</metadata_license>
|
||||
<project_license>GPLv2</project_license>
|
||||
<name>barrier</name>
|
||||
<summary>Share mouse and keyboard between multiple computers over the network</summary>
|
||||
|
||||
<description>
|
||||
<p>
|
||||
Barrier allows you to share one mouse and keyboard between multiple computers.
|
||||
Work seamlessly across Windows, macOS and Linux.
|
||||
</p>
|
||||
</description>
|
||||
|
||||
<launchable type="desktop-id">%{name}.desktop</launchable>
|
||||
|
||||
<url type="homepage">https://github.com/debauchee/barrier</url>
|
||||
|
||||
<provides>
|
||||
<binary>barrier</binary>
|
||||
<binary>barrierc</binary>
|
||||
<binary>barriers</binary>
|
||||
</provides>
|
||||
|
||||
<releases>
|
||||
<release version="%{version}" date="2019-03-21" />
|
||||
</releases>
|
||||
</component>
|
||||
END
|
||||
|
||||
desktop-file-install --delete-original \
|
||||
--dir %{buildroot}%{_datadir}/applications \
|
||||
--set-icon=%{_datadir}/icons/hicolor/scalable/apps/barrier.svg \
|
||||
%{buildroot}%{_datadir}/applications/barrier.desktop
|
||||
|
||||
desktop-file-validate %{buildroot}/%{_datadir}/applications/barrier.desktop
|
||||
|
||||
%files
|
||||
%defattr(755,root,root,-)
|
||||
# None of the documentation files are actually useful here, they all point to
|
||||
# the online website, so include just one, the README
|
||||
%doc LICENSE ChangeLog res/Readme.txt doc/barrier.conf.example*
|
||||
%{_bindir}/barrier
|
||||
%{_bindir}/barrierc
|
||||
%{_bindir}/barriers
|
||||
%attr(644,-,-) %{_datarootdir}/applications/barrier.desktop
|
||||
%attr(644,-,-) %{_datarootdir}/icons/hicolor/scalable/apps/barrier.svg
|
||||
%{_datadir}/icons/hicolor/scalable/apps/barrier.svg
|
||||
%{_datadir}/applications/barrier.desktop
|
||||
%{_datadir}/metainfo/%{name}.appdata.xml
|
||||
%{_mandir}/man1/barrierc.1*
|
||||
%{_mandir}/man1/barriers.1*
|
||||
|
||||
%changelog
|
||||
* Thu Mar 21 2019 wendall911 <wendallc@83864.com>
|
||||
- Actual working spec file for Fedora
|
||||
|
||||
* Sat Jan 27 2018 Debauchee <todo@mail.com>
|
||||
- Initial version of the package
|
||||
|
||||
|
||||
6
dist/wix/Include.wxi.in
vendored
6
dist/wix/Include.wxi.in
vendored
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Include>
|
||||
<?define Name="Barrier" ?>
|
||||
<?define Version="@BARRIER_VERSION@" ?>
|
||||
<?define Version="@BARRIER_WIX_VERSION@" ?>
|
||||
<?define QtVersion="@QT_VERSION@" ?>
|
||||
<?define Author="Debauchee Open Source Group" ?>
|
||||
<?define BinPath="@CMAKE_RUNTIME_OUTPUT_DIRECTORY@/$(var.Configuration)" ?>
|
||||
@@ -11,12 +11,12 @@
|
||||
<?define ProgramFilesFolder="ProgramFiles64Folder" ?>
|
||||
<?define PlatformSimpleName="64-bit" ?>
|
||||
<?define UpgradeGuid="E8A4FA54-14B9-4FD1-8E00-7BC46555FDA0" ?>
|
||||
<?define QtPath="E:\Qt\$(var.QtVersion)\msvc2015_64" ?>
|
||||
<?define QtPath="@CMAKE_PREFIX_PATH@" ?>
|
||||
<?else ?>
|
||||
<?define ProgramFilesFolder="ProgramFilesFolder" ?>
|
||||
<?define PlatformSimpleName="32-bit" ?>
|
||||
<?define UpgradeGuid="BE0B9FD8-45E2-4A8E-A0D8-1F774D074A78" ?>
|
||||
<?define QtPath="E:\Qt\$(var.QtVersion)\msvc2015" ?>
|
||||
<?define QtPath="@CMAKE_PREFIX_PATH@" ?>
|
||||
<?endif ?>
|
||||
<?define QtBinPath="$(var.QtPath)\bin" ?>
|
||||
<?define QtPlatformPath="$(var.QtPath)\plugins\platforms" ?>
|
||||
|
||||
1
dist/wix/Product.wxs
vendored
1
dist/wix/Product.wxs
vendored
@@ -31,7 +31,6 @@
|
||||
<Property Id="ARPPRODUCTICON" Value="barrier.ico"/>
|
||||
<Property Id="WIXUI_INSTALLDIR" Value="INSTALLFOLDER"/>
|
||||
<Property Id="MSIRESTARTMANAGERCONTROL" Value="Disable"/>
|
||||
</Condition>
|
||||
<CustomAction ExeCommand="" FileKey="GuiProgram" Id="StartGui" Return="asyncNoWait"/>
|
||||
<UI>
|
||||
<Publish Control="Finish" Dialog="ExitDialog" Event="DoAction" Value="StartGui">NOT Installed</Publish>
|
||||
|
||||
@@ -1,16 +1,51 @@
|
||||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
|
||||
# Checks if directory exists, otherwise asks to install package.
|
||||
function check_dir_exists() {
|
||||
local path=$1
|
||||
local package=$2
|
||||
|
||||
if [ ! -d "$path" ]; then
|
||||
echo "Please install $package"
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
if [ ! $BARRIER_BUILD_ENV ]; then
|
||||
check_dir_exists '/Applications/Xcode.app' 'Xcode'
|
||||
|
||||
printf "Modifying environment for Barrier build..."
|
||||
printf "Modifying environment for Barrier build...\n"
|
||||
|
||||
QT_PATH=$(brew --prefix qt)
|
||||
OPENSSL_PATH=$(brew --prefix openssl)
|
||||
if command -v port; then
|
||||
printf "Detected Macports\n"
|
||||
|
||||
check_dir_exists '/opt/local/lib/cmake/Qt5' 'qt5-qtbase port'
|
||||
|
||||
export BARRIER_BUILD_MACPORTS=1
|
||||
export CMAKE_PREFIX_PATH="/opt/local/lib/cmake/Qt5:$CMAKE_PREFIX_PATH"
|
||||
export LD_LIBRARY_PATH="/opt/local/lib:$LD_LIBRARY_PATH"
|
||||
export CPATH="/opt/local/include:$CPATH"
|
||||
export PKG_CONFIG_PATH="/opt/local/libexec/qt5/lib/pkgconfig:$PKG_CONFIG_PATH"
|
||||
|
||||
elif command -v brew; then
|
||||
printf "Detected Homebrew\n"
|
||||
QT_PATH=$(brew --prefix qt)
|
||||
OPENSSL_PATH=$(brew --prefix openssl)
|
||||
|
||||
check_dir_exists "$QT_PATH" 'qt'
|
||||
check_dir_exists "$OPENSSL_PATH" 'openssl'
|
||||
|
||||
export BARRIER_BUILD_BREW=1
|
||||
export CMAKE_PREFIX_PATH="$QT_PATH:$CMAKE_PREFIX_PATH"
|
||||
export LD_LIBRARY_PATH="$OPENSSL_PATH/lib:$LD_LIBRARY_PATH"
|
||||
export CPATH="$OPENSSL_PATH/include:$CPATH"
|
||||
export PKG_CONFIG_PATH="$OPENSSL_PATH/lib/pkgconfig:$PKG_CONFIG_PATH"
|
||||
|
||||
else
|
||||
printf "Neither Homebrew nor Macports is installed. Can't get dependency paths\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
export CMAKE_PREFIX_PATH="$QT_PATH:$CMAKE_PREFIX_PATH"
|
||||
export LD_LIBRARY_PATH="$OPENSSL_PATH/lib:$LD_LIBRARY_PATH"
|
||||
export CPATH="$OPENSSL_PATH/include:$CPATH"
|
||||
export PKG_CONFIG_PATH="$OPENSSL_PATH/lib/pkgconfig:$PKG_CONFIG_PATH"
|
||||
export BARRIER_BUILD_ENV=1
|
||||
|
||||
printf "done\n"
|
||||
|
||||
1
pre-build.bat
Normal file
1
pre-build.bat
Normal file
@@ -0,0 +1 @@
|
||||
%comspec% /k "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\VsDevCmd.bat"
|
||||
@@ -31,7 +31,7 @@ commonName = supplied
|
||||
emailAddress = optional
|
||||
|
||||
[req]
|
||||
default_bits = 1024 # Size of keys
|
||||
default_bits = 2048 # Size of keys
|
||||
default_keyfile = key.pem # name of generated keys
|
||||
default_md = md5 # message digest algorithm
|
||||
string_mask = nombstr # permitted characters
|
||||
|
||||
104
snap/snapcraft.yaml
Normal file
104
snap/snapcraft.yaml
Normal file
@@ -0,0 +1,104 @@
|
||||
name: barrier-kvm # the Barrier Snappy for Linux / not tested on MAC yet
|
||||
base: core18
|
||||
version: '2.2.0' # 03/2019
|
||||
summary: Eliminate the barrier between your machines.
|
||||
description: |
|
||||
Barrier is KVM software forked from Symless's synergy 1.9 codebase.
|
||||
Synergy was a commercialized reimplementation of the original
|
||||
CosmoSynergy written by Chris Schoeneman.
|
||||
grade: stable # must be 'stable' to release into candidate/stable channels
|
||||
confinement: strict # use 'strict' once you have the right plugs and slots
|
||||
|
||||
apps:
|
||||
barrier-kvm:
|
||||
command: desktop-launch barrier #first run might take longer
|
||||
plugs:
|
||||
gnome-3-26-1604:
|
||||
interface: content
|
||||
target: gnome-platform
|
||||
default-provider: gnome-3-26-1604:gnome-3-26-1604
|
||||
plugs: [gnome-3-26-1604]
|
||||
plugs: [x11]
|
||||
parts: [qt5conf]
|
||||
parts:
|
||||
desktop:
|
||||
plugin: nil
|
||||
source: https://github.com/ubuntu/snapcraft-desktop-helpers.git
|
||||
desktop-qt5:
|
||||
source: https://github.com/ubuntu/snapcraft-desktop-helpers.git
|
||||
source-subdir: qt
|
||||
plugin: make
|
||||
make-parameters: ["FLAVOR=qt5"]
|
||||
build-packages:
|
||||
- build-essential
|
||||
- qtbase5-dev
|
||||
- dpkg-dev
|
||||
stage-packages:
|
||||
- libxkbcommon0
|
||||
- ttf-ubuntu-font-family
|
||||
- dmz-cursor-theme
|
||||
- light-themes
|
||||
- adwaita-icon-theme
|
||||
- gnome-themes-standard
|
||||
- shared-mime-info
|
||||
- libqt5gui5
|
||||
- libgdk-pixbuf2.0-0
|
||||
- libqt5svg5 # for loading icon themes which are svg
|
||||
- try: [appmenu-qt5] # not available on core18
|
||||
- locales-all
|
||||
- xdg-user-dirs
|
||||
- fcitx-frontend-qt5
|
||||
qt5:
|
||||
source: https://github.com/ubuntu/snapcraft-desktop-helpers.git
|
||||
source-subdir: qt
|
||||
plugin: make
|
||||
make-parameters: ["FLAVOR=qt5"]
|
||||
build-packages:
|
||||
- qtbase5-dev
|
||||
- dpkg-dev
|
||||
stage-packages:
|
||||
- libxkbcommon0
|
||||
- ttf-ubuntu-font-family
|
||||
- dmz-cursor-theme
|
||||
- light-themes
|
||||
- adwaita-icon-theme
|
||||
- gnome-themes-standard
|
||||
- shared-mime-info
|
||||
- libqt5gui5
|
||||
- libgdk-pixbuf2.0-0
|
||||
- libqt5svg5 # for loading icon themes which are svg
|
||||
- try: [appmenu-qt5] # not available on core18
|
||||
- locales-all
|
||||
barrier-kvm:
|
||||
source: https://github.com/payomagic/barrier.git
|
||||
plugin: cmake
|
||||
build-packages:
|
||||
- g++
|
||||
- gcc
|
||||
- make
|
||||
- xorg-dev
|
||||
- libcurl4-openssl-dev
|
||||
- libavahi-compat-libdnssd-dev
|
||||
- libssl-dev
|
||||
- libx11-dev
|
||||
- libqt4-dev
|
||||
- qtbase5-dev
|
||||
- qt5-style-plugins
|
||||
- qt5ct
|
||||
stage-packages:
|
||||
- libxinerama-dev
|
||||
- libxinerama1
|
||||
- libxrandr-dev
|
||||
- libxrandr2
|
||||
- libxrender-dev
|
||||
- libxrender1
|
||||
- libxtst-dev
|
||||
- qtdeclarative5-dev
|
||||
- libavahi-compat-libdnssd-dev
|
||||
- libqt5gui5
|
||||
- libavahi-common-dev
|
||||
- libqt5x11extras5
|
||||
- libqt5svg5
|
||||
- libqt5svg5-dev
|
||||
- qt5ct
|
||||
after: [desktop-qt5]
|
||||
@@ -29,6 +29,7 @@ if (WIN32)
|
||||
tb_idle.ico
|
||||
tb_run.ico
|
||||
tb_wait.ico
|
||||
barrierc.exe.manifest
|
||||
)
|
||||
elseif (APPLE)
|
||||
file(GLOB arch_headers "OSX*.h")
|
||||
|
||||
2
src/cmd/barrierc/barrierc.exe.manifest
Normal file
2
src/cmd/barrierc/barrierc.exe.manifest
Normal file
@@ -0,0 +1,2 @@
|
||||
<?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><dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitor</dpiAwareness><dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware></windowsSettings></application></assembly>
|
||||
@@ -29,6 +29,7 @@ if (WIN32)
|
||||
tb_idle.ico
|
||||
tb_run.ico
|
||||
tb_wait.ico
|
||||
barriers.exe.manifest
|
||||
)
|
||||
elseif (APPLE)
|
||||
file(GLOB arch_headers "OSX*.h")
|
||||
|
||||
2
src/cmd/barriers/barriers.exe.manifest
Normal file
2
src/cmd/barriers/barriers.exe.manifest
Normal file
@@ -0,0 +1,2 @@
|
||||
<?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></windowsSettings></application></assembly>
|
||||
@@ -22,7 +22,7 @@ add_executable (barrier WIN32
|
||||
|
||||
include_directories (./src)
|
||||
|
||||
qt5_use_modules (barrier Core Widgets Network)
|
||||
target_link_libraries (barrier Qt5::Core Qt5::Widgets Qt5::Network)
|
||||
target_compile_definitions (barrier PRIVATE -DBARRIER_VERSION_STAGE="${BARRIER_VERSION_STAGE}")
|
||||
target_compile_definitions (barrier PRIVATE -DBARRIER_REVISION="${BARRIER_REVISION}")
|
||||
|
||||
@@ -36,8 +36,7 @@ if (WIN32)
|
||||
elseif (APPLE)
|
||||
find_library(APPSERVICES_LIB ApplicationServices)
|
||||
target_link_libraries(barrier ${APPSERVICES_LIB})
|
||||
elseif (${CMAKE_SYSTEM_NAME} MATCHES "Linux" OR
|
||||
${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
|
||||
else()
|
||||
target_link_libraries (barrier dns_sd)
|
||||
endif()
|
||||
|
||||
|
||||
@@ -456,7 +456,7 @@ To automatically trust this fingerprint for future connections, click Yes. To re
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/MainWindowBase.ui" line="373"/>
|
||||
<source>&Apply</source>
|
||||
<source>&Reload</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
|
||||
Binary file not shown.
@@ -454,7 +454,7 @@ To automatically trust this fingerprint for future connections, click Yes. To re
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/MainWindowBase.ui" line="373"/>
|
||||
<source>&Apply</source>
|
||||
<source>&Reload</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
|
||||
Binary file not shown.
@@ -454,7 +454,7 @@ To automatically trust this fingerprint for future connections, click Yes. To re
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/MainWindowBase.ui" line="373"/>
|
||||
<source>&Apply</source>
|
||||
<source>&Reload</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
|
||||
Binary file not shown.
@@ -454,7 +454,7 @@ To automatically trust this fingerprint for future connections, click Yes. To re
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/MainWindowBase.ui" line="373"/>
|
||||
<source>&Apply</source>
|
||||
<source>&Reload</source>
|
||||
<translation type="finished">Приложи</translation>
|
||||
</message>
|
||||
<message>
|
||||
|
||||
Binary file not shown.
@@ -454,7 +454,7 @@ To automatically trust this fingerprint for future connections, click Yes. To re
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/MainWindowBase.ui" line="373"/>
|
||||
<source>&Apply</source>
|
||||
<source>&Reload</source>
|
||||
<translation type="finished">Aplicar</translation>
|
||||
</message>
|
||||
<message>
|
||||
|
||||
Binary file not shown.
@@ -454,7 +454,7 @@ To automatically trust this fingerprint for future connections, click Yes. To re
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/MainWindowBase.ui" line="373"/>
|
||||
<source>&Apply</source>
|
||||
<source>&Reload</source>
|
||||
<translation type="finished">&Použít</translation>
|
||||
</message>
|
||||
<message>
|
||||
|
||||
Binary file not shown.
@@ -454,7 +454,7 @@ To automatically trust this fingerprint for future connections, click Yes. To re
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/MainWindowBase.ui" line="373"/>
|
||||
<source>&Apply</source>
|
||||
<source>&Reload</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
|
||||
Binary file not shown.
@@ -454,7 +454,7 @@ To automatically trust this fingerprint for future connections, click Yes. To re
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/MainWindowBase.ui" line="373"/>
|
||||
<source>&Apply</source>
|
||||
<source>&Reload</source>
|
||||
<translation type="finished">&Anvend</translation>
|
||||
</message>
|
||||
<message>
|
||||
|
||||
Binary file not shown.
@@ -454,7 +454,7 @@ To automatically trust this fingerprint for future connections, click Yes. To re
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/MainWindowBase.ui" line="373"/>
|
||||
<source>&Apply</source>
|
||||
<source>&Reload</source>
|
||||
<translation type="finished">&Anwenden</translation>
|
||||
</message>
|
||||
<message>
|
||||
|
||||
Binary file not shown.
@@ -454,7 +454,7 @@ To automatically trust this fingerprint for future connections, click Yes. To re
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/MainWindowBase.ui" line="373"/>
|
||||
<source>&Apply</source>
|
||||
<source>&Reload</source>
|
||||
<translation type="finished">Aplicar</translation>
|
||||
</message>
|
||||
<message>
|
||||
@@ -1408,4 +1408,4 @@ Server response:
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
||||
</TS>
|
||||
|
||||
Binary file not shown.
@@ -454,7 +454,7 @@ To automatically trust this fingerprint for future connections, click Yes. To re
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/MainWindowBase.ui" line="373"/>
|
||||
<source>&Apply</source>
|
||||
<source>&Reload</source>
|
||||
<translation type="finished">Rakenda</translation>
|
||||
</message>
|
||||
<message>
|
||||
|
||||
Binary file not shown.
@@ -454,7 +454,7 @@ To automatically trust this fingerprint for future connections, click Yes. To re
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/MainWindowBase.ui" line="373"/>
|
||||
<source>&Apply</source>
|
||||
<source>&Reload</source>
|
||||
<translation type="finished">Käytä</translation>
|
||||
</message>
|
||||
<message>
|
||||
|
||||
Binary file not shown.
@@ -454,7 +454,7 @@ To automatically trust this fingerprint for future connections, click Yes. To re
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/MainWindowBase.ui" line="373"/>
|
||||
<source>&Apply</source>
|
||||
<source>&Reload</source>
|
||||
<translation type="finished">Appliquer</translation>
|
||||
</message>
|
||||
<message>
|
||||
|
||||
Binary file not shown.
@@ -454,7 +454,7 @@ To automatically trust this fingerprint for future connections, click Yes. To re
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/MainWindowBase.ui" line="373"/>
|
||||
<source>&Apply</source>
|
||||
<source>&Reload</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
|
||||
Binary file not shown.
@@ -454,7 +454,7 @@ To automatically trust this fingerprint for future connections, click Yes. To re
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/MainWindowBase.ui" line="373"/>
|
||||
<source>&Apply</source>
|
||||
<source>&Reload</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
|
||||
Binary file not shown.
@@ -454,7 +454,7 @@ To automatically trust this fingerprint for future connections, click Yes. To re
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/MainWindowBase.ui" line="373"/>
|
||||
<source>&Apply</source>
|
||||
<source>&Reload</source>
|
||||
<translation type="finished">&שמור שינויים</translation>
|
||||
</message>
|
||||
<message>
|
||||
|
||||
@@ -454,7 +454,7 @@ To automatically trust this fingerprint for future connections, click Yes. To re
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/MainWindowBase.ui" line="373"/>
|
||||
<source>&Apply</source>
|
||||
<source>&Reload</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
|
||||
Binary file not shown.
@@ -454,7 +454,7 @@ To automatically trust this fingerprint for future connections, click Yes. To re
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/MainWindowBase.ui" line="373"/>
|
||||
<source>&Apply</source>
|
||||
<source>&Reload</source>
|
||||
<translation type="finished">&Primijeni</translation>
|
||||
</message>
|
||||
<message>
|
||||
|
||||
Binary file not shown.
@@ -454,7 +454,7 @@ To automatically trust this fingerprint for future connections, click Yes. To re
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/MainWindowBase.ui" line="373"/>
|
||||
<source>&Apply</source>
|
||||
<source>&Reload</source>
|
||||
<translation type="finished">Alkalmaz</translation>
|
||||
</message>
|
||||
<message>
|
||||
|
||||
Binary file not shown.
@@ -454,7 +454,7 @@ To automatically trust this fingerprint for future connections, click Yes. To re
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/MainWindowBase.ui" line="373"/>
|
||||
<source>&Apply</source>
|
||||
<source>&Reload</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
|
||||
Binary file not shown.
@@ -454,7 +454,7 @@ To automatically trust this fingerprint for future connections, click Yes. To re
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/MainWindowBase.ui" line="373"/>
|
||||
<source>&Apply</source>
|
||||
<source>&Reload</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
|
||||
Binary file not shown.
@@ -454,7 +454,7 @@ To automatically trust this fingerprint for future connections, click Yes. To re
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/MainWindowBase.ui" line="373"/>
|
||||
<source>&Apply</source>
|
||||
<source>&Reload</source>
|
||||
<translation type="finished">Applica</translation>
|
||||
</message>
|
||||
<message>
|
||||
|
||||
Binary file not shown.
@@ -454,7 +454,7 @@ To automatically trust this fingerprint for future connections, click Yes. To re
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/MainWindowBase.ui" line="373"/>
|
||||
<source>&Apply</source>
|
||||
<source>&Reload</source>
|
||||
<translation type="finished">適用</translation>
|
||||
</message>
|
||||
<message>
|
||||
|
||||
Binary file not shown.
@@ -454,7 +454,7 @@ To automatically trust this fingerprint for future connections, click Yes. To re
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/MainWindowBase.ui" line="373"/>
|
||||
<source>&Apply</source>
|
||||
<source>&Reload</source>
|
||||
<translation type="finished">적용(&A)</translation>
|
||||
</message>
|
||||
<message>
|
||||
|
||||
Binary file not shown.
@@ -454,7 +454,7 @@ To automatically trust this fingerprint for future connections, click Yes. To re
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/MainWindowBase.ui" line="373"/>
|
||||
<source>&Apply</source>
|
||||
<source>&Reload</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
|
||||
Binary file not shown.
@@ -454,7 +454,7 @@ To automatically trust this fingerprint for future connections, click Yes. To re
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/MainWindowBase.ui" line="373"/>
|
||||
<source>&Apply</source>
|
||||
<source>&Reload</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
|
||||
Binary file not shown.
@@ -454,7 +454,7 @@ To automatically trust this fingerprint for future connections, click Yes. To re
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/MainWindowBase.ui" line="373"/>
|
||||
<source>&Apply</source>
|
||||
<source>&Reload</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
|
||||
Binary file not shown.
@@ -454,7 +454,7 @@ To automatically trust this fingerprint for future connections, click Yes. To re
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/MainWindowBase.ui" line="373"/>
|
||||
<source>&Apply</source>
|
||||
<source>&Reload</source>
|
||||
<translation type="finished">Toep&assen</translation>
|
||||
</message>
|
||||
<message>
|
||||
|
||||
Binary file not shown.
@@ -454,7 +454,7 @@ To automatically trust this fingerprint for future connections, click Yes. To re
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/MainWindowBase.ui" line="373"/>
|
||||
<source>&Apply</source>
|
||||
<source>&Reload</source>
|
||||
<translation type="finished">&Bruk</translation>
|
||||
</message>
|
||||
<message>
|
||||
|
||||
@@ -454,7 +454,7 @@ To automatically trust this fingerprint for future connections, click Yes. To re
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/MainWindowBase.ui" line="373"/>
|
||||
<source>&Apply</source>
|
||||
<source>&Reload</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
|
||||
Binary file not shown.
@@ -454,7 +454,7 @@ To automatically trust this fingerprint for future connections, click Yes. To re
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/MainWindowBase.ui" line="373"/>
|
||||
<source>&Apply</source>
|
||||
<source>&Reload</source>
|
||||
<translation type="finished">&Zastosuj</translation>
|
||||
</message>
|
||||
<message>
|
||||
|
||||
Binary file not shown.
@@ -454,7 +454,7 @@ To automatically trust this fingerprint for future connections, click Yes. To re
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/MainWindowBase.ui" line="373"/>
|
||||
<source>&Apply</source>
|
||||
<source>&Reload</source>
|
||||
<translation type="finished">Aplicar</translation>
|
||||
</message>
|
||||
<message>
|
||||
|
||||
Binary file not shown.
@@ -454,7 +454,7 @@ To automatically trust this fingerprint for future connections, click Yes. To re
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/MainWindowBase.ui" line="373"/>
|
||||
<source>&Apply</source>
|
||||
<source>&Reload</source>
|
||||
<translation type="finished">&Aplicar</translation>
|
||||
</message>
|
||||
<message>
|
||||
|
||||
Binary file not shown.
@@ -454,7 +454,7 @@ To automatically trust this fingerprint for future connections, click Yes. To re
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/MainWindowBase.ui" line="373"/>
|
||||
<source>&Apply</source>
|
||||
<source>&Reload</source>
|
||||
<translation type="finished">Aplică</translation>
|
||||
</message>
|
||||
<message>
|
||||
|
||||
Binary file not shown.
@@ -454,7 +454,7 @@ To automatically trust this fingerprint for future connections, click Yes. To re
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/MainWindowBase.ui" line="373"/>
|
||||
<source>&Apply</source>
|
||||
<source>&Reload</source>
|
||||
<translation type="finished">&Применить</translation>
|
||||
</message>
|
||||
<message>
|
||||
|
||||
Binary file not shown.
@@ -454,7 +454,7 @@ To automatically trust this fingerprint for future connections, click Yes. To re
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/MainWindowBase.ui" line="373"/>
|
||||
<source>&Apply</source>
|
||||
<source>&Reload</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
|
||||
Binary file not shown.
@@ -454,7 +454,7 @@ To automatically trust this fingerprint for future connections, click Yes. To re
|
||||
</message>
|
||||
<message>
|
||||
<location filename="res/MainWindowBase.ui" line="373"/>
|
||||
<source>&Apply</source>
|
||||
<source>&Reload</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
|
||||
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user