Add custom app icon and improved DMG layout
This commit is contained in:
@@ -29,6 +29,13 @@ if [[ ! -d "$APP_PATH" ]]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
STAGING_DIR=$(mktemp -d)
|
||||
mkdir -p "$STAGING_DIR"
|
||||
cp -R "$APP_PATH" "$STAGING_DIR/"
|
||||
ln -s /Applications "$STAGING_DIR/Applications"
|
||||
mkdir -p "$STAGING_DIR/.background"
|
||||
cp "$ROOT_DIR/Assets/dmg_background.png" "$STAGING_DIR/.background/background.png"
|
||||
|
||||
if [[ -n "${CODESIGN_IDENTITY:-}" ]]; then
|
||||
echo "🔏 Codesigning app with identity: $CODESIGN_IDENTITY"
|
||||
codesign --deep --force --options runtime --sign "$CODESIGN_IDENTITY" "$APP_PATH"
|
||||
@@ -50,7 +57,7 @@ zip -r "$ARTIFACTS_DIR/$ZIP_NAME" "$(basename "$APP_PATH")"
|
||||
popd >/dev/null
|
||||
|
||||
DMG_NAME="iKeyMon-${VERSION}.dmg"
|
||||
hdiutil create -volname "iKeyMon" -srcfolder "$APP_PATH" -ov -format UDZO "$ARTIFACTS_DIR/$DMG_NAME"
|
||||
hdiutil create -volname "iKeyMon" -srcfolder "$STAGING_DIR" -ov -format UDZO "$ARTIFACTS_DIR/$DMG_NAME"
|
||||
|
||||
if [[ -n "${NOTARY_APPLE_ID:-}" && -n "${NOTARY_TEAM_ID:-}" && -n "${NOTARY_PASSWORD:-}" ]]; then
|
||||
echo "📝 Submitting DMG for notarization..."
|
||||
@@ -63,6 +70,7 @@ if [[ -n "${NOTARY_APPLE_ID:-}" && -n "${NOTARY_TEAM_ID:-}" && -n "${NOTARY_PASS
|
||||
else
|
||||
echo "⚠️ Skipping notarization (NOTARY_* variables not set)."
|
||||
fi
|
||||
rm -rf "$STAGING_DIR"
|
||||
|
||||
echo "✅ Build complete. Artifacts:"
|
||||
echo " - $ARTIFACTS_DIR/$ZIP_NAME"
|
||||
|
||||
Reference in New Issue
Block a user