Use custom icon for app and menu bar
This commit is contained in:
@@ -41,16 +41,23 @@ echo "Building the release executable..."
|
||||
swift build --configuration release --package-path "$PROJECT_DIR"
|
||||
|
||||
EXECUTABLE_PATH="$PROJECT_DIR/.build/release/$PRODUCT_NAME"
|
||||
RESOURCE_BUNDLE="$PROJECT_DIR/.build/release/FchatiApp_FchatiApp.bundle"
|
||||
if [[ ! -x "$EXECUTABLE_PATH" ]]; then
|
||||
echo "Release executable not found: $EXECUTABLE_PATH" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ ! -d "$RESOURCE_BUNDLE" ]]; then
|
||||
echo "Application resource bundle not found: $RESOURCE_BUNDLE" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Creating the application bundle..."
|
||||
mkdir -p "$STAGING_APP/Contents/MacOS" "$STAGING_APP/Contents/Resources"
|
||||
cp "$PROJECT_DIR/Info.plist" "$STAGING_APP/Contents/Info.plist"
|
||||
cp "$EXECUTABLE_PATH" "$STAGING_APP/Contents/MacOS/$PRODUCT_NAME"
|
||||
cp "$ICON_PATH" "$STAGING_APP/Contents/Resources/Fchati.icns"
|
||||
cp -R "$RESOURCE_BUNDLE" "$STAGING_APP/Contents/Resources/"
|
||||
codesign --force --sign - --timestamp=none --entitlements "$PROJECT_DIR/FchatiApp.entitlements" "$STAGING_APP"
|
||||
|
||||
if [[ -d "$INSTALL_PATH" ]]; then
|
||||
|
||||
Reference in New Issue
Block a user