From 45e4d5129938ea1f0b09ec1c2dcee9b3b9a26b5a Mon Sep 17 00:00:00 2001 From: yu Date: Wed, 10 Jul 2024 16:38:51 +0800 Subject: [PATCH 1/4] fix: change git actions config. --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3b48d5f..0aecd6d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -48,7 +48,7 @@ jobs: # You can remove the one that doesn't apply to your app to speed up the workflow a bit. - name: install frontend dependencies - run: yarn install # change this to npm, pnpm or bun depending on which one you use. + run: pnpm install # change this to npm, pnpm or bun depending on which one you use. - uses: tauri-apps/tauri-action@v0 env: From 41559c3e73cfb929d7c59f661f3c0a668d9eeaaf Mon Sep 17 00:00:00 2001 From: yu Date: Wed, 10 Jul 2024 16:42:01 +0800 Subject: [PATCH 2/4] fix: change git actions config. --- .github/workflows/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0aecd6d..b6ede65 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -33,6 +33,9 @@ jobs: with: node-version: lts/* + - name: setup pnpm + run: npm install -g pnpm + - name: install Rust stable uses: dtolnay/rust-toolchain@stable with: From 9e7f44d12907225699a3be37c9ca1686c49ef3c7 Mon Sep 17 00:00:00 2001 From: yu Date: Wed, 10 Jul 2024 17:20:12 +0800 Subject: [PATCH 3/4] fix: try to fix build problem --- src/utils/rss.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils/rss.ts b/src/utils/rss.ts index 483a4d6..45a32b9 100644 --- a/src/utils/rss.ts +++ b/src/utils/rss.ts @@ -3,7 +3,7 @@ import RSSParser from 'rss-parser'; import { ResponseType, fetch } from '@tauri-apps/api/http'; import { open, confirm } from '@tauri-apps/api/dialog'; import { exists, createDir } from '@tauri-apps/api/fs'; -import * as _ from 'lodash-es'; +import { intersection } from 'lodash-es'; import { fileNameLimitRegExp } from './format'; import { QbApiWrapper } from './qb-api'; import { recordLog } from './log'; @@ -93,7 +93,7 @@ export async function injectRuleData( const rssLinkList = await qbApiWrapper.rssGetAllLink(); const subItemLinkList = subList.map(v => v.link); - const sameLinkList = _.intersection(rssLinkList, subItemLinkList); + const sameLinkList = intersection(rssLinkList, subItemLinkList); if (sameLinkList.length > 0) { throw new Error( `qb 中含有相同地址的 rss 订阅:${sameLinkList.join(' ; ')}`, @@ -101,7 +101,7 @@ export async function injectRuleData( } const ruleList = await qbApiWrapper.rssRuleGetAll(); const ruleTitleList = Object.keys(ruleList); - const sameTitleList = _.intersection(ruleTitleList, titleList); + const sameTitleList = intersection(ruleTitleList, titleList); if (sameTitleList.length > 0) { throw new Error( `qb 中含有相同标题的下载规则:${sameTitleList.join(' ; ')}`, From 9542ad0330751539e838e3dd90a4a691ec9906b4 Mon Sep 17 00:00:00 2001 From: yu Date: Wed, 10 Jul 2024 17:53:52 +0800 Subject: [PATCH 4/4] fix: try to fix build problem --- modern.config.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modern.config.ts b/modern.config.ts index d8bbe57..7e1f82b 100644 --- a/modern.config.ts +++ b/modern.config.ts @@ -52,4 +52,7 @@ export default defineConfig({ disableNodePolyfill: false, disableSourceMap: process.env.NODE_ENV === 'production', }, + performance: { + transformLodash: false, + }, });