mirror of
https://github.com/cmderdev/cmder.git
synced 2025-09-16 03:03:10 +08:00
Compare commits
1 Commits
copilot/fi
...
update-ven
Author | SHA1 | Date | |
---|---|---|---|
3432f927ab |
@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
Skip all downloads and only build launcher.
|
Skip all downloads and only build launcher.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
.\build.ps1 -verbose
|
.\build -verbose
|
||||||
|
|
||||||
Execute the build and see what's going on.
|
Execute the build and see what's going on.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
@ -33,7 +33,7 @@
|
|||||||
Samuel Vasko, Jack Bennett
|
Samuel Vasko, Jack Bennett
|
||||||
Part of the Cmder project.
|
Part of the Cmder project.
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/cmderdev/cmder - Project Home
|
http://cmder.app/ - Project Home
|
||||||
#>
|
#>
|
||||||
[CmdletBinding(SupportsShouldProcess = $true)]
|
[CmdletBinding(SupportsShouldProcess = $true)]
|
||||||
Param(
|
Param(
|
||||||
|
@ -35,7 +35,7 @@ Param(
|
|||||||
[string]$saveTo = "$PSScriptRoot\..\build"
|
[string]$saveTo = "$PSScriptRoot\..\build"
|
||||||
)
|
)
|
||||||
|
|
||||||
$cmder_root = Resolve-Path $cmderRoot
|
$cmderRoot = Resolve-Path $cmderRoot
|
||||||
|
|
||||||
. "$PSScriptRoot\utils.ps1"
|
. "$PSScriptRoot\utils.ps1"
|
||||||
$ErrorActionPreference = "Stop"
|
$ErrorActionPreference = "Stop"
|
||||||
@ -47,10 +47,10 @@ $targets = @{
|
|||||||
"cmder_mini.zip" = "-xr!`"vendor\git-for-windows`"";
|
"cmder_mini.zip" = "-xr!`"vendor\git-for-windows`"";
|
||||||
}
|
}
|
||||||
|
|
||||||
Push-Location -Path $cmder_root
|
Push-Location -Path $cmderRoot
|
||||||
|
|
||||||
Delete-Existing "$cmder_root\Version*"
|
Delete-Existing "$cmderRoot\Version*"
|
||||||
Delete-Existing "$cmder_root\build\*"
|
Delete-Existing "$cmderRoot\build\*"
|
||||||
|
|
||||||
if (-not (Test-Path -PathType container $saveTo)) {
|
if (-not (Test-Path -PathType container $saveTo)) {
|
||||||
(New-Item -ItemType Directory -Path $saveTo) | Out-Null
|
(New-Item -ItemType Directory -Path $saveTo) | Out-Null
|
||||||
@ -59,16 +59,16 @@ if (-not (Test-Path -PathType container $saveTo)) {
|
|||||||
$saveTo = Resolve-Path $saveTo
|
$saveTo = Resolve-Path $saveTo
|
||||||
|
|
||||||
$version = Get-VersionStr
|
$version = Get-VersionStr
|
||||||
(New-Item -ItemType file "$cmder_root\Version $version") | Out-Null
|
(New-Item -ItemType file "$cmderRoot\Version $version") | Out-Null
|
||||||
|
|
||||||
if ($PSCmdlet.MyInvocation.BoundParameters["Verbose"].IsPresent) {
|
if ($PSCmdlet.MyInvocation.BoundParameters["Verbose"].IsPresent) {
|
||||||
Write-Verbose "Packing Cmder $version in $saveTo..."
|
Write-Verbose "Packing Cmder $version in $saveTo..."
|
||||||
$excluded = (Get-Content -Path "$cmder_root\packignore") -Split [System.Environment]::NewLine | Where-Object { $_ }
|
$excluded = (Get-Content -Path "$cmderRoot\packignore") -Split [System.Environment]::NewLine | Where-Object { $_ }
|
||||||
Get-ChildItem $cmder_root -Force -Exclude $excluded
|
Get-ChildItem $cmderRoot -Force -Exclude $excluded
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($t in $targets.GetEnumerator()) {
|
foreach ($t in $targets.GetEnumerator()) {
|
||||||
Create-Archive "$cmder_root" "$saveTo\$($t.Name)" $t.Value
|
Create-Archive "$cmderRoot" "$saveTo\$($t.Name)" $t.Value
|
||||||
$hash = (Digest-Hash "$saveTo\$($t.Name)")
|
$hash = (Digest-Hash "$saveTo\$($t.Name)")
|
||||||
Add-Content -path "$saveTo\hashes.txt" -value ($t.Name + ' ' + $hash)
|
Add-Content -path "$saveTo\hashes.txt" -value ($t.Name + ' ' + $hash)
|
||||||
}
|
}
|
||||||
|
@ -5,17 +5,17 @@
|
|||||||
This script updates dependencies to the latest version in vendor/sources.json file.
|
This script updates dependencies to the latest version in vendor/sources.json file.
|
||||||
|
|
||||||
You will need to make this script executable by setting your Powershell Execution Policy to Remote signed
|
You will need to make this script executable by setting your Powershell Execution Policy to Remote signed
|
||||||
Then unblock the script for execution with UnblockFile .\update.ps1
|
Then unblock the script for execution with UnblockFile .\build.ps1
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
.\update.ps1
|
.\build.ps1
|
||||||
|
|
||||||
Updates the dependency sources in the default location, the vendor/sources.json file.
|
Updates the dependency sources in the default location, the vendor/sources.json file.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
.\update.ps1 -verbose
|
.\build -verbose
|
||||||
|
|
||||||
Updates the dependency sources and see what's going on.
|
Updates the dependency sources and see what's going on.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
.\update.ps1 -SourcesPath '~/custom/vendors.json'
|
.\build.ps1 -SourcesPath '~/custom/vendors.json'
|
||||||
|
|
||||||
Specify the path to update dependency sources file at.
|
Specify the path to update dependency sources file at.
|
||||||
.NOTES
|
.NOTES
|
||||||
@ -23,7 +23,7 @@
|
|||||||
David Refoua <David@Refoua.me>
|
David Refoua <David@Refoua.me>
|
||||||
Part of the Cmder project.
|
Part of the Cmder project.
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/cmderdev/cmder - Project Home
|
http://cmder.app/ - Project Home
|
||||||
#>
|
#>
|
||||||
[CmdletBinding(SupportsShouldProcess = $true)]
|
[CmdletBinding(SupportsShouldProcess = $true)]
|
||||||
Param(
|
Param(
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
function Ensure-Exists($path) {
|
function Ensure-Exists($path) {
|
||||||
if (-not (Test-Path $path)) {
|
if (-not (Test-Path $path)) {
|
||||||
throw "Missing required $path! Ensure it is installed"
|
Write-Error "Missing required $path! Ensure it is installed"
|
||||||
|
exit 1
|
||||||
}
|
}
|
||||||
return $true > $null
|
return $true > $null
|
||||||
}
|
}
|
||||||
@ -15,7 +16,8 @@ function Ensure-Executable($command) {
|
|||||||
Set-Alias -Name "7z" -Value "$env:programw6432\7-zip\7z.exe" -Scope script
|
Set-Alias -Name "7z" -Value "$env:programw6432\7-zip\7z.exe" -Scope script
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
throw "Missing $command! Ensure it is installed and on in the PATH"
|
Write-Error "Missing $command! Ensure it is installed and on in the PATH"
|
||||||
|
exit 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
14
vendor/sources.json
vendored
14
vendor/sources.json
vendored
@ -1,22 +1,22 @@
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
"name": "git-for-windows",
|
"name": "git-for-windows",
|
||||||
"version": "2.49.0.windows.1",
|
"version": "2.51.0.windows.1",
|
||||||
"url": "https://github.com/git-for-windows/git/releases/download/v2.49.0.windows.1/PortableGit-2.49.0-64-bit.7z.exe"
|
"url": "https://github.com/git-for-windows/git/releases/download/v2.51.0.windows.1/PortableGit-2.51.0-64-bit.7z.exe"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "clink",
|
"name": "clink",
|
||||||
"version": "1.7.14",
|
"version": "1.8.2",
|
||||||
"url": "https://github.com/chrisant996/clink/releases/download/v1.7.14/clink.1.7.14.843933.zip"
|
"url": "https://github.com/chrisant996/clink/releases/download/v1.8.2/clink.1.8.2.4e1c6d.zip"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "conemu-maximus5",
|
"name": "conemu-maximus5",
|
||||||
"version": "23.07.24",
|
"version": "23.07.24",
|
||||||
"url": "https://github.com/Maximus5/ConEmu/releases/download/v23.07.24/ConEmuPack.230724.7z"
|
"url": "https://github.com/ConEmu/ConEmu/releases/download/v23.07.24/ConEmuPack.230724.7z"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "clink-completions",
|
"name": "clink-completions",
|
||||||
"version": "0.6.2",
|
"version": "0.6.4",
|
||||||
"url": "https://github.com/vladimir-kotikov/clink-completions/archive/v0.6.2.zip"
|
"url": "https://github.com/vladimir-kotikov/clink-completions/archive/v0.6.4.zip"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
Reference in New Issue
Block a user