-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🏗Build: Build scripts updated [notarization]
- Loading branch information
1 parent
621e743
commit 640ec0e
Showing
3 changed files
with
53 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
#!/bin/sh | ||
cd $(dirname "$0") | ||
|
||
RELEASE_OUTPUT_DIR="./release-output" | ||
PLIST_FILE="../build/Build/Products/Release/ck550.app/Contents/Info.plist" | ||
VERSION=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" $PLIST_FILE) | ||
SHORT_VERSION_STRING=$(/usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" $PLIST_FILE) | ||
MIN_MACOS=$(/usr/libexec/PlistBuddy -c "Print LSMinimumSystemVersion" $PLIST_FILE) | ||
|
||
ZIP_NAME="CK550_MacOS_Effect_Controller-$VERSION.zip" | ||
ZIP_PATH="$RELEASE_OUTPUT_DIR/$ZIP_NAME" | ||
XML_PATH="$RELEASE_OUTPUT_DIR/AppCast.xml" | ||
|
||
DATE=$(TZ=GMT date) | ||
|
||
rm -f "$ZIP_PATH" || true | ||
ditto -c -k --sequesterRsrc --keepParent ../build/Build/Products/Release/ck550.app $ZIP_PATH | ||
|
||
echo "$ZIP_NAME was created." | ||
shasum -ba 256 $ZIP_PATH | ||
|
||
SIGNATURE_AND_SIZE=$(~/Development/_scm/_foreign/Sparkle/bin/sign_update $ZIP_PATH) | ||
|
||
echo "$ZIP_NAME signature was created." | ||
|
||
cat > "$XML_PATH" <<EOF | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<rss | ||
version="2.0" | ||
xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle" | ||
xmlns:dc="http://purl.org/dc/elements/1.1/" > | ||
<channel> | ||
<title>CK550-MacOS GUI</title> | ||
<description>MacOS effect control SW for a CoolMaster CK550 Keyboard (US Layout).</description> | ||
<language>en</language> | ||
<item> | ||
<title>Version $SHORT_VERSION_STRING</title> | ||
<sparkle:minimumSystemVersion>$MIN_MACOS</sparkle:minimumSystemVersion> | ||
<sparkle:releaseNotesLink>https://f001.backblazeb2.com/file/Sparkle-Data/ck550/changelog.html</sparkle:releaseNotesLink> | ||
<pubDate>$DATE +0000</pubDate> | ||
<enclosure | ||
url="https://github.com/vookimedlo/ck550-macos/releases/download/$TAG/$ZIP_NAME" | ||
sparkle:version="$VERSION" | ||
sparkle:shortVersionString="$SHORT_VERSION_STRING" | ||
$SIGNATURE_AND_SIZE | ||
type="application/octet-stream" /> | ||
</item> | ||
</channel> | ||
</rss> | ||
EOF | ||
|
||
echo "AppCast.xml was created." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters