Skip to content

Commit

Permalink
portable-build-tools: Add version 2.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
amorphobia committed Nov 29, 2024
1 parent 9b2fb12 commit 0743dcf
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ scoop install <manifest>
|[pijul](https://pijul.org/)<sup> [m](https://github.com/amorphobia/siku/blob/master/bucket/pijul.json)</sup>|Pijul is a free and open source (GPL2) distributed version control system.|
|[pixpin](https://pixpinapp.com/)<sup> [m](https://github.com/amorphobia/siku/blob/master/bucket/pixpin.json)</sup>|功能强大使用简单的截图/贴图工具,帮助你提高效率|
|[plain-craft-launcher](https://afdian.net/@LTCat)<sup> [m](https://github.com/amorphobia/siku/blob/master/bucket/plain-craft-launcher.json)</sup>|新一代 Minecraft / 我的世界 启动器|
|[portable-build-tools.json](https://github.com/Data-Oriented-House/PortableBuildTools)<sup> [m](https://github.com/amorphobia/siku/blob/master/bucket/portable-build-tools.json)</sup>|Portable VS Build Tools installer|
|[posh-cargo](https://github.com/Bak-Jin-Hyeong/posh-cargo)<sup> [m](https://github.com/amorphobia/siku/blob/master/bucket/posh-cargo.json)</sup>|Provides tab autocompletion of 'cargo' command on PowerShell prompt|
|[posh-cd](https://github.com/amorphobia/posh-cd)<sup> [m](https://github.com/amorphobia/siku/blob/master/bucket/posh-cd.json)</sup>|A bash style "cd" to replace Set-Location|
|[powercolorls](https://github.com/gardebring/PowerColorLS)<sup> [m](https://github.com/amorphobia/siku/blob/master/bucket/powercolorls.json)</sup>|PowerShell script to display a colorized directory and file listing with icons|
Expand Down
55 changes: 55 additions & 0 deletions bucket/portable-build-tools.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"version": "2.8.1",
"homepage": "https://github.com/Data-Oriented-House/PortableBuildTools",
"description": "Portable VS Build Tools installer",
"license": "https://go.microsoft.com/fwlink/?LinkId=2179911",
"notes": [
"This package defaults to download and install the latest MSVC toolchain in new installs and persist it in $persist_dir\\BuildTools.",
" - You can use GUI application to download and install other versions of MSVC toolchains.",
" - You can use `scoop uninstall portable-build-tools -p` to uninstall PortableBuildTools and MSVC toolchains.",
" - Read license https://go.microsoft.com/fwlink/?LinkId=2179911."
],
"url": "https://github.com/Data-Oriented-House/PortableBuildTools/releases/download/v2.8.1/PortableBuildTools.exe",
"hash": "5663660d0e61cdc7e57a74a8dfc30337895a1cd56d345fe62556bcdb6b896d84",
"installer": {
"script": [
"if (!(Test-Path -Path $persist_dir\\BuildTools)) {",
" Write-Host \"`n\"",
" ensure \"$persist_dir\\BuildTools\"",
" warn 'Downloading and installing the latest MSVC toolchain. This may take up minutes.'",
" if ($architecture -eq '64bit') {",
" Invoke-ExternalCommand -Path \"$dir\\PortableBuildTools.exe\" -Args @('accept_license', \"path=$persist_dir\\BuildTools\") | Out-Null",
" } else {",
" Invoke-ExternalCommand -Path \"$dir\\PortableBuildTools.exe\" -Args @('accept_license', \"path=$persist_dir\\BuildTools\", 'target=x86', 'host=x86') | Out-Null",
" }",
"} else {",
" warn 'Persisted MSVC toolchain found. Skip downloading and installing.'",
"}"
]
},
"post_install": [
"startmenu_shortcut \"$env:ComSpec\" \"Developer Command Prompt for PortableBuildTools\" \"/k `\"$persist_dir\\BuildTools\\devcmd.bat`\"\" $Null $global",
"startmenu_shortcut \"$env:SystemRoot\\System32\\WindowsPowerShell\\v1.0\\powershell.exe\" \"Developer PowerShell for PortableBuildTools\" \"-noe -file `\"$persist_dir\\BuildTools\\devcmd.ps1`\"\" $Null $global"
],
"post_uninstall": [
"$cmd_shortcut = \"$(shortcut_folder $global)\\Developer Command Prompt for PortableBuildTools.lnk\"",
"$ps_shortcut = \"$(shortcut_folder $global)\\Developer PowerShell for PortableBuildTools.lnk\"",
"$cmd_shortcut,$ps_shortcut | ForEach-Object {",
" if (Test-Path -Path $_) {",
" Remove-Item $_",
" }",
"}"
],
"bin": "PortableBuildTools.exe",
"shortcuts": [
[
"PortableBuildTools.exe",
"PortableBuildTools"
]
],
"persist": "BuildTools",
"checkver": "github",
"autoupdate": {
"url": "https://github.com/Data-Oriented-House/PortableBuildTools/releases/download/v$version/PortableBuildTools.exe"
}
}

0 comments on commit 0743dcf

Please sign in to comment.