desktop: replace copy-assets shell script with gradle task (#6900)

This commit is contained in:
sh
2026-04-28 10:52:06 +00:00
committed by GitHub
parent ab4b056c60
commit ed3b85e103
2 changed files with 13 additions and 28 deletions
-21
View File
@@ -1,21 +0,0 @@
#!/bin/sh
set -eu
# Copies generated multiplatform assets into the SimpleX assets directory.
# Called by Gradle build when simplex.assets.dir property is set.
#
# Usage: copy-assets.sh <source-dir> <dest-dir>
SRC_DIR="$1/multiplatform/resources/MR/images"
DEST_DIR="$2/MR/images"
if [ ! -d "$SRC_DIR" ]; then
echo "Error: source assets not found: $SRC_DIR (run resize.sh first)" >&2
exit 1
fi
rm -rf "$DEST_DIR"
mkdir -p "$DEST_DIR"
cp "$SRC_DIR"/* "$DEST_DIR/"
echo "Copied multiplatform assets to $DEST_DIR"