修复桌面应用图标并适配多语言名称
This commit is contained in:
1 parent
17deffcfb5
commit
1a9be54355
9 files changed
+107
-7
No files matched your search
@@ -5,9 +5,9 @@
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.ydisks.xianyu-helper</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>Ydisks闲鱼助手</string>
|
||||
<string>Ydisks Xianyu Helper</string>
|
||||
<key>CFBundleDisplayName</key>
|
||||
<string>Ydisks闲鱼助手</string>
|
||||
<string>Ydisks Xianyu Helper</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleVersion</key>
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
/* English application display name. */
|
||||
"CFBundleName" = "Ydisks Xianyu Helper";
|
||||
"CFBundleDisplayName" = "Ydisks Xianyu Helper";
|
||||
@@ -0,0 +1,3 @@
|
||||
/* Simplified Chinese application display name. */
|
||||
"CFBundleName" = "Ydisks闲鱼助手";
|
||||
"CFBundleDisplayName" = "Ydisks闲鱼助手";
|
||||
@@ -0,0 +1,3 @@
|
||||
/* Chinese application display name. */
|
||||
"CFBundleName" = "Ydisks闲鱼助手";
|
||||
"CFBundleDisplayName" = "Ydisks闲鱼助手";
|
||||
@@ -60,6 +60,15 @@ mkdir -p "$APP/Contents/Resources/playwright-runtime/$ARCH"
|
||||
cp -R "$DIST_DIR/playwright-runtime/$ARCH/." "$APP/Contents/Resources/playwright-runtime/$ARCH/"
|
||||
cp "$PROJECT_ROOT/icon/macos/Assets.car" "$APP/Contents/Resources/Assets.car"
|
||||
cp "$PROJECT_ROOT/icon/macos/icon.icns" "$APP/Contents/Resources/icon.icns"
|
||||
mkdir -p "$APP/Contents/Resources/en.lproj" \
|
||||
"$APP/Contents/Resources/zh-Hans.lproj" \
|
||||
"$APP/Contents/Resources/zh-Hant.lproj"
|
||||
cp "$SCRIPT_DIR/Resources/en.lproj/InfoPlist.strings" \
|
||||
"$APP/Contents/Resources/en.lproj/InfoPlist.strings"
|
||||
cp "$SCRIPT_DIR/Resources/zh-Hans.lproj/InfoPlist.strings" \
|
||||
"$APP/Contents/Resources/zh-Hans.lproj/InfoPlist.strings"
|
||||
cp "$SCRIPT_DIR/Resources/zh-Hant.lproj/InfoPlist.strings" \
|
||||
"$APP/Contents/Resources/zh-Hant.lproj/InfoPlist.strings"
|
||||
sed "s/__VERSION__/$VERSION/g" "$SCRIPT_DIR/Info.plist" > "$APP/Contents/Info.plist"
|
||||
chmod 0755 "$APP/Contents/MacOS/Ydisks闲鱼助手" "$APP/Contents/Helpers/xianyu-server" "$APP_DIR/卸载 Ydisks闲鱼助手.command"
|
||||
|
||||
|
||||
Reference in new issue
Block a user