Skip to content

Commit 77a7c72

Browse files
committed
fix protoc path
1 parent f94e3fd commit 77a7c72

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: Cross.toml

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ pre-build = [
55
"ARCH=$(case $CROSS_DEB_ARCH in aarch64-linux-gnu) echo linux-aarch_64 ;; x86_64-linux-gnu) echo linux-x86_64 ;; *) echo linux-x86_64 ;; esac)",
66
"PB_REL=\"https://github.com/protocolbuffers/protobuf/releases\"",
77
"curl -LO $PB_REL/download/v29.3/protoc-29.3-${ARCH}.zip",
8-
"unzip protoc-29.3-${ARCH}.zip -d $HOME/.local",
9-
"export PATH=\"$PATH:$HOME/.local/bin\"",
8+
"unzip protoc-29.3-${ARCH}.zip -d /usr",
9+
"chmod 755 /usr/bin/protoc",
10+
"export PROTOC=/usr/bin/protoc",
1011
"protoc --version"
1112
]
1213

0 commit comments

Comments
 (0)