Skip to content

Commit 61f2890

Browse files
Fix Sparkle tools copying logic to avoid duplicate copy
- Check if tools are already in ./bin directory before copying - Skip copying step if tools are already in correct location - Only copy tools if they're in a different directory - Fix 'identical (not copied)' error in CI/CD pipeline - Ensure Sparkle tools are properly set up without unnecessary copying
1 parent a182afd commit 61f2890

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/build-and-release.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,17 @@ jobs:
180180
181181
echo "✅ Found $EXECUTABLE_FILES executable files in $SPARKLE_BIN_DIR"
182182
183-
chmod +x "$SPARKLE_BIN_DIR"/*
184-
mkdir -p bin
185-
cp "$SPARKLE_BIN_DIR"/* ./bin/
183+
# Check if we're already in the right directory
184+
if [ "$SPARKLE_BIN_DIR" = "./bin" ]; then
185+
echo "✅ Sparkle tools already in correct location: ./bin"
186+
chmod +x ./bin/*
187+
else
188+
echo "📁 Copying tools from $SPARKLE_BIN_DIR to ./bin"
189+
chmod +x "$SPARKLE_BIN_DIR"/*
190+
mkdir -p bin
191+
cp "$SPARKLE_BIN_DIR"/* ./bin/
192+
fi
193+
186194
echo "✅ Sparkle tools ready in ./bin/"
187195
echo "📁 Final bin contents:"
188196
ls -la ./bin/

0 commit comments

Comments
 (0)