SynoCommunity / spksrc

Cross compilation framework to create native packages for the Synology's NAS
https://synocommunity.com
Other
3.02k stars 1.23k forks source link

[Package Request] PowerShell #4076

Open janhsh opened 4 years ago

janhsh commented 4 years ago

Name: PowerShell Description: Microsoft PowerShell Website: https://microsoft.com/powershell Software documentation: https://docs.microsoft.com/powershell Build/Installation documentation: https://github.com/PowerShell/PowerShell Source Code: https://github.com/PowerShell/PowerShell License: MIT license.

ymartin59 commented 4 years ago

Related to #3892

hgy59 commented 2 years ago

Build instructions for linux are found here: https://github.com/PowerShell/PowerShell/blob/master/docs/building/linux.md

leonpano2006 commented 2 years ago

that dosen't need dotnet follow to https://docs.microsoft.com/en-us/powershell/scripting/install/install-other-linux?view=powershell-7.2

with commands below

# Download the powershell '.tar.gz' archive
curl -L -o /tmp/powershell.tar.gz https://github.com/PowerShell/PowerShell/releases/download/v7.2.1/powershell-7.2.1-linux-x64.tar.gz

# Create the target folder where powershell will be placed
sudo mkdir -p /opt/microsoft/powershell/7

# Expand powershell to the target folder
sudo tar zxf /tmp/powershell.tar.gz -C /opt/microsoft/powershell/7

# Set execute permissions
sudo chmod +x /opt/microsoft/powershell/7/pwsh

# Create the symbolic link that points to pwsh
sudo ln -s /opt/microsoft/powershell/7/pwsh /usr/bin/pwsh
hgy59 commented 2 years ago

that dosen't need dotnet follow to https://docs.microsoft.com/en-us/powershell/scripting/install/install-other-linux?view=powershell-7.2

@leonpano2006 please read the section Dependencies just above your installation extract.

PowerShell builds portable binaries for all Linux distributions. But, .NET Core runtime requires different dependencies on different distributions, and PowerShell does too.

And in the Important box

... Be sure to install any necessary dependencies. ...

So .net runtime is required to run pwsh. There exists no pwsh installation without .NET.