add preferences and macOS packaging

This commit is contained in:
Georg Bauer
2026-07-24 12:23:50 +02:00
parent 2e1de825ab
commit 579e1030b2
13 changed files with 591 additions and 79 deletions

View File

@@ -0,0 +1 @@
DROP TABLE preferences;

View File

@@ -0,0 +1,12 @@
CREATE TABLE preferences (
id INTEGER PRIMARY KEY NOT NULL CHECK (id = 1),
selected_model TEXT NOT NULL DEFAULT 'deepseek-v4-flash'
CHECK (selected_model IN ('deepseek-v4-flash', 'deepseek-v4-pro', 'glm-5.2')),
dflash_enabled BOOLEAN NOT NULL DEFAULT 0
CHECK (dflash_enabled IN (0, 1)),
idle_timeout_minutes INTEGER NOT NULL DEFAULT 10
CHECK (idle_timeout_minutes BETWEEN 1 AND 1440),
CHECK (dflash_enabled = 0 OR selected_model = 'deepseek-v4-flash')
);
INSERT INTO preferences (id) VALUES (1);