Skip to content

Commit 5c1e9a1

Browse files
only try to sign unsigned assets
1 parent 82e1fcb commit 5c1e9a1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/build.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -441,13 +441,13 @@ jobs:
441441
shell: bash
442442
run: |
443443
shopt -s nullglob
444-
for ARTIFACT in "${{ env.BUILD_ARTIFACTS_PATH }}"/*.{exe,zip,msi}; do
444+
for ARTIFACT in "${{ env.BUILD_ARTIFACTS_PATH }}"/*_unsigned.{exe,zip,msi}; do
445445
echo "Processing $ARTIFACT"
446446
FILENAME=$(basename "$ARTIFACT")
447447
BASE_NAME="${FILENAME%.*}"
448448
EXTENSION="${FILENAME##*.}"
449-
# Remove '_unsigned' from the base name if it exists
450-
SIGNED_BASE_NAME="${BASE_NAME/_unsigned/}"
449+
# Remove '_unsigned' from the base name
450+
SIGNED_BASE_NAME="${BASE_NAME%_unsigned}"
451451
452452
# Sign and rename EXE and MSI files
453453
if [[ "$EXTENSION" == "exe" || "$EXTENSION" == "msi" ]]; then

0 commit comments

Comments
 (0)