feat: support google cloud login in client (#1822)

Co-authored-by: Himself65 <himself65@outlook.com>
Co-authored-by: Peng Xiao <pengxiao@outlook.com>
This commit is contained in:
Horus
2023-04-12 02:42:36 +08:00
committed by GitHub
parent 024c469a2c
commit c0669359ed
17 changed files with 252 additions and 42 deletions
+5 -5
View File
@@ -5,7 +5,7 @@ import path from 'node:path';
import * as esbuild from 'esbuild';
import { mainConfig, preloadConfig } from './common.mjs';
import commonFn from './common.mjs';
const repoRootDir = path.join(__dirname, '..', '..', '..');
const electronRootDir = path.join(__dirname, '..');
@@ -62,13 +62,13 @@ async function cleanup() {
}
async function buildLayers() {
await esbuild.build({
...preloadConfig,
});
const common = commonFn();
await esbuild.build(common.preload);
await esbuild.build({
...mainConfig,
...common.main,
define: {
...common.main.define,
'process.env.NODE_ENV': `"production"`,
},
});