Feat: start updating workflows for asio on windows

This commit is contained in:
2026-03-16 14:58:38 +01:00
parent 0d0c2738f5
commit 001a42abfc
4 changed files with 65 additions and 13 deletions

View File

@@ -241,6 +241,7 @@ bundle_desktop_native() {
bundle_plugins_cross() {
local platform="$1"
shift
local rd
rd=$(release_dir "$platform")
local os
@@ -249,8 +250,8 @@ bundle_plugins_cross() {
arch=$(platform_arch "$platform")
# Build the cdylib with cross
# shellcheck disable=SC2046
build_binary "$platform" -p "$PLUGIN_NAME"
# shellcheck disable=SC2086
build_binary "$platform" -p "$PLUGIN_NAME" "$@"
# Determine source library file
local src_lib
@@ -440,14 +441,25 @@ for platform in "${selected_platforms[@]}"; do
echo ""
echo "=== [$step/$total] $platform ==="
# Enable ASIO for Windows targets
local asio_flag=""
case "$platform" in
*windows*) asio_flag="--features asio" ;;
esac
if $build_cagire; then
echo " -> cagire"
build_binary "$platform"
# shellcheck disable=SC2086
build_binary "$platform" $asio_flag
fi
if $build_desktop; then
echo " -> cagire-desktop"
build_binary "$platform" --features desktop --bin cagire-desktop
if [[ -n "$asio_flag" ]]; then
build_binary "$platform" --features desktop,asio --bin cagire-desktop
else
build_binary "$platform" --features desktop --bin cagire-desktop
fi
if ! is_cross_target "$platform"; then
echo " -> bundling cagire-desktop .app"
bundle_desktop_native "$platform"
@@ -457,7 +469,7 @@ for platform in "${selected_platforms[@]}"; do
if $build_plugins; then
echo " -> cagire-plugins"
if is_cross_target "$platform"; then
bundle_plugins_cross "$platform"
bundle_plugins_cross "$platform" $asio_flag
else
bundle_plugins_native "$platform"
fi