This repository has been archived by the owner on Aug 19, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 14
(Chore) : Added new prerequisite permission to run ps1 scripts. #77
Open
Abhijay007
wants to merge
17
commits into
EtherealEngine:master
Choose a base branch
from
Abhijay007:Abhijay007/newPrerequisite
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 10 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
8955758
(Chore) : Added new prerequisite on win for permission to run ps1 scr…
Abhijay007 16ba6f8
added check
Abhijay007 f08631a
added link to exec policy
Abhijay007 a8b0e7d
Merge branch 'master' of https://github.com/EtherealEngine/etherealen…
Abhijay007 e38977f
Merge branch 'master' of https://github.com/EtherealEngine/etherealen…
Abhijay007 55f0580
Chore : Fixed requested changes
Abhijay007 5d29715
Merge branch 'master' of https://github.com/EtherealEngine/etherealen…
Abhijay007 f74de89
(chore):cross for all states other than Unrestricted
Abhijay007 f24b419
Merge branch 'master' of https://github.com/EtherealEngine/etherealen…
Abhijay007 799ba2b
chore : resolved requested changes
Abhijay007 afe8186
Merge branch 'master' of https://github.com/EtherealEngine/etherealen…
Abhijay007 bea00f9
Merge branch 'master' of https://github.com/EtherealEngine/etherealen…
Abhijay007 5fbea08
fixed description
Abhijay007 c3d9143
Merge branch 'master' of https://github.com/EtherealEngine/etherealen…
Abhijay007 a0bd213
chore :added functions to retrieve ps version
Abhijay007 aabb43a
chore : fixed formatting
Abhijay007 d3a733f
Merge branch 'master' into Abhijay007/newPrerequisite
hanzlamateen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
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
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
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
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 |
---|---|---|
|
@@ -52,7 +52,7 @@ const PrereqsView = ({ sx }: Props) => { | |
status.description = ( | ||
<Typography fontSize={14}> | ||
<span style={{ fontSize: 14, opacity: 0.6 }}> | ||
Make sure WSL is installed and Ubuntu is selected as default distribution.{' '} | ||
Make sure WSL is installed and Ubuntu is selected as the default distribution.{' '} | ||
</span> | ||
<a style={{ color: 'var(--textColor)' }} target="_blank" href={Endpoints.Docs.INSTALL_WSL}> | ||
Install WSL | ||
|
@@ -63,15 +63,15 @@ const PrereqsView = ({ sx }: Props) => { | |
<br /> | ||
<br /> | ||
<span style={{ fontSize: 14, opacity: 0.6 }}> | ||
To ensure 'Ubuntu' is set as default WSL distribution. You can check your default distribution by | ||
running following command in Powershell/CMD: | ||
To ensure 'Ubuntu' is set as the default WSL distribution, you can check your default distribution by | ||
running the following command in PowerShell/CMD: | ||
</span> | ||
<br /> | ||
<code>wsl -l</code> | ||
<br /> | ||
<br /> | ||
<span style={{ fontSize: 14, opacity: 0.6 }}> | ||
Afterwards, if Ubuntu is not selected as default, then you can do so by running following command: | ||
Afterwards, if Ubuntu is not selected as the default, you can do so by running the following command: | ||
</span> | ||
<br /> | ||
<code>wsl -s Ubuntu</code> | ||
|
@@ -91,6 +91,44 @@ const PrereqsView = ({ sx }: Props) => { | |
. | ||
</Typography> | ||
) | ||
} else if (status.id === 'ps1ExecutionPolicy') { | ||
status.description = ( | ||
<Typography fontSize={14}> | ||
<span style={{ fontSize: 14, opacity: 0.6 }}> | ||
{ | ||
// Check if the user agent contains PowerShell version information | ||
window.navigator.userAgent.includes('PowerShell') | ||
? `Run the following command in PowerShell ${window.navigator.userAgent}:` | ||
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. |
||
: 'Run the following command in PowerShell:' | ||
} | ||
</span> | ||
<br /> | ||
Abhijay007 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
<br /> | ||
<span style={{ fontSize: 14, opacity: 0.6 }}> | ||
Check whether the execution policy is set to allow unsigned PowerShell scripts. | ||
</span> | ||
<br /> | ||
<br /> | ||
<span style={{ fontSize: 14, opacity: 0.6 }}> | ||
Afterwards, if the execution policy is not set to allow unsigned PowerShell scripts, you can do so by | ||
Abhijay007 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
running the following commands: | ||
<br /> | ||
<br /> | ||
<code>Get-ExecutionPolicy</code> - This command will show you the current execution policy. | ||
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. Just keep the script. Remove - This command will show you the current execution policy. |
||
<br /> | ||
<br /> | ||
<code>Set-ExecutionPolicy Unrestricted</code> - Use this command to set the execution policy to allow | ||
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. Just keep the script. Remove - Use this command to set the execution policy to allow |
||
unsigned PowerShell scripts. | ||
<br /> | ||
<br /> | ||
Refer to the Microsoft documentation for information on PowerShell execution policies and | ||
</span> | ||
<a style={{ color: 'white' }} target="_blank" href={'#'}> | ||
Learn more | ||
</a> | ||
. | ||
</Typography> | ||
) | ||
} | ||
} | ||
|
||
|
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.
In my powershell 7 despite policy being unrestricted I am getting following error