From d68904a96bf4eec9c0295d7cd2f05105a7c45dc3 Mon Sep 17 00:00:00 2001 From: scarqin <1054139596@qq.com> Date: Mon, 13 Mar 2023 20:37:45 +0800 Subject: [PATCH] chore: fix enviroment name error --- scripts/build.ts | 4 ++-- src/workbench/browser/angular.json | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/scripts/build.ts b/scripts/build.ts index 6aba19512..5f049e85c 100644 --- a/scripts/build.ts +++ b/scripts/build.ts @@ -5,7 +5,7 @@ import minimist from 'minimist'; import YAML from 'yaml'; import pkgInfo from '../package.json'; -import { ELETRON_APP_CONFIG } from '../src/environment'; +import { COMMON_APP_CONFIG } from '../src/environment'; import { execSync, exec, spawn } from 'node:child_process'; import { createHash } from 'node:crypto'; @@ -75,7 +75,7 @@ const config: Configuration = { 'github', { provider: 'generic', - url: ELETRON_APP_CONFIG.BASE_DOWNLOAD_URL + url: COMMON_APP_CONFIG.BASE_DOWNLOAD_URL } ], generateUpdatesFilesForAllChannels: true, diff --git a/src/workbench/browser/angular.json b/src/workbench/browser/angular.json index f967162f4..e4cd5ee52 100644 --- a/src/workbench/browser/angular.json +++ b/src/workbench/browser/angular.json @@ -6,7 +6,10 @@ "projects": { "postcat": { "root": "", - "i18n": { "sourceLocale": { "code": "en" }, "locales": { "zh": { "translation": "locale/messages.zh.xlf" } } }, + "i18n": { + "sourceLocale": { "code": "en", "baseHref": "" }, + "locales": { "zh": { "translation": "locale/messages.zh.xlf", "baseHref": "" } } + }, "sourceRoot": "src", "projectType": "application", "schematics": { "@schematics/angular:application": { "strict": true } },