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 22, 2024
1 parent 9bf3d3e commit dbcc96c
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 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,7 +38,6 @@
"Syncthing Tray"
]
],
"persist": "syncthingtray.ini",
"checkver": "github",
"autoupdate": {
"architecture": {
Expand Down

0 comments on commit dbcc96c

Please sign in to comment.