From 41d5d5ae56189281315330a860718421c4a93760 Mon Sep 17 00:00:00 2001 From: dzania Date: Thu, 27 Jul 2023 15:50:17 +0200 Subject: [PATCH] Add prebuild hook to Cross.toml --- Cross.toml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Cross.toml b/Cross.toml index 6f820401..d3ca1e25 100644 --- a/Cross.toml +++ b/Cross.toml @@ -5,5 +5,4 @@ image = "ghcr.io/defguard/cross:x86_64-unknown-linux-gnu" image = "ghcr.io/defguard/cross:armv7-unknown-linux-gnueabihf" [target.x86_64-unknown-freebsd] -image = "x86_64-unknown-freebsd-cross-v3:latest" -pre-build = ["pkg install rust curl protobuf"] +pre-build = [" apt-get update && apt-get install --assume-yes unzip && PB_REL='https://github.com/protocolbuffers/protobuf/releases' && PB_VERSION='3.20.0' && curl -LO $PB_REL/download/v$PB_VERSION/protoc-$PB_VERSION-linux-x86_64.zip && unzip protoc-$PB_VERSION-linux-x86_64.zip bin/protoc include/google/* -d /usr"]