Skip to content

Commit

Permalink
Sign talpid_openvpn_plugin.dll
Browse files Browse the repository at this point in the history
  • Loading branch information
dlon committed Sep 4, 2024
1 parent 6cba30d commit 66cbe6a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -287,13 +287,16 @@ function build {
done

if [[ "$current_target" == "aarch64-pc-windows-msvc" ]]; then
# TODO: We still ship x64 OpenVPN with ARM64, so we need an x64 talpid-openvpn-plugin
# We ship x64 OpenVPN with ARM64, so we need an x64 talpid-openvpn-plugin
# to include in the package.
local source="$CARGO_TARGET_DIR/x86_64-pc-windows-msvc/$RUST_BUILD_MODE/talpid_openvpn_plugin.dll"
local destination="dist-assets/aarch64-pc-windows-msvc/talpid_openvpn_plugin.dll"

log_info "Workaround: building x64 talpid-openvpn-plugin"
cargo build --target x86_64-pc-windows-msvc "${CARGO_ARGS[@]}" -p talpid-openvpn-plugin --lib
cp "$CARGO_TARGET_DIR/x86_64-pc-windows-msvc/$RUST_BUILD_MODE/talpid_openvpn_plugin.dll" "dist-assets/aarch64-pc-windows-msvc/talpid_openvpn_plugin.dll"
cp "$source" "$destination"
if [[ "$SIGN" == "true" ]]; then
sign_win "dist-assets/talpid_openvpn_plugin.dll"
sign_win "$destination"
fi
fi
}
Expand Down

0 comments on commit 66cbe6a

Please sign in to comment.