Skip to content

Commit

Permalink
cotp: Add persist, make portable (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
brian6932 authored Oct 11, 2023
1 parent d1277e0 commit 299be39
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bucket/cotp.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@
"extract_dir": "cotp-v1.3.0-x86_64-win-gnu"
}
},
"pre_install": [
"if (Test-Path \"$persist_dir\\db.cotp\") { return }",
"if (Test-Path ($default_path = \"$home\\.cotp\\db.cotp\")) { return New-Item -ItemType SymbolicLink -Path \"$dir\\db.cotp\" -Target $default_path | Out-Null }",
"New-Item \"$dir\\db.cotp\" | Out-Null"
],
"persist": "db.cotp",
"bin": "cotp.exe",
"checkver": "github",
"autoupdate": {
Expand Down

0 comments on commit 299be39

Please sign in to comment.