Skip to content

Commit

Permalink
syncthingtray: fix config persist
Browse files Browse the repository at this point in the history
  • Loading branch information
qianlongzt committed Oct 16, 2024
1 parent e950eee commit 5588154
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions bucket/syncthingtray.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,18 @@
},
"pre_install": [
"Move-Item \"$dir\\syncthingtray-*-mingw32.exe\" \"$dir\\syncthingtray.exe\"",
"Move-Item \"$dir\\syncthingtray-*-mingw32-cli.exe\" \"$dir\\syncthingtray-cli.exe\"",
"Move-Item \"$dir\\syncthingtray-*-mingw32-cli.exe\" \"$dir\\syncthingtray-cli.exe\""
],
"##": "syncthingtray.ini will recreate by syncthingtray.exe",
"post_install": [
"$config = \"syncthingtray.ini\"",
"if (!(Test-Path \"$persist_dir\\$config\")) { New-Item \"$dir\\$config\" -ItemType File | Out-Null }"
"ensure $persist_dir",
"if (!(Test-Path \"$persist_dir\\$config\")) { New-Item \"$persist_dir\\$config\" -ItemType File | Out-Null }",
"move-item \"$persist_dir\\$config\" \"$dir\""
],
"pre_uninstall": [
"ensure $persist_dir",
"move-item \"$dir\\syncthingtray.ini\" \"$persist_dir\""
],
"bin": "syncthingtray-cli.exe",
"shortcuts": [
Expand All @@ -29,9 +38,6 @@
"Syncthing Tray"
]
],
"persist": [
"syncthingtray.ini"
],
"checkver": "github",
"autoupdate": {
"architecture": {
Expand Down

0 comments on commit 5588154

Please sign in to comment.