Skip to content

Commit

Permalink
Merge pull request #214 from docsteer/2.1-dev
Browse files Browse the repository at this point in the history
Integrate 2.1.1 Development
  • Loading branch information
docsteer authored May 13, 2020
2 parents 8ada963 + 009d946 commit d995457
Show file tree
Hide file tree
Showing 55 changed files with 591 additions and 95 deletions.
22 changes: 14 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,25 @@ language: cpp
matrix:
include:
- os: linux
dist: trusty
dist: xenial
sudo: required
compiler: gcc
addons:
apt:
sources:
- sourceline: 'ppa:beineri/opt-qt594-trusty'
- sourceline: 'ppa:beineri/opt-qt-5.12.3-xenial'
- sourceline: 'ppa:brightbox/ruby-ng'
packages:
# FPM dependencies
- build-essential
- ruby2.3
- ruby2.3-dev
# QT
- qt59base
- qt59multimedia
- qt59tools
- qt512base
- qt512multimedia
- qt512tools
- mesa-common-dev
- libgl1-mesa-dev
# PCap
- libpcap-dev

Expand All @@ -38,14 +40,18 @@ matrix:
- echo "Uploading $BASENAME to file.io..." && curl -sF "file=@$FILE" https://file.io | xargs printf "$BASENAME uploaded - %s\n"

- os: osx
osx_image: xcode8.3
osx_image: xcode9.4
before_install:
- chmod +x install/mac/sign-mac-executable.sh
- ./install/mac/sign-mac-executable.sh
- brew update
install:
# PCap
- brew install libpcap
# QT
- brew install qt
# QT 5.12.3
- git -C "$(brew --repo homebrew/core)" pull --unshallow
- git -C "$(brew --repo homebrew/core)" checkout -b qt5.12.3 65a45a9e61f15046a256cdba6a008f38f79570c9
- HOMEBREW_NO_AUTO_UPDATE=1 brew install qt
- brew link --force qt
script:
- qmake
Expand Down
17 changes: 10 additions & 7 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,20 @@
# Start builds on tags only
#skip_non_tags: true

# Build worker image (VM template)
image: Visual Studio 2015

#---------------------------------#
# build configuration #
#---------------------------------#

environment:
matrix:
- QT_Ver: 5.9
- QT_Ver: 5.6
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
QT_Ver: 5.6
MSVC_Compiler: msvc2015
MSVC_Name: Microsoft Visual Studio 14.0
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
QT_Ver: 5.12
MSVC_Compiler: msvc2017
MSVC_Name: Microsoft Visual Studio 14.0

# build platform, i.e. x86, x64, Any CPU. This setting is optional.
platform: x86
Expand All @@ -44,11 +47,11 @@ install:

# MSVC Paths
# https://www.appveyor.com/docs/lang/cpp/#visual-studio
- call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86
- call "C:\Program Files (x86)\%MSVC_Name%\VC\vcvarsall.bat" x86

# QT Paths
# https://www.appveyor.com/docs/build-environment/#qt
- set QTDIR=C:\Qt\%QT_Ver%\msvc2015
- set QTDIR=C:\Qt\%QT_Ver%\%MSVC_Compiler%
- set PATH=%PATH%;%QTDIR%\bin

