fix: 🚀 修复 MacOS 软件包安装后无线显示 Logo 的问题

This commit is contained in:
viarotel 2023-10-20 23:40:36 +08:00
parent 6dcff6ee0e
commit 77dd81b115
9 changed files with 65 additions and 38 deletions

View File

@ -13,7 +13,7 @@ jobs:
matrix:
include:
- os: ubuntu-latest
arch: amd64
arch: [arm64, amd64]
- os: macos-latest
arch: [arm64, amd64]
- os: windows-latest

View File

@ -14,41 +14,6 @@
"repo": "escrcpy",
"updaterCacheDirName": "escrcpy-updater"
},
"mac": {
"icon": "logo.icns",
"target": [
{
"target": "dmg",
"arch": ["universal", "arm64", "x64"]
}
],
"artifactName": "${productName}-${version}-mac-installer.${ext}",
"entitlementsInherit": "electron/resources/build/entitlements.mac.plist",
"extendInfo": {
"NSDocumentsFolderUsageDescription": "Application requests access to the user's Documents folder.",
"NSDownloadsFolderUsageDescription": "Application requests access to the user's Downloads folder."
},
"notarize": false
},
"win": {
"icon": "logo.ico",
"target": [
{
"target": "nsis",
"arch": ["x64"]
},
{
"target": "zip"
},
{
"target": "portable"
}
],
"extraResources": {
"from": "electron/resources/extra",
"to": "extra"
}
},
"nsis": {
"artifactName": "${productName}-${version}-win-setup.${ext}",
"shortcutName": "${productName}",
@ -62,9 +27,71 @@
"artifactName": "${productName}-${version}-win-portable.${ext}",
"requestExecutionLevel": "user"
},
"win": {
"icon": "logo.ico",
"target": [
{
"target": "nsis",
"arch": ["x64"]
},
{
"target": "zip",
"arch": ["x64"]
},
{
"target": "portable",
"arch": ["x64"]
}
],
"extraResources": {
"from": "electron/resources/extra",
"to": "extra"
}
},
"mac": {
"icon": "logo.icns",
"target": [
{
"target": "dmg",
"arch": ["universal", "x64", "arm64"]
},
{
"target": "zip",
"arch": ["universal", "x64", "arm64"]
}
],
"artifactName": "${productName}-${version}-mac-${arch}.${ext}",
"entitlementsInherit": "electron/resources/build/entitlements.mac.plist",
"extendInfo": {
"NSDocumentsFolderUsageDescription": "Application requests access to the user's Documents folder.",
"NSDownloadsFolderUsageDescription": "Application requests access to the user's Downloads folder."
},
"type": "development",
"notarize": false,
"darkModeSupport": true,
"hardenedRuntime": false
},
"linux": {
"category": "Utility",
"icon": "logo.png",
"target": ["AppImage"],
"target": [
{
"target": "AppImage",
"arch": ["x64", "arm64"]
},
{
"target": "deb",
"arch": ["x64", "arm64"]
},
{
"target": "rpm",
"arch": ["x64"]
},
{
"target": "snap",
"arch": ["x64"]
}
],
"artifactName": "${productName}-${version}-linux.${ext}"
},
"npmRebuild": false

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 170 KiB

After

Width:  |  Height:  |  Size: 203 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 401 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 170 KiB

After

Width:  |  Height:  |  Size: 203 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

BIN
src/assets/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 401 KiB

View File

@ -1,7 +1,7 @@
<template>
<div class="flex flex-col items-center justify-center h-full -mt-8">
<div class="">
<img src="@/assets/icon.png" class="h-48" alt="" />
<img src="@/assets/logo.png" class="h-48" alt="" />
</div>
<div class="pt-4 text-xl text-center italic text-gray-700">
📱 使用图形化的