Skip to content

Commit a00a0c1

Browse files
committed
minor build system tweaks; doc update
Signed-off-by: Martin <Ho-Ro@users.noreply.github.com>
1 parent 7c737c2 commit a00a0c1

File tree

5 files changed

+57
-46
lines changed

5 files changed

+57
-46
lines changed

.github/workflows/build_check.yml

+16-11
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
name: Build_Check
22
# check if OH6022 builds on some recent operating systems
3-
# deploy Ubuntu / macOS binaries (instead of appveyor)
3+
# deploy Ubuntu / macOS / Windows binaries
44

55
on: [push]
66

7+
78
env:
89
# CMake build type (Release, Debug, RelWithDebInfo, etc.)
910
BUILD_TYPE: Release
11+
# MSVC specific, needed by packaging etc.
12+
VCINSTALLDIR: "C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC"
13+
1014

1115

1216
jobs:
@@ -60,7 +64,7 @@ jobs:
6064
uses: actions/upload-artifact@v2
6165
with:
6266
name: openhantek_linux_amd64_${{github.run_number}}
63-
path: ${{github.workspace}}/build/packages/
67+
path: ${{github.workspace}}/build/packages/*
6468

6569

6670
# --- macOS steps ---
@@ -89,23 +93,23 @@ jobs:
8993
export Qt5_DIR=$(brew --prefix qt5);
9094
export PATH=${Qt5_DIR}/bin:${PATH};
9195
cd openhantek ; macdeployqt OpenHantek.app -always-overwrite -verbose=1;
92-
python ../../utils/macdeployqtfix/macdeployqtfix.py
96+
python ../../utils/macdeployqtfix/macdeployqtfix.py
9397
--quiet OpenHantek.app/Contents/MacOS/OpenHantek ${Qt5_DIR};
94-
create-dmg --volname OpenHantek --volicon ../../openhantek/res/images/openhantek.icns
95-
--window-pos 200 120 --window-size 800 400 --icon-size 100 --icon "OpenHantek.app" 200 190
96-
--skip-jenkins --hide-extension "OpenHantek.app" --app-drop-link 600 185
98+
create-dmg --volname OpenHantek --volicon ../../openhantek/res/images/openhantek.icns
99+
--window-pos 200 120 --window-size 800 400 --icon-size 100 --icon "OpenHantek.app" 200 190
100+
--skip-jenkins --hide-extension "OpenHantek.app" --app-drop-link 600 185
97101
--eula ../../LICENSE OpenHantek.dmg OpenHantek.app;
98102
cd ..;
99103
else true;
100104
fi;
101-
if test -d openhantek/OpenHantek.app; then
105+
if test -d openhantek/OpenHantek.app; then
102106
cd openhantek ; sudo tar -czf ../packages/openhantek_*_osx_*.tar.gz OpenHantek.app;
103107
if test -f OpenHantek.dmg; then
104108
sudo mv OpenHantek.dmg ../packages/$(basename ../packages/openhantek_*_osx_*.tar.gz .tar.gz).dmg;
105109
fi;
106110
cd ..;
107111
ls -l packages;
108-
else true;
112+
else true;
109113
fi
110114

111115

@@ -114,7 +118,7 @@ jobs:
114118
uses: actions/upload-artifact@v2
115119
with:
116120
name: openhantek_osx_x86_64_${{github.run_number}}
117-
path: ${{github.workspace}}/build/packages/*.dmg
121+
path: ${{github.workspace}}/build/packages/*
118122

119123

120124
# --- Windows steps ---
@@ -124,11 +128,11 @@ jobs:
124128
uses: jurplel/install-qt-action@v2
125129

126130

127-
- name: Install Windows Build Requirements
131+
- name: Setup Windows Build
128132
if: startsWith(matrix.os, 'windows')
129133
run:
130134
md build &
131-
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat" &
135+
call "%VCINSTALLDIR%/Auxiliary/Build/vcvars64.bat" &
132136
cmake -G "Visual Studio 16 2019" -A x64 -DCMAKE_PREFIX_PATH=%Qt5_DIR% -DCMAKE_BUILD_TYPE=Release -Bbuild
133137

134138

@@ -162,6 +166,7 @@ jobs:
162166
if: startsWith(github.ref, 'refs/tags/')
163167
uses: softprops/action-gh-release@v1
164168
with:
169+
prerelease: true
165170
files: ${{github.workspace}}/build/packages/*
166171
env:
167172
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

CMakeLists.txt

+3-12
Original file line numberDiff line numberDiff line change
@@ -56,24 +56,15 @@ add_subdirectory(openhantek)
5656

5757
if (WIN32)
5858
install(
59-
FILES CHANGELOG LICENSE README
60-
DESTINATION "."
59+
FILES CHANGELOG LICENSE README
60+
DESTINATION "."
6161
)
6262
endif()
6363

6464
# Add auxiliary files to the project, so that these files appear in VisualStudio/QtCreator
6565
file(GLOB_RECURSE MDFILES "docs/*.md" "openhantek/*.md")
6666
add_custom_target(
6767
readme
68-
SOURCES CHANGELOG LICENSE README readme.md ${MDFILES}
68+
SOURCES CHANGELOG LICENSE README README.md ${MDFILES}
6969
)
7070

71-
# Add "doc" target to build the documentation.
72-
#find_package(Doxygen QUIET)
73-
#if (DOXYGEN_FOUND)
74-
# add_custom_target(
75-
# doc
76-
# COMMAND "${CMAKE_COMMAND} -E remove_directory html"
77-
# COMMAND "${DOXYGEN_EXECUTABLE} Doxyfile" WORKING_DIRECTORY "${CMAKE_CURRENT_LIST_DIR}"
78-
# )
79-
#endif()

readme.md README.md

+32-17
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
# OpenHantek6022
22
[![Stability: Active](https://masterminds.github.io/stability/active.svg)](https://masterminds.github.io/stability/active.html)
3-
[![GitHub release (latest by date)](https://img.shields.io/github/v/release/OpenHantek/OpenHantek6022)][release]
4-
[![GitHub Release Date](https://img.shields.io/github/release-date/OpenHantek/OpenHantek6022?color=blue)][release]
5-
[![GitHub commits since latest release](https://img.shields.io/github/commits-since/OpenHantek/OpenHantek6022/latest?color=brightgreen)][commits]
3+
[![GitHub release (latest by date)](https://img.shields.io/github/v/release/OpenHantek/OpenHantek6022)](https://github.com/OpenHantek/OpenHantek6022/releases)
4+
[![GitHub Release Date](https://img.shields.io/github/release-date/OpenHantek/OpenHantek6022?color=blue)](https://github.com/OpenHantek/OpenHantek6022/releases)
5+
[![GitHub commits since latest release](https://img.shields.io/github/commits-since/OpenHantek/OpenHantek6022/latest?color=blue)](https://github.com/OpenHantek/OpenHantek6022/commits/master)
66

77
[![GitHub CI](https://github.com/OpenHantek/OpenHantek6022/actions/workflows/build_check.yml/badge.svg)](https://github.com/OpenHantek/OpenHantek6022/actions/workflows/build_check.yml)
8-
[![Appveyor CI](https://ci.appveyor.com/api/projects/status/github/OpenHantek/openhantek6022?svg=true)](https://ci.appveyor.com/project/Ho-Ro/openhantek6022)
98
[![CodeFactor](https://www.codefactor.io/repository/github/openhantek/openhantek6022/badge)](https://www.codefactor.io/repository/github/openhantek/openhantek6022)
109

11-
[release]: https://github.com/OpenHantek/OpenHantek6022/releases
12-
[commits]: https://github.com/OpenHantek/OpenHantek6022/commits/master
13-
1410
OpenHantek6022 is a free software for **Hantek DSO6022** USB digital signal oscilloscopes that is actively developed on
1511
[github.com/OpenHantek/OpenHantek6022](https://github.com/OpenHantek/OpenHantek6022) - but only for Hantek 6022BE/BL and compatible scopes (Voltcraft, Darkwire, Protek, Acetech, etc.).
1612

@@ -20,18 +16,34 @@ but David [stopped maintaining](https://github.com/OpenHantek/openhantek/issues/
2016

2117
<p><img alt="Image of main window on linux" width="100%" src="docs/images/screenshot_mainwindow.png"></p>
2218

19+
#### Content
20+
* [About OpenHantek6022](#about-openhantek6022)
21+
* [Features](#features)
22+
* [AC coupling](#ac-coupling)
23+
* [Continous Integration](#continous-integration)
24+
* [Building OpenHantek6022 from source](#building-openhantek6022-from-source)
25+
* [Install prebuilt binary packages](#install-prebuilt-binary-packages)
26+
* [Run OpenHantek6022](#run-openhantek6022)
27+
+ [Windows USB access](#windows-usb-access)
28+
* [Important!](#important-)
29+
* [Specifications, features, limitations and developer documentation](#specifications--features--limitations-and-developer-documentation)
30+
* [Contribute](#contribute)
31+
* [Other DSO open source software](#other-dso-open-source-software)
32+
* [Other related software](#other-related-software)
33+
34+
## About OpenHantek6022
2335
* Supported devices:
24-
* Hantek 6022BE and 6022BL as well as compatible scopes (e.g. Voltcraft DSO-2020).
25-
* SainSmart DDS120 (thx [msiegert](https://github.com/msiegert)) - this device has a different analog front end
36+
- Hantek 6022BE and 6022BL as well as compatible scopes (e.g. Voltcraft DSO-2020).
37+
- SainSmart DDS120 (thx [msiegert](https://github.com/msiegert)) - this device has a different analog front end
2638
and uses the [slightly improved sigrok firmware](https://github.com/Ho-Ro/sigrok-firmware-fx2lafw), which has [some limitations](https://sigrok.org/wiki/SainSmart_DDS120/Info#Open-source_firmware_details)
2739
compared to the Hantek scopes (see [#69](https://github.com/OpenHantek/OpenHantek6022/issues/69#issuecomment-607341694)).
40+
2841
* Demo mode is provided by the `-d` or `--demoMode` command line option.
2942
* Fully supported operating system: Linux; developed under debian stable for amd64 architecture.
3043
* Raspberry Pi packages (raspbian stable) are available on the [Releases](https://github.com/OpenHantek/OpenHantek6022/releases) page, check this [setup requirement](docs/build.md#raspberrypi).
3144
* Compiles under FreeBSD (packaging / installation: work in progress, thx [tspspi](https://github.com/tspspi)).
3245
* Other operating systems builds: [Windows](docs/images/screenshot_mainwindow_win.png) (mostly untested) & macOS (completely untested).
33-
34-
**No support for non-Linux related issues unless a volunteer steps in!**
46+
**No support for non-Linux related issues unless a volunteer steps in!**
3547
* Uses [free open source firmware](https://github.com/Ho-Ro/Hantek6022API), no longer dependent on nonfree Hantek firmware.
3648
* Extensive [User Manual](docs/OpenHantek6022_User_Manual.pdf) with technical specs and schematics.
3749

@@ -67,15 +79,18 @@ but David [stopped maintaining](https://github.com/OpenHantek/openhantek/issues/
6779
* French, German, Russian and Spanish localisation complete, Italian and Portuguese translation ongoing.
6880

6981
## AC coupling
70-
* A [little HW modification](docs/HANTEK6022_AC_Modification.pdf) adds AC coupling. OpenHantek6022 supports this feature since v2.17-rc5 / FW0204.
82+
A [little HW modification](docs/HANTEK6022_AC_Modification.pdf) adds AC coupling. OpenHantek6022 supports this feature since v2.17-rc5 / FW0204.
7183

7284
## Continous Integration
7385
Every commit triggers a workflow on
74-
[GitHub Actions](https://github.com/OpenHantek/OpenHantek6022/actions/workflows/ubuntu_check.yml)
75-
that checks the build on different Ubuntu LTS versions (curently 20.04 and 18.04)
76-
and a workflow on [appveyor](https://ci.appveyor.com/project/Ho-Ro/openhantek6022)
77-
that builds and packages OpenHantek6022 for Linux (Ubuntu), macOS and Windows.
78-
Status badges on top of this page show the build status.
86+
[GitHub Actions](https://github.com/OpenHantek/OpenHantek6022/actions/workflows/build_check.yml)
87+
that builds and packages OpenHantek6022 for:
88+
* Linux (Ubuntu-18.04)
89+
* macOS (Catalina 10.15)
90+
* Windows (MSVS-2019)
91+
92+
[![GitHub CI](https://github.com/OpenHantek/OpenHantek6022/actions/workflows/build_check.yml/badge.svg)](https://github.com/OpenHantek/OpenHantek6022/actions/workflows/build_check.yml)
93+
This status badge here (and on top of this page) show the build status.
7994

8095
## Building OpenHantek6022 from source
8196
The preferred way to run OpenHantek is to build it from source on your system,

cmake/CPackInfos.cmake

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# This file configures CPack.
2-
# A tgz, deb and rpm file is created for linux (tgz and deb tested on debian stretch and buster).
3-
# A tgz file is created for osx (not tested).
4-
# A zip file and an NSIS Installer exe is created on windows (not tested).
1+
# This file configures CPack.
2+
# A tgz, deb and rpm file is created for Linux (tgz and deb tested on debian stretch and buster).
3+
# A tar.gz and dmg file is created for macOS (not tested).
4+
# A zip file is created on Windows (not tested).
55

66
find_package(Git QUIET)
77

@@ -140,7 +140,7 @@ set(CPACK_PACKAGE_CONTACT "contact@openhantek.org")
140140
set(CPACK_PACKAGE_VENDOR "OpenHantek Community")
141141
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Digital oscilloscope software for Hantek DSO6022 USB hardware")
142142
set(CPACK_PACKAGE_DESCRIPTION "OpenHantek is an oscilloscope software for\nVoltcraft/Darkwire/Protek/Acetech/Hantek USB devices")
143-
set(CPACK_RESOURCE_FILE_README "${CMAKE_SOURCE_DIR}/readme.md")
143+
set(CPACK_RESOURCE_FILE_README "${CMAKE_SOURCE_DIR}/README.md")
144144
if (EXISTS "${CMAKE_SOURCE_DIR}/LICENSE")
145145
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/LICENSE")
146146
endif()

openhantek/src/OH_BUILD.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
// Do not edit, will be re-created at each commit!
2-
#define OH_BUILD "20210411 build 0"
2+
#define OH_BUILD "20210412 build 0"

0 commit comments

Comments
 (0)