-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(release): unify dependency installation script
- Loading branch information
Showing
2 changed files
with
38 additions
and
30 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
if [[ "$OSTYPE" == "linux-gnu"* ]]; then | ||
sudo apt-get update | ||
# gcc | ||
sudo apt install -y gcc libc6-dev | ||
# x11 | ||
sudo apt install -y libx11-dev xorg-dev libxtst-dev | ||
# Clipboard | ||
sudo apt install -y xsel xclip | ||
# Bitmap | ||
sudo apt install -y libpng++-dev | ||
# GoHook | ||
sudo apt install -y xcb libxcb-xkb-dev x11-xkb-utils libx11-xcb-dev libxkbcommon-x11-dev libxkbcommon-dev | ||
# portaudio | ||
sudo apt-get install -y portaudio19-dev | ||
go mod download | ||
elif [[ "$OSTYPE" == "darwin"* ]]; then | ||
brew install portaudio | ||
go mod download | ||
elif [[ "$OSTYPE" == "msys" || "$OSTYPE" == "cygwin" || "$OSTYPE" == "win32" ]]; then | ||
pip install pipwin | ||
pipwin install pyaudio | ||
go mod download | ||
else | ||
echo "Unsupported OS" | ||
exit 1 | ||
fi |