Skip to content

Commit 0985f9f

Browse files
committed
fluxdown: prepare persist for portable_data migration (refs #91)
FluxDown v0.3+ moves portable runtime data from exe root into portable_data/ subdirectory (zerx-lab/FluxDown#91). - persist: add portable_data/ so Scoop hardlinks the new data directory - pre_install: create portable_data/ dir first so persist step handles it as a directory junction - notes: update all data path references to portable_data/ prefix Old root-level persist items (flux_down.db, bt_session, settings.json, logs) are kept for seamless 0.2.x→0.3.0 upgrades: the app's built-in migration code rename()s existing hardlinks from root into portable_data/ on first launch. They can be removed in a follow-up once users have upgraded.
1 parent 9e9b2b2 commit 0985f9f

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

bucket/fluxdown.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
},
99
"notes": [
1010
"FluxDown portable data persistence:",
11-
" - Built-in portable mode: runtime data stored in the app directory",
12-
" - Download history and config persisted via flux_down.db (SQLite)",
13-
" - BT session state (fast-resume) persisted via bt_session/",
14-
" - UI settings (window state, theme, locale) persisted via settings.json",
15-
" - Application logs persisted via logs/",
11+
" - Built-in portable mode: runtime data stored in portable_data/ subdirectory",
12+
" - Download history and config persisted via portable_data/flux_down.db (SQLite)",
13+
" - BT session state (fast-resume) persisted via portable_data/bt_session/",
14+
" - UI settings (window state, theme, locale) persisted via portable_data/settings.json",
15+
" - Application logs persisted via portable_data/logs/",
1616
" - All data is preserved across updates",
1717
"",
1818
"Browser extensions (required for download interception):",
@@ -34,6 +34,7 @@
3434
}
3535
},
3636
"pre_install": [
37+
"if (!(Test-Path \"$dir\\portable_data\")) { New-Item -ItemType Directory \"$dir\\portable_data\" -Force | Out-Null }",
3738
"if (!(Test-Path \"$dir\\flux_down.db\")) { New-Item -ItemType File \"$dir\\flux_down.db\" -Force | Out-Null }",
3839
"if (!(Test-Path \"$dir\\settings.json\")) { Set-Content \"$dir\\settings.json\" '{}' -Encoding UTF8 }"
3940
],
@@ -47,7 +48,8 @@
4748
"flux_down.db",
4849
"bt_session",
4950
"settings.json",
50-
"logs"
51+
"logs",
52+
"portable_data"
5153
],
5254
"checkver": {
5355
"github": "https://github.com/zerx-lab/FluxDown"

0 commit comments

Comments
 (0)