Skip to content

Commit

Permalink
pandownload: Fix data persistence
Browse files Browse the repository at this point in the history
  • Loading branch information
Chawye Hsu committed Jul 16, 2019
1 parent 7c4f947 commit f92c9b1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions bucket/pandownload.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,17 @@
"PanDownload"
]
],
"pre_install": [
"function CreateFile([String] $file, [String] $content = $null) {",
" if (!(Test-Path \"$persist_dir\\$file\")) {",
" New-Item -Force -Path \"$persist_dir\\$file\" -ItemType file -Value $content | Out-Null",
" }",
"}",
"CreateFile 'PanData/config.ini'",
"CreateFile 'PanData/share.db'",
"CreateFile 'PanData/task.db'",
"CreateFile 'PanData/user.db'"
],
"persist": [
"PanData/config.ini",
"PanData/share.db",
Expand Down

1 comment on commit f92c9b1

@kidonng
Copy link
Contributor

@kidonng kidonng commented on f92c9b1 Jul 22, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only after #16 got merged did I remember Scoop can't determine persist data type yet. (Pending ScoopInstaller/Scoop#3212 or ScoopInstaller/Scoop#3248)
Anyway thanks a lot :P

Please sign in to comment.