Skip to content

Commit e81d570

Browse files
Update Initialize-Linux.ps1
1 parent d76b353 commit e81d570

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

scripts/Initialize-Linux.ps1

+8-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
<#.SYNOPSIS
22
Initialize Linux machine.#>
3-
sudo apt update
4-
# ! https://askubuntu.com/questions/900285/libegl-so-1-is-not-a-symbolic-link
5-
# ! https://askubuntu.com/a/1460390
6-
# ! https://github.com/mccdaq/uldaq
7-
sudo apt install 'libegl1-mesa-dev' 'libxkbcommon0' 'libxcb-cursor0' 'libxcb-xinerama0' 'libqt5x11extras5' 'gcc' 'g++' 'make' 'bzip2' 'gzip' 'libusb-1.0-0-dev'
8-
curl -L -O 'https://github.com/mccdaq/uldaq/releases/download/v1.2.1/libuldaq-1.2.1.tar.bz2'
3+
if ($IsLinux) {
4+
sudo apt update
5+
# ! https://askubuntu.com/questions/900285/libegl-so-1-is-not-a-symbolic-link
6+
# ! https://askubuntu.com/a/1460390
7+
# ! https://github.com/mccdaq/uldaq
8+
sudo apt install 'libegl1-mesa-dev' 'libxkbcommon0' 'libxcb-cursor0' 'libxcb-xinerama0' 'libqt5x11extras5' 'gcc' 'g++' 'make' 'bzip2' 'gzip' 'libusb-1.0-0-dev'
9+
curl -L -O 'https://github.com/mccdaq/uldaq/releases/download/v1.2.1/libuldaq-1.2.1.tar.bz2'
10+
}
911
$Archive = 'libuldaq-1.2.1.tar.bz2'
1012
tar -xvjf $Archive
1113
Remove-Item $Archive

0 commit comments

Comments
 (0)