-
-
Notifications
You must be signed in to change notification settings - Fork 390
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add powershell app based on PowerShell Core 6.1, #1440
Closed
Closed
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14953,6 +14953,45 @@ load_openwatcom() | |
|
||
#---------------------------------------------------------------- | ||
|
||
w_metadata powershell apps \ | ||
title="Windows Powershell" \ | ||
publisher="Microsoft" \ | ||
year="2019" \ | ||
media="download" \ | ||
file1="PowerShell-6.1.6-win-x86.zip" \ | ||
installed_file1="$W_SYSTEM32_DLLS_WIN/WindowsPowerShell/v1.0/powershell.exe" | ||
|
||
load_powershell() | ||
{ | ||
w_package_unsupported_win64 | ||
|
||
w_warn "Installing Powershell into $W_SYSTEM32_DLLS_WIN/WindowsPowerShell/v1.0/. Note that some functionality may not work without Windows Management Framework" | ||
|
||
w_call dotnet462 | ||
|
||
w_download https://github.com/PowerShell/PowerShell/releases/download/v6.1.6/PowerShell-6.1.6-win-x86.zip 1dc690c9a1091d0ed5b71de903ab3cd7b58ba9638acdfeb9f9fe7031abaf47e9 | ||
|
||
w_override_dlls native powershell.exe | ||
|
||
# remove builtin placeholders | ||
rm -f "$W_SYSTEM32_DLLS"/powershell.exe | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Prepend with |
||
|
||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please remove the extra newline. |
||
w_try mkdir -p "$W_SYSTEM32_DLLS"/WindowsPowerShell/v1.0 | ||
|
||
w_try_7z "$W_SYSTEM32_DLLS"/WindowsPowerShell/v1.0/ "${W_CACHE}/${W_PACKAGE}/${file1}" | ||
w_try_cd "$W_SYSTEM32_DLLS"/WindowsPowerShell/v1.0 | ||
w_try cp -f pwsh.exe powershell.exe | ||
for file in *\\*; do | ||
target=$(printf '%s\n' "$file" | sed 's#\\#/#g') | ||
w_try mkdir -p "${target%/*}" | ||
w_try mv -v "$file" "$target" | ||
done | ||
w_append_path "$W_SYSTEM32_DLLS"/WindowsPowerShell/v1.0 | ||
} | ||
|
||
#---------------------------------------------------------------- | ||
|
||
w_metadata protectionid apps \ | ||
title="Protection ID" \ | ||
publisher="CDKiLLER & TippeX" \ | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can be removed, as you said (proper 64-bit support can be a followup PR).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wasn't planning on adding win64 support