Skip to content

Commit

Permalink
pastebar: add version 0.6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
qianlongzt committed Nov 17, 2024
1 parent 8766fcb commit 612c79c
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
11 changes: 11 additions & 0 deletions bin/util.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,17 @@ function move_link {
New-Item -Path $Target -ItemType $Type -Force | Out-Null
}
}
new_link $Origin $Target
}

function new_link {
[CmdletBinding()]
param (
[ValidateNotNullOrEmpty()]
[string]$Origin,
[ValidateNotNullOrEmpty()]
[string]$Target
)
try {
New-Item -Path $Origin -ItemType 'SymbolicLink' -Value $Target -ErrorAction Stop | Out-Null
}
Expand Down
36 changes: 36 additions & 0 deletions bucket/pastebar.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"version": "0.6.2",
"description": "PasteBar - Limitless, Free Clipboard Manager for Mac and Windows",
"homepage": "https://github.com/PasteBar/PasteBarApp",
"license": "Unknown",
"url": "https://github.com/PasteBar/PasteBarApp/releases/download/v0.6.2/PasteBar_0.6.2_Win_portable.zip",
"hash": "759304fc75c202c343d6d0804771392efd6bda3751a3364a673a734bfb356868",
"pre_install": "Remove-Item \"$dir\\`$*\", \"$dir\\uninst*\" -Force -Recurse",
"installer": {
"script": [
". $bucketsdir\\$bucket\\bin\\util.ps1",
"ensure $persist_dir",
"move_link -Origin \"$env:LOCALAPPDATA\\app.anothervision.pasteBar\" -Target \"$persist_dir\\appdata\"",
"move_link -Origin \"$env:APPDATA\\app.anothervision.pasteBar\" -Target \"$persist_dir\\userdata\""
]
},
"uninstaller": {
"script": [
"remove-item \"$env:LOCALAPPDATA\\app.anothervision.pasteBar\"",
"remove-item \"$env:APPDATA\\app.anothervision.pasteBar\""
]
},
"shortcuts": [
[
"PasteBar.exe",
"PasteBar"
]
],
"checkver": {
"url": "https://api.github.com/repos/PasteBar/PasteBarApp/releases",
"regex": "/releases/tag/v([\\d.]+)"
},
"autoupdate": {
"url": "https://github.com/PasteBar/PasteBarApp/releases/download/v$version/PasteBar_$version_Win_portable.zip"
}
}

0 comments on commit 612c79c

Please sign in to comment.