mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-02 18:09:58 +08:00
fix: cleanup electron build script (#1813)
This commit is contained in:
@@ -31,4 +31,18 @@ module.exports = {
|
||||
},
|
||||
},
|
||||
],
|
||||
hooks: {
|
||||
generateAssets: async (_, platform, arch) => {
|
||||
const { $ } = await import('zx');
|
||||
|
||||
if (platform === 'darwin' && arch === 'arm64') {
|
||||
// In GitHub Actions runner, MacOS is always x64
|
||||
// we need to manually set TARGET to aarch64-apple-darwin
|
||||
process.env.TARGET = 'aarch64-apple-darwin';
|
||||
}
|
||||
|
||||
// run yarn generate-assets
|
||||
await $`yarn generate-assets`;
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user