Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
gaojr committed Jan 18, 2022
1 parent 7a9f187 commit 6c8ec83
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 68 deletions.
36 changes: 18 additions & 18 deletions bucket/honeyview.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,36 +3,36 @@
"description": "A fast image viewer",
"homepage": "https://www.bandisoft.com/honeyview/",
"license": {
"identifier": "Freeware",
"url": "https://www.bandisoft.com/honeyview/eula/"
"identifier": "Freeware",
"url": "https://www.bandisoft.com/honeyview/eula/"
},
"url": "https://dl.bandisoft.com/honeyview/HONEYVIEW-SETUP.EXE",
"hash": "386e65f2e7c85d5491f4e8589b509c76bf1c3fb952ffb027c462bc252e506ba6",
"pre_install": [
"Expand-7zipArchive \"$dir\\$fname\" -Overwrite Rename -Removal",
"Remove-Item \"$dir\\$*\" -Recurse",
"if (-not (Test-Path \"$persist_dir\\setting.ini\")) { New-Item \"$dir\\setting.ini\" -ItemType File | Out-Null }",
"# Enable portable mode",
"$cont = (Get-Content \"$dir\\config.ini\") -replace '^(is_portable\\s+=\\s+)0', '${1}1'",
"Set-Content \"$dir\\config.ini\" $cont -Encoding ASCII -Force"
"Expand-7zipArchive \"$dir\\$fname\" -Overwrite Rename -Removal",
"Remove-Item \"$dir\\$*\" -Recurse",
"if (-not (Test-Path \"$persist_dir\\setting.ini\")) { New-Item \"$dir\\setting.ini\" -ItemType File | Out-Null }",
"# Enable portable mode",
"$cont = (Get-Content \"$dir\\config.ini\") -replace '^(is_portable\\s+=\\s+)0', '${1}1'",
"Set-Content \"$dir\\config.ini\" $cont -Encoding ASCII -Force"
],
"architecture": {
"64bit": {
"installer": {
"script": "Move-Item \"$dir\\Honeyview_1.exe\" \"$dir\\Honeyview.exe\" -Force"
}
},
"32bit": {
"installer": {
"script": "Remove-Item \"$dir\\Honeyview_1.exe\""
}
"64bit": {
"installer": {
"script": "Move-Item \"$dir\\Honeyview_1.exe\" \"$dir\\Honeyview.exe\" -Force"
}
},
"32bit": {
"installer": {
"script": "Remove-Item \"$dir\\Honeyview_1.exe\""
}
}
},
"bin": "Honeyview.exe",
"shortcuts": [["Honeyview.exe", "Honeyview"]],
"persist": ["config.ini", "setting.ini"],
"checkver": "Download Honeyview \\(v([\\d.]+)\\)",
"autoupdate": {
"url": "https://dl.bandisoft.com/honeyview/HONEYVIEW-SETUP.EXE"
"url": "https://dl.bandisoft.com/honeyview/HONEYVIEW-SETUP.EXE"
}
}
100 changes: 50 additions & 50 deletions bucket/vscode.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,69 +3,69 @@
"description": "Lightweight but powerful source code editor",
"homepage": "https://code.visualstudio.com/",
"license": {
"identifier": "Freeware",
"url": "https://code.visualstudio.com/License/"
"identifier": "Freeware",
"url": "https://code.visualstudio.com/License/"
},
"notes": [
"Add Visual Studio Code as a context menu option by running: '$dir\\install-context.reg'",
"For file associations, run '$dir\\install-associations.reg'"
"Add Visual Studio Code as a context menu option by running: '$dir\\install-context.reg'",
"For file associations, run '$dir\\install-associations.reg'"
],
"architecture": {
"64bit": {
"url": "https://update.code.visualstudio.com/1.63.2/win32-x64-archive/stable#/dl.7z",
"hash": "5d3c75fe622afd170871a1357820e49c89a06c5684e51f7994e4be622b07d9fe"
},
"32bit": {
"url": "https://update.code.visualstudio.com/1.63.2/win32-archive/stable#/dl.7z",
"hash": "8199f4c65a765e2cf405d8fbe4a0cd54d3cbbe0c2ff46b4785028d962fe1f455"
}
"64bit": {
"url": "https://update.code.visualstudio.com/1.63.2/win32-x64-archive/stable#/dl.7z",
"hash": "5d3c75fe622afd170871a1357820e49c89a06c5684e51f7994e4be622b07d9fe"
},
"32bit": {
"url": "https://update.code.visualstudio.com/1.63.2/win32-archive/stable#/dl.7z",
"hash": "8199f4c65a765e2cf405d8fbe4a0cd54d3cbbe0c2ff46b4785028d962fe1f455"
}
},
"env_add_path": "bin",
"shortcuts": [["code.exe", "Visual Studio Code"]],
"post_install": [
"$dirpath = \"$dir\".Replace('\\', '\\\\')",
"$exepath = \"$dir\\Code.exe\".Replace('\\', '\\\\')",
"'install-associations', 'uninstall-associations', 'install-context', 'uninstall-context' | ForEach-Object {",
" if (Test-Path \"$bucketsdir\\extras\\scripts\\vscode\\$_.reg\") {",
" $content = Get-Content \"$bucketsdir\\extras\\scripts\\vscode\\$_.reg\"",
" $content = $content.Replace('$codedir', $dirpath)",
" $content = $content.Replace('$code', $exepath)",
" if ($global) {",
" $content = $content.Replace('HKEY_CURRENT_USER', 'HKEY_LOCAL_MACHINE')",
" }",
" $content | Set-Content -Path \"$dir\\$_.reg\"",
" }",
"}",
"if (!(Test-Path \"$dir\\data\\extensions\") -and (Test-Path \"$env:USERPROFILE\\.vscode\\extensions\")) {",
" info '[Portable Mode] Copying extensions...'",
" Copy-Item \"$env:USERPROFILE\\.vscode\\extensions\" \"$dir\\data\" -Recurse",
"}",
"if (!(Test-Path \"$dir\\data\\user-data\") -and (Test-Path \"$env:AppData\\Code\")) {",
" info '[Portable Mode] Copying user data...'",
" Copy-Item \"$env:AppData\\Code\" \"$dir\\data\\user-data\" -Recurse",
"}"
"$dirpath = \"$dir\".Replace('\\', '\\\\')",
"$exepath = \"$dir\\Code.exe\".Replace('\\', '\\\\')",
"'install-associations', 'uninstall-associations', 'install-context', 'uninstall-context' | ForEach-Object {",
" if (Test-Path \"$bucketsdir\\extras\\scripts\\vscode\\$_.reg\") {",
" $content = Get-Content \"$bucketsdir\\extras\\scripts\\vscode\\$_.reg\"",
" $content = $content.Replace('$codedir', $dirpath)",
" $content = $content.Replace('$code', $exepath)",
" if ($global) {",
" $content = $content.Replace('HKEY_CURRENT_USER', 'HKEY_LOCAL_MACHINE')",
" }",
" $content | Set-Content -Path \"$dir\\$_.reg\"",
" }",
"}",
"if (!(Test-Path \"$dir\\data\\extensions\") -and (Test-Path \"$env:USERPROFILE\\.vscode\\extensions\")) {",
" info '[Portable Mode] Copying extensions...'",
" Copy-Item \"$env:USERPROFILE\\.vscode\\extensions\" \"$dir\\data\" -Recurse",
"}",
"if (!(Test-Path \"$dir\\data\\user-data\") -and (Test-Path \"$env:AppData\\Code\")) {",
" info '[Portable Mode] Copying user data...'",
" Copy-Item \"$env:AppData\\Code\" \"$dir\\data\\user-data\" -Recurse",
"}"
],
"persist": "data",
"checkver": {
"url": "https://code.visualstudio.com/sha?build=stable",
"jsonpath": "$.products[?(@.platform.os == 'win32-x64-archive')].name"
"url": "https://code.visualstudio.com/sha?build=stable",
"jsonpath": "$.products[?(@.platform.os == 'win32-x64-archive')].name"
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://update.code.visualstudio.com/$version/win32-x64-archive/stable#/dl.7z",
"hash": {
"url": "https://code.visualstudio.com/sha?build=stable",
"jsonpath": "$.products[?(@.platform.os == 'win32-x64-archive')].sha256hash"
}
},
"32bit": {
"url": "https://update.code.visualstudio.com/$version/win32-archive/stable#/dl.7z",
"hash": {
"url": "https://code.visualstudio.com/sha?build=stable",
"jsonpath": "$.products[?(@.platform.os == 'win32-archive')].sha256hash"
}
}
"architecture": {
"64bit": {
"url": "https://update.code.visualstudio.com/$version/win32-x64-archive/stable#/dl.7z",
"hash": {
"url": "https://code.visualstudio.com/sha?build=stable",
"jsonpath": "$.products[?(@.platform.os == 'win32-x64-archive')].sha256hash"
}
},
"32bit": {
"url": "https://update.code.visualstudio.com/$version/win32-archive/stable#/dl.7z",
"hash": {
"url": "https://code.visualstudio.com/sha?build=stable",
"jsonpath": "$.products[?(@.platform.os == 'win32-archive')].sha256hash"
}
}
}
}
}

0 comments on commit 6c8ec83

Please sign in to comment.