refactor: lazy download macos maker (#3564)

This commit is contained in:
Alex Yang
2023-08-03 17:58:42 -07:00
committed by GitHub
parent 0882d47dc9
commit 4bb874756d
16 changed files with 30 additions and 267 deletions

View File

@@ -30,7 +30,7 @@ const windowsIconUrl = `https://cdn.affine.pro/app-icons/icon_${buildType}.ico`;
const makers = [
!process.env.SKIP_BUNDLE && {
name: '@affine/maker-dmg',
name: '@electron-forge/maker-dmg',
config: {
format: 'ULFO',
icon: icnsPath,
@@ -40,6 +40,21 @@ const makers = [
__dirname,
'./resources/icons/dmg-background.png'
),
contents: [
{
x: 176,
y: 192,
type: 'file',
path: path.resolve(
__dirname,
'out',
buildType,
`${productName}-darwin-${arch}`,
`${productName}.app`
),
},
{ x: 432, y: 192, type: 'link', path: '/Applications' },
],
file: path.resolve(
__dirname,
'out',

View File

@@ -26,7 +26,6 @@
"devDependencies": {
"@affine-test/kit": "workspace:*",
"@affine/env": "workspace:*",
"@affine/maker-dmg": "workspace:*",
"@affine/native": "workspace:*",
"@affine/sdk": "workspace:*",
"@blocksuite/blocks": "0.0.0-20230802200139-381599c0-nightly",