mirror of
https://github.com/cmderdev/cmder.git
synced 2025-01-25 15:49:08 +08:00
make sure each edition contains the correct vendored files
This commit is contained in:
parent
2dc5463c31
commit
adcef21034
2
.gitignore
vendored
2
.gitignore
vendored
@ -23,7 +23,7 @@ Thumbs.db
|
|||||||
*.exe
|
*.exe
|
||||||
*.dll
|
*.dll
|
||||||
build/
|
build/
|
||||||
Version v*
|
/Version *
|
||||||
*.bak
|
*.bak
|
||||||
.github_changelog_generator
|
.github_changelog_generator
|
||||||
launcher/.vs
|
launcher/.vs
|
||||||
|
@ -44,7 +44,7 @@ Ensure-Executable "7z"
|
|||||||
$targets = @{
|
$targets = @{
|
||||||
"cmder.zip" = $null;
|
"cmder.zip" = $null;
|
||||||
"cmder.7z" = $null;
|
"cmder.7z" = $null;
|
||||||
"cmder_mini.zip" = "-x!`"$cmderRoot\vendor\git-for-windows`"";
|
"cmder_mini.zip" = "-xr!`"vendor\git-for-windows`"";
|
||||||
}
|
}
|
||||||
|
|
||||||
Push-Location -Path $cmderRoot
|
Push-Location -Path $cmderRoot
|
||||||
@ -68,7 +68,7 @@ if ($PSCmdlet.MyInvocation.BoundParameters["Verbose"].IsPresent) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
foreach ($t in $targets.GetEnumerator()) {
|
foreach ($t in $targets.GetEnumerator()) {
|
||||||
Create-Archive "$cmderRoot\*" "$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)
|
||||||
}
|
}
|
||||||
|
@ -37,7 +37,7 @@ function Extract-Archive($source, $target) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function Create-Archive($source, $target, $params) {
|
function Create-Archive($source, $target, $params) {
|
||||||
$command = "7z a -xr@`"$source\packignore`" $params $target $source > `$null"
|
$command = "7z a -xr@`"$source\packignore`" $params `"$target`" `"$source\*`" > `$null"
|
||||||
Write-Verbose "Creating Archive from '$source' in '$target' with parameters '$params'"
|
Write-Verbose "Creating Archive from '$source' in '$target' with parameters '$params'"
|
||||||
Invoke-Expression $command
|
Invoke-Expression $command
|
||||||
if ($lastexitcode -ne 0) {
|
if ($lastexitcode -ne 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user