mirror of
https://github.com/cmderdev/cmder.git
synced 2025-05-13 03:34:34 +08:00
fixes
This commit is contained in:
parent
80888644cc
commit
0aad7daca3
@ -5,7 +5,6 @@ $env:path = "$env:path;c:/tools/cmder/vendor/git-for-windows/cmd;;c:/tools/cmder
|
|||||||
c:
|
c:
|
||||||
cd $env:userprofile
|
cd $env:userprofile
|
||||||
git clone https://github.com/cmderdev/cmder cmderdev
|
git clone https://github.com/cmderdev/cmder cmderdev
|
||||||
write-host "USERNAME: $env:USERNAME"
|
|
||||||
|
|
||||||
if ("$env:USERNAME" -eq "vagrant" -and -not (test-path "$env:userprofile/cmderdev/vendor/git-for-windows")) {
|
if ("$env:USERNAME" -eq "vagrant" -and -not (test-path "$env:userprofile/cmderdev/vendor/git-for-windows")) {
|
||||||
invoke-expression -command "TAKEOWN /F `"$env:userprofile/cmderdev`" /R /D y /s localhost /u vagrant /p vagrant"
|
invoke-expression -command "TAKEOWN /F `"$env:userprofile/cmderdev`" /R /D y /s localhost /u vagrant /p vagrant"
|
||||||
@ -17,7 +16,6 @@ git pull origin vagrant
|
|||||||
git remote add upstream https://github.com/cmderdev/cmder
|
git remote add upstream https://github.com/cmderdev/cmder
|
||||||
git pull upstream master
|
git pull upstream master
|
||||||
|
|
||||||
write-host "==> Setting MSBuild Env..."
|
|
||||||
cmd.exe /c "call `"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat`" && set > %temp%\vcvars.txt"
|
cmd.exe /c "call `"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat`" && set > %temp%\vcvars.txt"
|
||||||
Get-Content "$env:temp\vcvars.txt" | Foreach-Object {
|
Get-Content "$env:temp\vcvars.txt" | Foreach-Object {
|
||||||
if ($_ -match "^(.*?)=(.*)$") {
|
if ($_ -match "^(.*?)=(.*)$") {
|
||||||
@ -25,20 +23,15 @@ Get-Content "$env:temp\vcvars.txt" | Foreach-Object {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
write-host "==> Changing to '$env:userprofile/cmderdev/scripts'..."
|
|
||||||
cd $env:userprofile/cmderdev/scripts
|
cd $env:userprofile/cmderdev/scripts
|
||||||
|
|
||||||
pwd
|
|
||||||
dir
|
|
||||||
|
|
||||||
write-host "==> Copying 'Cmder.exe' to '$env:userprofile/cmderdev'..."
|
|
||||||
copy "C:/Tools/Cmder/Cmder.exe" "$env:userprofile/cmderdev"
|
copy "C:/Tools/Cmder/Cmder.exe" "$env:userprofile/cmderdev"
|
||||||
start-process -nonewwindow -filepath "./build.ps1" -argumentlist "-verbose -compile"
|
|
||||||
|
|
||||||
write-host "==> Copying built 'Cmder.exe' to '$env:userprofile/cmderdev'..."
|
dir env:
|
||||||
|
start-process -nonewwindow -workingdirectory "$env:userprofile/cmderdev/scripts" -filepath "powershell.exe" -argumentlist "./build.ps1 -verbose -compile"
|
||||||
|
|
||||||
copy $env:userprofile/cmderdev/launcher/x64/release/cmder.exe $env:userprofile/cmderdev
|
copy $env:userprofile/cmderdev/launcher/x64/release/cmder.exe $env:userprofile/cmderdev
|
||||||
|
|
||||||
|
|
||||||
# tabby
|
# tabby
|
||||||
setx cmder_root "${env:userprofile}\cmderdev"
|
setx cmder_root "${env:userprofile}\cmderdev"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user