# NSIS Paths
Expand Down
3 changes: 2 additions & 1 deletion deploy.pri
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ macx {

DEPLOY_COMMAND = macdeployqt

DEPLOY_CLEANUP = $${QMAKE_DEL_FILE} $${DEPLOY_DIR}/sACNView*.dmg
DEPLOY_CLEANUP = codesign --force --deep --verify --verbose --sign \"Thomas Steer\" $${DEPLOY_TARGET} $$escape_expand(\\n\\t)
DEPLOY_CLEANUP += $${QMAKE_DEL_FILE} $${DEPLOY_DIR}/sACNView*.dmg

DEPLOY_INSTALLER = $${_PRO_FILE_PWD_}/install/mac/create-dmg --volname "sACNView_Installer" --volicon "$${_PRO_FILE_PWD_}/res/icon.icns"
DEPLOY_INSTALLER += --background "$${_PRO_FILE_PWD_}/res/mac_install_bg.png" --window-pos 200 120 --window-size 800 400 --icon-size 100 --icon $${TARGET}$${TARGET_CUSTOM_EXT} 200 190 --hide-extension $${TARGET}$${TARGET_CUSTOM_EXT} --app-drop-link 600 185
Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Use the buttons at the top of this page to download and install the program for
# Supported Platforms
* Windows 7 or newer
* Windows XP (separate build)
* MacOS 10.10 or newer
* MacOS 10.13.4 (High Sierra) or newer
* Linux (Debian based e.g. Ubuntu)

# How to Use
Expand Down
37 changes: 37 additions & 0 deletions install/mac/sign-mac-executable.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#!/usr/bin/env sh
# Adapted from https://www.update.rocks/blog/osx-signing-with-travis/
# Uses a base64 encoded certificate in an environment variable to set up signing
# Exits if the variable isn't set

KEY_CHAIN=buildtest2.keychain
CERTIFICATE_P12=certificate.p12

# Check for the variable
if [ -z ${CERTIFICATE_OSX_P12+x} ]; then
echo "No macos signing setup - output will be unsigned"
exit
else
echo "macos signing is setup - output will be signed"
fi

# Recreate the certificate from the secure environment variable
echo $CERTIFICATE_OSX_P12 | base64 --decode > $CERTIFICATE_P12

#create a keychain
security create-keychain -p travis $KEY_CHAIN

# Make the keychain the default so identities are found
security default-keychain -s $KEY_CHAIN

# Unlock the keychain
security unlock-keychain -p travis $KEY_CHAIN

# Set keychain locking timeout to 1 hour
security set-keychain-settings -t 3600 -u $KEY_CHAIN

security import $CERTIFICATE_P12 -k $KEY_CHAIN -P $CERTIFICATE_PASSWORD -T /usr/bin/codesign;

security set-key-partition-list -S apple-tool:,apple: -s -k travis $KEY_CHAIN

# remove certs
rm -fr *.p12
7 changes: 6 additions & 1 deletion install/win/install.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,12 @@ SetCompressor /SOLID lzma
!define MSVC_OPT "/install /passive /norestart"

Name "${PRODUCT_NAME}"
OutFile "${PRODUCT_NAME}_${PRODUCT_VERSION}.exe"
!if ${TARGET_WINXP}
!define OUTFILE "${PRODUCT_NAME}_${PRODUCT_VERSION}-WinXP.exe"
!else
!define OUTFILE "${PRODUCT_NAME}_${PRODUCT_VERSION}.exe"
!endif
OutFile ${OUTFILE}
ShowInstDetails show
ShowUninstDetails show
InstallDir "$PROGRAMFILES\${PRODUCT_NAME}"
Expand Down
7 changes: 5 additions & 2 deletions libs.pri
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,12 @@ win32 {
equals(QT_MAJOR_VERSION, 5):equals(QT_MINOR_VERSION, 11) { #https://wiki.qt.io/Qt_5.11_Tools_and_Versions
OPENSSL_VERS = 1.0.2j
}
equals(QT_MAJOR_VERSION, 5):equals(QT_MINOR_VERSION, 12) { #https://wiki.qt.io/Qt_5.12_Tools_and_Versions
OPENSSL_VERS = 1.1.1b
}
contains(QT_ARCH, i386) {
OPENSSL_PATH = $${_PRO_FILE_PWD_}/libs/openssl-$${OPENSSL_VERS}-i386-win32
OPENSSL_PATH = $${_PRO_FILE_PWD_}/libs/openssl-$${OPENSSL_VERS}-win32
} else {
OPENSSL_PATH = $${_PRO_FILE_PWD_}/libs/openssl-$${OPENSSL_VERS}-x64_86-win64
OPENSSL_PATH = $${_PRO_FILE_PWD_}/libs/openssl-$${OPENSSL_VERS}-win64
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
125 changes: 125 additions & 0 deletions libs/openssl-1.1.1b-win32/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@

LICENSE ISSUES
==============

The OpenSSL toolkit stays under a double license, i.e. both the conditions of
the OpenSSL License and the original SSLeay license apply to the toolkit.
See below for the actual license texts.

OpenSSL License
---------------

/* ====================================================================
* Copyright (c) 1998-2019 The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. All advertising materials mentioning features or use of this
* software must display the following acknowledgment:
* "This product includes software developed by the OpenSSL Project
* for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
*
* 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
* endorse or promote products derived from this software without
* prior written permission. For written permission, please contact
* [email protected].
*
* 5. Products derived from this software may not be called "OpenSSL"
* nor may "OpenSSL" appear in their names without prior written
* permission of the OpenSSL Project.
*
* 6. Redistributions of any form whatsoever must retain the following
* acknowledgment:
* "This product includes software developed by the OpenSSL Project
* for use in the OpenSSL Toolkit (http://www.openssl.org/)"
*
* THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
* EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
* OF THE POSSIBILITY OF SUCH DAMAGE.
* ====================================================================
*
* This product includes cryptographic software written by Eric Young
* ([email protected]). This product includes software written by Tim
* Hudson ([email protected]).
*
*/

Original SSLeay License
-----------------------

/* Copyright (C) 1995-1998 Eric Young ([email protected])
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young ([email protected]).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
* except that the holder is Tim Hudson ([email protected]).
*
* Copyright remains Eric Young's, and as such any Copyright notices in
* the code are not to be removed.
* If this package is used in a product, Eric Young should be given attribution
* as the author of the parts of the library used.
* This can be in the form of a textual message at program startup or
* in documentation (online or textual) provided with the package.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* "This product includes cryptographic software written by
* Eric Young ([email protected])"
* The word 'cryptographic' can be left out if the rouines from the library
* being used are not cryptographic related :-).
* 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
* "This product includes software written by Tim Hudson ([email protected])"
*
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* The licence and distribution terms for any publically available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
* [including the GNU Public Licence.]
*/

Binary file added libs/openssl-1.1.1b-win32/libcrypto-1_1.dll
Binary file not shown.
Binary file added libs/openssl-1.1.1b-win32/libssl-1_1.dll
Binary file not shown.
30 changes: 30 additions & 0 deletions libs/openssl-1.1.1b-win32/readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
-----------------------------------------------------------------------
OpenSSL v1.1.1b Win32 for ICS, http://www.overbyte.be
-----------------------------------------------------------------------

Built with:
Visual Studio Build Tools 2017
The Netwide Assembler (NASM) v2.11.05
Strawberry Perl v5.20.3.1

Build Commands:
perl configure VC-WIN32-rtt
nmake

Custom configuration file (.conf file at the "Configurations" folder):

## -*- mode: perl; -*-
## Personal configuration targets

%targets = (
"VC-WIN32-rtt" => {
inherit_from => [ "VC-WIN32" ],
cflags => sub{my $v=pop; $v=~ s/\/MD/\/MT/ig; return $v},
lflags => "/nologo /release",
},
"VC-WIN64A-rtt" => {
inherit_from => [ "VC-WIN64A" ],
cflags => sub{my $v=pop; $v=~ s/\/MD/\/MT/ig; return $v},
lflags => "/nologo /release",
},
);
Loading

0 comments on commit d995457

Please sign in to comment.