mirror of
https://github.com/nimbold/Firelink.git
synced 2026-08-29 03:57:11 +00:00
feat: add application icon
This commit is contained in:
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 1.3 MiB |
@@ -10,6 +10,7 @@ APP_DIR="$ROOT_DIR/build/$APP_NAME.app"
|
|||||||
CONTENTS_DIR="$APP_DIR/Contents"
|
CONTENTS_DIR="$APP_DIR/Contents"
|
||||||
MACOS_DIR="$CONTENTS_DIR/MacOS"
|
MACOS_DIR="$CONTENTS_DIR/MacOS"
|
||||||
RESOURCES_DIR="$CONTENTS_DIR/Resources"
|
RESOURCES_DIR="$CONTENTS_DIR/Resources"
|
||||||
|
ICON_NAME="AppIcon"
|
||||||
|
|
||||||
cd "$ROOT_DIR"
|
cd "$ROOT_DIR"
|
||||||
swift build -c "$CONFIGURATION"
|
swift build -c "$CONFIGURATION"
|
||||||
@@ -17,6 +18,7 @@ swift build -c "$CONFIGURATION"
|
|||||||
rm -rf "$APP_DIR"
|
rm -rf "$APP_DIR"
|
||||||
mkdir -p "$MACOS_DIR" "$RESOURCES_DIR"
|
mkdir -p "$MACOS_DIR" "$RESOURCES_DIR"
|
||||||
cp ".build/$CONFIGURATION/$APP_NAME" "$MACOS_DIR/$APP_NAME"
|
cp ".build/$CONFIGURATION/$APP_NAME" "$MACOS_DIR/$APP_NAME"
|
||||||
|
cp "$ROOT_DIR/Resources/$ICON_NAME.icns" "$RESOURCES_DIR/$ICON_NAME.icns"
|
||||||
|
|
||||||
cat > "$CONTENTS_DIR/Info.plist" <<PLIST
|
cat > "$CONTENTS_DIR/Info.plist" <<PLIST
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
@@ -33,6 +35,8 @@ cat > "$CONTENTS_DIR/Info.plist" <<PLIST
|
|||||||
<string>6.0</string>
|
<string>6.0</string>
|
||||||
<key>CFBundleName</key>
|
<key>CFBundleName</key>
|
||||||
<string>$APP_NAME</string>
|
<string>$APP_NAME</string>
|
||||||
|
<key>CFBundleIconFile</key>
|
||||||
|
<string>$ICON_NAME</string>
|
||||||
<key>CFBundlePackageType</key>
|
<key>CFBundlePackageType</key>
|
||||||
<string>APPL</string>
|
<string>APPL</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
|
|||||||
Reference in New Issue
Block a user