Skip to content

Commit

Permalink
chore: remove protoc-gen-go scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
siddarthkay committed Oct 9, 2024
1 parent 11f1e15 commit 6837e24
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 18 deletions.
2 changes: 1 addition & 1 deletion scripts/macos_build_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function check_version {

function install_build_dependencies {
echo "Install build dependencies"
brew install cmake pkg-config libtool jq node@18 yarn protoc-gen-go
brew install cmake pkg-config libtool jq node@18 yarn
}

function install_qt {
Expand Down
2 changes: 1 addition & 1 deletion scripts/ubuntu_build_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function install_build_dependencies {
echo "Install build dependencies"
apt update
apt install -yq git wget build-essential \
cmake extra-cmake-modules pkg-config protoc-gen-go \
cmake extra-cmake-modules pkg-config \
mesa-common-dev unixodbc-dev libpq-dev libglu1-mesa-dev libpcsclite-dev \
libpcre3-dev libssl-dev libpulse-mainloop-glib0 libxkbcommon-x11-dev
}
Expand Down
16 changes: 0 additions & 16 deletions scripts/windows_build_setup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,6 @@ function Install-Scoop {
}
}

# Install Protobuf tool necessary to generate status-go files.
function Install-Protobuf-Go {
$ProtocGenVersion = "v1.34.1"
$ProtocGenZIP = "protoc-gen-go.$ProtocGenVersion.windows.amd64.zip"
$ProtocGenURL = "https://github.com/protocolbuffers/protobuf-go/releases/download/$ProtocGenVersion/$ProtocGenZIP"
$ProtocGenSHA256 = "403a619c4698fe5c4162c7f855803de3e8d8e0c187d7d51cbeb8d599f7a5a073"
(New-Object System.Net.WebClient).DownloadFile($ProtocGenURL, "$env:USERPROFILE\$ProtocGenZIP")
$ProtocGenRealSHA256 = (Get-Filehash -algorithm SHA256 "$env:USERPROFILE\$ProtocGenZIP").Hash
if ($ProtocGenRealSHA256 -ne $ProtocGenSHA256) {
throw "SHA256 hash does not match for $ProtocGenZIP !"
}
New-Item "$env:USERPROFILE\go\bin" -ItemType Directory -ea 0
7z x -o="$env:USERPROFILE\go\bin" -y "$env:USERPROFILE\$ProtocGenZIP"
}

# Install Git and other dependencies
function Install-Dependencies {
Expand All @@ -34,7 +20,6 @@ function Install-Dependencies {
scoop bucket add extras
}
scoop install --global go@1.21.10
scoop install --global protobuf@3.20.0
scoop install --global vcredist2022
scoop install --global `
7zip git dos2unix findutils `
Expand Down Expand Up @@ -104,7 +89,6 @@ $QtVersion = "5.15.2"
If ($MyInvocation.InvocationName -ne ".") {
Install-Scoop
Install-Dependencies
Install-Protobuf-Go
Install-Qt-SDK
Install-VC-BuildTools
Show-Success-Message
Expand Down

0 comments on commit 6837e24

Please sign in to comment.