Skip to content

Commit 8f2b8ea

Browse files
committed
v2.0.0
1 parent fdd47d8 commit 8f2b8ea

File tree

3 files changed

+57
-4
lines changed

3 files changed

+57
-4
lines changed

README.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
1717
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
18+
1819
**Table of Contents**
1920

2021
- [Description](#description)
@@ -60,6 +61,8 @@ Qt6 C++23 shell/commandline application to encrypt / decrypt the given file.
6061
- Password: SHA256, between 5 to 32 characters
6162
- initialization vector: MD5
6263

64+
see also the Desktop version [qt-desktop_file_encryption-decryption](https://github.com/Zheng-Bote/qt-desktop_file_encryption-decryption)
65+
6366
## Features
6467

6568
- [x] encrypt/decrypt every readable file (binary-mode, chunk size 4MB)
@@ -97,6 +100,17 @@ Qt6 C++23 shell/commandline application to encrypt / decrypt the given file.
97100
![GitHub Issues](https://img.shields.io/github/issues/Zheng-Bote/qt-cli_file_encryption-decryption)
98101
![GitHub Pull Requests](https://img.shields.io/github/issues-pr/Zheng-Bote/qt-cli_file_encryption-decryption)
99102

103+
# breaking Changes
104+
105+
> \[!CAUTION]
106+
> Please be aware of breaking changes
107+
108+
| Version | status | Comment |
109+
| ------- | --------------------------------------- | ------------------------------------------------------------------ |
110+
| v0.1.0 | **NOT** compatible to higher versions. | initial creation, text mode |
111+
| v1.0.0 | **NOT** compatible with lower versions. | optimized input/output, text mode limited to some text-based files |
112+
| v2.0.0 | **NOT** compatible with lower versions. | binary-mode, works on every readable file. No filesize limit. |
113+
100114
# Documentation
101115

102116
## Usage
@@ -248,8 +262,10 @@ PWD=my_secret_env_var # Mandatory get password from $my_secret_env
248262

249263
## Linux
250264

251-
- make AppImage executable (eg. `chmod 755 file_encryption-decryption-x86_64.AppImage` )
252-
- execute AppImage
265+
Several installation packages are available, depending on your Linux system (deb, rpm, zip, AppImage).
266+
267+
> \[!Note]
268+
> see (latest) Release for packages
253269
254270
## MacOS
255271

@@ -304,6 +320,7 @@ An utility to load environment variables from a .env file
304320
## folder structure
305321

306322
<!-- readme-tree start -->
323+
307324
```
308325
.
309326
├── .github
@@ -352,6 +369,7 @@ An utility to load environment variables from a .env file
352369
353370
10 directories, 34 files
354371
```
372+
355373
<!-- readme-tree end -->
356374

357375
<p align="right">(<a href="#top">back to top</a>)</p>

src/CMakeLists.txt

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.23)
22

33
project(
44
qt-cli_file_encryption-decryption
5-
VERSION 0.2.0
5+
VERSION 2.0.0
66
DESCRIPTION "cli app to encrypt and decrypt a given file"
77
HOMEPAGE_URL "https://github.com/Zheng-Bote/qt-cli_file_encryption-decryption"
88
LANGUAGES CXX)
@@ -22,11 +22,17 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Linux" AND ${CMAKE_BUILD_TYPE} STREQUAL "Debug")
2222
-header-filter=.;-checks=cppcoreguidelines-*)
2323
endif()
2424

25+
set(CMAKE_PREFIX_PATH "${CMAKE_BUILD_DIR}")
26+
2527
set(PROG_EXEC_NAME "${PROJECT_NAME}")
2628
set(PROG_NAME "File encryption/decryption")
2729
set(PROG_VERSION "${PROJECT_VERSION}")
2830
set(PROG_HOMEPAGE "${PROJECT_HOMEPAGE_URL}")
31+
set(PROG_AUTHOR "ZHENG Robert")
32+
set(PROG_AUTHOR_CONTACT "robert.hase-zheng.net")
2933
set(PROG_DESCRIPTION "${PROJECT_DESCRIPTION}")
34+
set(PROG_COPYRIGHT "Copyright (c) 2025 ZHENG Robert")
35+
set(PROG_BUILD_TYPE "${CMAKE_BUILD_TYPE}")
3036

3137
configure_file("${CMAKE_SOURCE_DIR}/configure/rz_config.h.in"
3238
"${CMAKE_SOURCE_DIR}/includes/rz_config.h")
@@ -52,3 +58,32 @@ install(
5258
TARGETS ${PROJECT_NAME}
5359
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
5460
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
61+
62+
install(TARGETS ${PROJECT_NAME} RUNTIME_DEPENDENCY_SET libDeps)
63+
install(RUNTIME_DEPENDENCY_SET libDeps)
64+
65+
# IFW needs to set external export QTIFWDIR=...
66+
set(QTIFWDIR "/opt/Qt/Tools/QtInstallerFramework/4.8/bin")
67+
include(InstallRequiredSystemLibraries)
68+
set(CPACK_IFW_ROOT "${GLOBAL}/Qt/Tools/QtInstallerFramework/4.8")
69+
set(CPACK_RESOURCE_FILE_LICENSE ${CMAKE_CURRENT_SOURCE_DIR}/../LICENSE)
70+
set(CPACK_PACKAGE_VENDOR "${PROG_AUTHOR}")
71+
set(CPACK_PACKAGE_CONTACT "${PROG_AUTHOR_CONTACT}")
72+
set(CPACK_RPM_PACKAGE_VENDOR "${PROG_AUTHOR_CONTACT}")
73+
set(CPACK_PACKAGE_DESCRIPTION "${PROJECT_DESCRIPTION}")
74+
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "encrypt and decrypt a given file")
75+
set(CPACK_THREADS "6")
76+
set(CPACK_PACKAGE_CHECKSUM SHA256)
77+
set(CPACK_DEBIAN_PACKAGE_SECTION "utils")
78+
set(CPACK_PACKAGE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/Packaging")
79+
set(CPACK_GENERATOR "DEB;ZIP;TBZ2;RPM")
80+
81+
include(CPack)
82+
83+
# the end
84+
message("Build with CMake version: ${CMAKE_VERSION} and c++${CMAKE_CXX_STANDARD}")
85+
include(ProcessorCount)
86+
ProcessorCount(N)
87+
message("number of processors: " ${N})
88+
message("cmake -S ../src -B . --parallel ${N}")
89+

src/includes/rz_config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
#define PROG_EXEC_NAME "qt-cli_file_encryption-decryption"
44
#define PROG_NAME "File encryption/decryption"
5-
#define PROG_VERSION "0.2.0"
5+
#define PROG_VERSION "2.0.0"
66
#define PROG_HOMEPAGE "https://github.com/Zheng-Bote/qt-cli_file_encryption-decryption"
77
#define PROG_DESCRIPTION "cli app to encrypt and decrypt a given file"
88

0 commit comments

Comments
 (0)