From 7ffad065c61cc9e1b055b450ebbe2832b2643960 Mon Sep 17 00:00:00 2001 From: Blur Date: Tue, 21 Jul 2026 12:02:52 +0200 Subject: [PATCH] Bump version to 3.9.1 and update changelog with fixed presets hotkey issue --- CHANGELOG.md | 4 ++ package-lock.json | 4 +- package.json | 2 +- scripts/bump-version.mjs | 77 +++++++++++++++++++++++++++++++++++++++ src-tauri/Cargo.lock | 2 +- src-tauri/Cargo.toml | 2 +- src-tauri/tauri.conf.json | 2 +- src/settingsSchema.ts | 11 ++++-- 8 files changed, 94 insertions(+), 10 deletions(-) create mode 100644 scripts/bump-version.mjs diff --git a/CHANGELOG.md b/CHANGELOG.md index 9a5c15a8..97b63038 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# v3.9.1 - 21.07.2026 (d.m.y) +## Fixed +- Fixed Presets not saving the clicker activation hotkey. + # v3.9.0 - 18.07.2026 (d.m.y) ## New - Added Hold mode in duty cycle since people couldn't figure out that 100% is the same as Holding down the mouse continuously. diff --git a/package-lock.json b/package-lock.json index 771999d6..1fed145d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "blur-autoclicker", - "version": "3.9.0", + "version": "3.9.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "blur-autoclicker", - "version": "3.9.0", + "version": "3.9.1", "dependencies": { "@tauri-apps/api": "^2.10.1", "@tauri-apps/cli": "^2.10.1", diff --git a/package.json b/package.json index bf8bffe5..981ad6cc 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "blur-autoclicker", "private": true, - "version": "3.9.0", + "version": "3.9.1", "type": "module", "scripts": { "dev": "tauri dev", diff --git a/scripts/bump-version.mjs b/scripts/bump-version.mjs new file mode 100644 index 00000000..0d8a0b03 --- /dev/null +++ b/scripts/bump-version.mjs @@ -0,0 +1,77 @@ +#!/usr/bin/env node +//───────────────────────────────────────────── +// node scripts/bump-version.mjs 0.0.0 +//───────────────────────────────────────────── +import { readFileSync, writeFileSync } from "fs"; + +const newVersion = process.argv[2]; + +if (!newVersion || !/^\d+\.\d+\.\d+$/.test(newVersion)) { + console.error("Usage: node scripts/bump-version.mjs "); + console.error(" e.g. node scripts/bump-version.mjs 3.10.0"); + process.exit(1); +} + +let count = 0; + +// ── 1. package.json ───────────────────────────────────────────────────────── +{ + const path = "package.json"; + const pkg = JSON.parse(readFileSync(path, "utf8")); + const old = pkg.version; + pkg.version = newVersion; + writeFileSync(path, JSON.stringify(pkg, null, 2) + "\n"); + console.log(`\u2713 ${path}: ${old} \u2192 ${newVersion}`); + count++; +} + +// ── 2. src-tauri/Cargo.toml ───────────────────────────────────────────────── +{ + const path = "src-tauri/Cargo.toml"; + const text = readFileSync(path, "utf8"); + const updated = text.replace( + /^version = "[\d.]+"$/m, + `version = "${newVersion}"`, + ); + writeFileSync(path, updated); + console.log(`\u2713 ${path}: updated`); + count++; +} + +// ── 3. src-tauri/tauri.conf.json ──────────────────────────────────────────── +{ + const path = "src-tauri/tauri.conf.json"; + const conf = JSON.parse(readFileSync(path, "utf8")); + conf.version = newVersion; + writeFileSync(path, JSON.stringify(conf, null, 2) + "\n"); + console.log(`\u2713 ${path}: updated`); + count++; +} + +// ── 4. package-lock.json (root version + package entry) ──────────────────── +{ + const path = "package-lock.json"; + const lock = JSON.parse(readFileSync(path, "utf8")); + lock.version = newVersion; + if (lock.packages?.[""]?.version) { + lock.packages[""].version = newVersion; + } + writeFileSync(path, JSON.stringify(lock, null, 2) + "\n"); + console.log(`\u2713 ${path}: updated`); + count++; +} + +// ── 5. src-tauri/Cargo.lock (root package version) ───────────────────────── +{ + const path = "src-tauri/Cargo.lock"; + const text = readFileSync(path, "utf8"); + const updated = text.replace( + /^version = "[\d.]+"$/m, + `version = "${newVersion}"`, + ); + writeFileSync(path, updated); + console.log(`\u2713 ${path}: updated`); + count++; +} + +console.log(`\nDone! ${count} files updated to ${newVersion}.`); diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index c8e5c18c..9e28fca7 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -4,7 +4,7 @@ version = 3 [[package]] name = "BlurAutoClicker" -version = "3.9.0" +version = "3.9.1" dependencies = [ "base64 0.22.1", "chrono", diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index d936d9b9..60456448 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "BlurAutoClicker" -version = "3.9.0" +version = "3.9.1" description = "BlurAutoClicker - accuracy and performance focused auto clicker for Windows." authors = ["Blur009"] license = "GPL-3.0" diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index b46afda0..07e6a967 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -1,7 +1,7 @@ { "$schema": "https://schema.tauri.app/config/2", "productName": "BlurAutoClicker", - "version": "3.9.0", + "version": "3.9.1", "identifier": "BlurAutoClicker", "build": { "frontendDist": "../dist", diff --git a/src/settingsSchema.ts b/src/settingsSchema.ts index 6277e398..d93a0104 100644 --- a/src/settingsSchema.ts +++ b/src/settingsSchema.ts @@ -147,6 +147,10 @@ const PRESET_FIELDS = { default: "Toggle" as ClickMode, ui: { section: "core", control: "select" }, }, + hotkey: { + default: "ctrl+y", + ui: { section: "core", control: "hotkey" }, + }, dutyCycleMode: { default: "Click" as DutyCycleMode, ui: { section: "core", control: "select" }, @@ -275,10 +279,6 @@ const PRESET_FIELDS = { //All Other settings that do not need to be saved by presets go here. const SETTINGS_ONLY_FIELDS = { - hotkey: { - default: "ctrl+y", - ui: { section: "core", control: "hotkey" }, - }, rateInputMode: { default: "rate" as RateInputMode, ui: { section: "core", control: "select" }, @@ -653,6 +653,7 @@ export const FACTORY_PRESETS: PresetDefinition[] = [ keyboardKeyCase: "lower", mouseButton: "Left", mode: "Toggle", + hotkey: "ctrl+y", dutyCycleMode: "Click", dutyCycleEnabled: true, dutyCycle: 45, @@ -696,6 +697,7 @@ export const FACTORY_PRESETS: PresetDefinition[] = [ keyboardKeyCase: "lower", mouseButton: "Left", mode: "Toggle", + hotkey: "ctrl+y", dutyCycleMode: "Click", dutyCycleEnabled: true, dutyCycle: 20, @@ -739,6 +741,7 @@ export const FACTORY_PRESETS: PresetDefinition[] = [ keyboardKeyCase: "lower", mouseButton: "Left", mode: "Toggle", + hotkey: "ctrl+y", dutyCycleMode: "Click", dutyCycleEnabled: true, dutyCycle: 60,