-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
63 additions
and
37 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,23 @@ | ||
#!/bin/sh | ||
|
||
# PowerShell is needed for some MinGW dependencies from vcpkg | ||
|
||
# Script taken from: https://learn.microsoft.com/en-us/powershell/scripting/install/install-ubuntu?view=powershell-7.4#installation-via-direct-download | ||
|
||
################################### | ||
# Prerequisites | ||
|
||
# Update the list of packages | ||
sudo apt-get update | ||
|
||
# Install pre-requisite packages. | ||
sudo apt-get install -y wget apt-transport-https software-properties-common | ||
|
||
# Get the version of Ubuntu | ||
source /etc/os-release | ||
sudo apt-get install -y wget | ||
|
||
# Download the Microsoft repository keys | ||
wget -q https://packages.microsoft.com/config/ubuntu/$VERSION_ID/packages-microsoft-prod.deb | ||
# Download the PowerShell package file | ||
wget https://github.com/PowerShell/PowerShell/releases/download/v7.4.3/powershell_7.4.3-1.deb_amd64.deb | ||
|
||
# Register the Microsoft repository keys | ||
sudo dpkg -i packages-microsoft-prod.deb | ||
|
||
# Delete the Microsoft repository keys file | ||
rm packages-microsoft-prod.deb | ||
################################### | ||
# Install the PowerShell package | ||
sudo dpkg -i powershell_7.4.3-1.deb_amd64.deb | ||
|
||
# Update the list of packages after we added packages.microsoft.com | ||
sudo apt-get update | ||
# Resolve missing dependencies and finish the install (if necessary) | ||
sudo apt-get install -f | ||
|
||
################################### | ||
# Install PowerShell | ||
sudo apt-get install -y powershell | ||
# Delete the downloaded package file | ||
rm powershell_7.4.3-1.deb_amd64.deb |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/sh | ||
|
||
# Currently using these PPA packages: | ||
# fftw-mingw-w64 | ||
# qt5base-mingw-w64 | ||
|
||
sudo echo "deb http://ppa.launchpad.net/tobydox/mingw-w64/ubuntu focal main" >> /etc/apt/sources.list | ||
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 72931B477E22FEFD47F8DECE02FE5F12ADDE29B2 | ||
sudo apt-get update |
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