Skip to content

Commit 65a27af

Browse files
authored
Merge pull request #71 from K9i-0/fix/sparkle-release-failure-investigation
Sparkleの署名生成エラーを修正
2 parents d16c3f2 + 1280de0 commit 65a27af

File tree

4 files changed

+15
-4
lines changed

4 files changed

+15
-4
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ All notable changes to this project will be documented in this file.
1111

1212

1313

14+
15+
## [0.7.8] - 2025-07-06
16+
17+
### Fixed
18+
- Sparkle署名生成の非推奨フラグを修正 (generate-appcast.sh, sign-update.sh)
19+
1420
## [0.7.7] - 2025-07-06
1521

1622
### Fixed

Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
<key>CFBundlePackageType</key>
1818
<string>APPL</string>
1919
<key>CFBundleShortVersionString</key>
20-
<string>0.7.7</string>
20+
<string>0.7.8</string>
2121
<key>CFBundleVersion</key>
22-
<string>0.7.7</string>
22+
<string>0.7.8</string>
2323
<key>CcusageVersion</key>
2424
<string>15.3.0</string>
2525
<key>LSMinimumSystemVersion</key>

scripts/generate-appcast.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ echo "Generating signature for $DMG_PATH..."
5353
# Write private key to temporary file with secure permissions
5454
PRIVATE_KEY_FILE="$TEMP_DIR/private_key.txt"
5555
(umask 077 && echo "$SPARKLE_PRIVATE_KEY" > "$PRIVATE_KEY_FILE")
56-
SIGNATURE=$("$SIGN_UPDATE" -s "$PRIVATE_KEY_FILE" "$DMG_PATH" | awk '/sparkle:edSignature=/ {print $2}' | tr -d '"')
56+
SIGNATURE=$("$SIGN_UPDATE" -f "$PRIVATE_KEY_FILE" -p "$DMG_PATH")
5757

5858
# Immediately remove the private key file after use
5959
rm -f "$PRIVATE_KEY_FILE"

scripts/sign-update.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,12 @@ fi
4646

4747
# Generate EdDSA signature
4848
echo "Generating signature for $FILE_TO_SIGN..."
49-
SIGNATURE=$("$SIGN_UPDATE" -f "$SPARKLE_PRIVATE_KEY" "$FILE_TO_SIGN" | tail -1)
49+
# Write private key to temporary file with secure permissions
50+
PRIVATE_KEY_FILE="$TEMP_DIR/private_key.txt"
51+
(umask 077 && echo "$SPARKLE_PRIVATE_KEY" > "$PRIVATE_KEY_FILE")
52+
SIGNATURE=$("$SIGN_UPDATE" -f "$PRIVATE_KEY_FILE" -p "$FILE_TO_SIGN")
53+
# Immediately remove the private key file after use
54+
rm -f "$PRIVATE_KEY_FILE"
5055

5156
if [ -z "$SIGNATURE" ]; then
5257
echo "Error: Failed to generate signature"

0 commit comments

Comments
 (0)