Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "blur-autoclicker",
"private": true,
"version": "3.9.0",
"version": "3.9.1",
"type": "module",
"scripts": {
"dev": "tauri dev",
Expand Down
77 changes: 77 additions & 0 deletions scripts/bump-version.mjs
Original file line number Diff line number Diff line change
@@ -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 <semver>");
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}.`);
2 changes: 1 addition & 1 deletion src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
11 changes: 7 additions & 4 deletions src/settingsSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
Expand Down Expand Up @@ -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" },
Expand Down Expand Up @@ -653,6 +653,7 @@ export const FACTORY_PRESETS: PresetDefinition[] = [
keyboardKeyCase: "lower",
mouseButton: "Left",
mode: "Toggle",
hotkey: "ctrl+y",
dutyCycleMode: "Click",
dutyCycleEnabled: true,
dutyCycle: 45,
Expand Down Expand Up @@ -696,6 +697,7 @@ export const FACTORY_PRESETS: PresetDefinition[] = [
keyboardKeyCase: "lower",
mouseButton: "Left",
mode: "Toggle",
hotkey: "ctrl+y",
dutyCycleMode: "Click",
dutyCycleEnabled: true,
dutyCycle: 20,
Expand Down Expand Up @@ -739,6 +741,7 @@ export const FACTORY_PRESETS: PresetDefinition[] = [
keyboardKeyCase: "lower",
mouseButton: "Left",
mode: "Toggle",
hotkey: "ctrl+y",
dutyCycleMode: "Click",
dutyCycleEnabled: true,
dutyCycle: 60,
Expand Down
Loading