Skip to content

Commit

Permalink
Merge pull request #1 from Yu15693/release
Browse files Browse the repository at this point in the history
build: add git actions.
  • Loading branch information
Yu15693 authored Jul 10, 2024
2 parents 4a22a89 + 9542ad0 commit bc12b47
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -48,7 +51,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:
Expand Down
3 changes: 3 additions & 0 deletions modern.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,7 @@ export default defineConfig({
disableNodePolyfill: false,
disableSourceMap: process.env.NODE_ENV === 'production',
},
performance: {
transformLodash: false,
},
});
6 changes: 3 additions & 3 deletions src/utils/rss.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -93,15 +93,15 @@ 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(' ; ')}`,
);
}
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(' ; ')}`,
Expand Down

0 comments on commit bc12b47

Please sign in to comment.