diff --git a/CMakeLists.txt b/CMakeLists.txt index 7391148..79a2513 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,10 +1,15 @@ cmake_minimum_required(VERSION 3.19) +file(READ "${CMAKE_SOURCE_DIR}/VERSION" VER_RAW) +string(STRIP ${VER_RAW} VER) + project( checkpoint DESCRIPTION "Tiny reverse proxy that attempts to block AI scrapers" + VERSION ${VER} ) +set(CHECKPOINT_VERSION ${VER}) set(PISTACHE_BUILD_TESTS OFF) set(PISTACHE_BUILD_FUZZ OFF) @@ -20,6 +25,7 @@ set(CMAKE_CXX_STANDARD 23) add_executable(checkpoint ${SRCFILES}) add_compile_options(-Wno-deprecated-declarations -Wno-deprecated) +add_compile_definitions(CHECKPOINT_VERSION="${CHECKPOINT_VERSION}") find_package(PkgConfig REQUIRED) diff --git a/VERSION b/VERSION new file mode 100644 index 0000000..6c6aa7c --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +0.1.0 \ No newline at end of file diff --git a/html/index.html b/html/index.html index 315ce1c..a7a1f44 100644 --- a/html/index.html +++ b/html/index.html @@ -216,7 +216,7 @@
- Powered by checkpoint + Powered by checkpoint v{{ tl:text checkpointVersion }} diff --git a/html/index.min.html b/html/index.min.html index e229b78..7d2dd50 100644 --- a/html/index.min.html +++ b/html/index.min.html @@ -1,2 +1,2 @@ -STOP!
Verifying that you are not a bot. This might take a short moment.
You do not need to do anything.
Why am I seeing this?
This website protects itself from AI bots and scrapers by asking you to complete a cryptographic challenge before allowing you entry.
STOP!
Verifying that you are not a bot. This might take a short moment.
You do not need to do anything.
Why am I seeing this?
This website protects itself from AI bots and scrapers by asking you to complete a cryptographic challenge before allowing you entry.