mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
ci: skip build in the non-darwin platform
This commit is contained in:
@@ -26,44 +26,50 @@ const arch =
|
|||||||
? process.argv[process.argv.indexOf('--arch') + 1]
|
? process.argv[process.argv.indexOf('--arch') + 1]
|
||||||
: process.arch;
|
: process.arch;
|
||||||
|
|
||||||
|
const platform =
|
||||||
|
process.argv.indexOf('--platform') > 0
|
||||||
|
? process.argv[process.argv.indexOf('--platform') + 1]
|
||||||
|
: process.platform;
|
||||||
|
|
||||||
const windowsIconUrl = `https://cdn.affine.pro/app-icons/icon_${buildType}.ico`;
|
const windowsIconUrl = `https://cdn.affine.pro/app-icons/icon_${buildType}.ico`;
|
||||||
|
|
||||||
const makers = [
|
const makers = [
|
||||||
!process.env.SKIP_BUNDLE && {
|
!process.env.SKIP_BUNDLE &&
|
||||||
name: '@electron-forge/maker-dmg',
|
platform === 'darwin' && {
|
||||||
config: {
|
name: '@electron-forge/maker-dmg',
|
||||||
format: 'ULFO',
|
config: {
|
||||||
icon: icnsPath,
|
format: 'ULFO',
|
||||||
name: 'AFFiNE',
|
icon: icnsPath,
|
||||||
'icon-size': 128,
|
name: 'AFFiNE',
|
||||||
background: path.resolve(
|
'icon-size': 128,
|
||||||
__dirname,
|
background: path.resolve(
|
||||||
'./resources/icons/dmg-background.png'
|
__dirname,
|
||||||
),
|
'./resources/icons/dmg-background.png'
|
||||||
contents: [
|
),
|
||||||
{
|
contents: [
|
||||||
x: 176,
|
{
|
||||||
y: 192,
|
x: 176,
|
||||||
type: 'file',
|
y: 192,
|
||||||
path: path.resolve(
|
type: 'file',
|
||||||
__dirname,
|
path: path.resolve(
|
||||||
'out',
|
__dirname,
|
||||||
buildType,
|
'out',
|
||||||
`${productName}-darwin-${arch}`,
|
buildType,
|
||||||
`${productName}.app`
|
`${productName}-darwin-${arch}`,
|
||||||
),
|
`${productName}.app`
|
||||||
},
|
),
|
||||||
{ x: 432, y: 192, type: 'link', path: '/Applications' },
|
},
|
||||||
],
|
{ x: 432, y: 192, type: 'link', path: '/Applications' },
|
||||||
file: path.resolve(
|
],
|
||||||
__dirname,
|
file: path.resolve(
|
||||||
'out',
|
__dirname,
|
||||||
buildType,
|
'out',
|
||||||
`${productName}-darwin-${arch}`,
|
buildType,
|
||||||
`${productName}.app`
|
`${productName}-darwin-${arch}`,
|
||||||
),
|
`${productName}.app`
|
||||||
|
),
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
|
||||||
{
|
{
|
||||||
name: '@electron-forge/maker-zip',
|
name: '@electron-forge/maker-zip',
|
||||||
config: {
|
config: {
|
||||||
|
|||||||
Reference in New Issue
Block a user