build: optimize release app workflow (#2011)

This commit is contained in:
Peng Xiao
2023-04-18 17:50:29 +08:00
committed by GitHub
parent f6fb049ff2
commit f36d415c3d
8 changed files with 96 additions and 147 deletions

View File

@@ -72,8 +72,14 @@ module.exports = {
packageJson.productName = productName;
},
generateAssets: async (_, platform, arch) => {
if (process.env.SKIP_GENERATE_ASSETS) {
return;
}
const { $ } = await import('zx');
// TODO: right now we do not need the following
// it is for octobase-node, but we dont use it for now.
if (platform === 'darwin' && arch === 'arm64') {
// In GitHub Actions runner, MacOS is always x64
// we need to manually set TARGET to aarch64-apple-darwin