There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
ci: skip build in the non-darwin platform
Alex Yang7f28c78d8c10
diff --git a/apps/electron/forge.config.js b/apps/electron/forge.config.jsindex 0908dd9e6c..282ac04b97 100644--- a/apps/electron/forge.config.js+++ b/apps/electron/forge.config.js@@ -26,44 +26,50 @@ const arch =? process.argv[process.argv.indexOf('--arch') + 1]: 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 makers = [- !process.env.SKIP_BUNDLE && {- name: '@electron-forge/maker-dmg',- config: {- format: 'ULFO',- icon: icnsPath,- name: 'AFFiNE',- 'icon-size': 128,- background: path.resolve(- __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',- buildType,- `${productName}-darwin-${arch}`,- `${productName}.app`- ),+ !process.env.SKIP_BUNDLE &&+ platform === 'darwin' && {+ name: '@electron-forge/maker-dmg',+ config: {+ format: 'ULFO',+ icon: icnsPath,+ name: 'AFFiNE',+ 'icon-size': 128,+ background: path.resolve(+ __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',+ buildType,+ `${productName}-darwin-${arch}`,+ `${productName}.app`+ ),+ },},- },{name: '@electron-forge/maker-zip',config: {