mirror of
https://github.com/fromchat-messenger/app.git
synced 2026-09-22 19:15:05 +03:00
32583600d4
Split Windows builds into shared x64 prep and arch-specific packaging, add comprehensive caching, verification scripts, and a PR smoke workflow. Co-authored-by: Cursor <cursoragent@cursor.com>
23 lines
475 B
Bash
23 lines
475 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
ARCH="${1:?usage: ci-package-windows-release.sh <x64|arm64>}"
|
|
|
|
export FROMCHAT_PACKAGING_JDK="${JAVA_HOME}"
|
|
export FROMCHAT_SKIP_RUST_BUILD=1
|
|
|
|
GRADLE_ARGS=(
|
|
:app:desktop:createReleaseDistributable
|
|
:app:desktop:patchWindowsJpackageReleaseIcon
|
|
:app:desktop:packSetupOnly
|
|
"-PdesktopArch=$ARCH"
|
|
--no-daemon
|
|
--console=plain
|
|
)
|
|
|
|
if [[ "$ARCH" == "arm64" ]]; then
|
|
GRADLE_ARGS+=("-PwindowsArm64")
|
|
fi
|
|
|
|
./gradlew "${GRADLE_ARGS[@]}"
|