Skip to content

Commit 4f0a9c1

Browse files
committed
v0.1.7 - 构建测试提交
1 parent 1858f88 commit 4f0a9c1

18 files changed

+1479
-2208
lines changed

.github/workflows/release.yml

Lines changed: 23 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,32 @@
1-
name: Build and Release
1+
name: Build for Linux
22

33
on:
44
push:
5-
branches:
6-
- main
5+
tags:
6+
- "v*.*.*"
77

88
jobs:
99
build:
10-
if: startsWith(github.event.head_commit.message, 'v') # 仅当提交消息以 v 开头时运行
1110
runs-on: ubuntu-latest
1211

13-
steps:
14-
# 1. 检出代码
15-
- name: Checkout code
16-
uses: actions/checkout@v3
17-
18-
# 2. 设置 Node.js
19-
- name: Setup Node.js
20-
uses: actions/setup-node@v3
21-
with:
22-
node-version: 20
23-
24-
# 3. 安装依赖
25-
- name: Install dependencies
26-
run: npm install
12+
strategy:
13+
matrix:
14+
node-version: [20.x]
15+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
2716

28-
# 4. 构建 Electron 应用
29-
- name: Build Application
30-
env:
31-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32-
run: npm run build
33-
34-
# 5. 上传构建产物到 Release
35-
- name: Upload Release
36-
uses: softprops/action-gh-release@v1
37-
if: startsWith(github.ref, 'refs/tags/')
38-
with:
39-
files: |
40-
dist/*.AppImage
41-
dist/*.deb
42-
dist/*.exe
43-
dist/*.dmg
44-
env:
45-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
steps:
18+
- uses: actions/checkout@v3
19+
- name: Use Node.js ${{ matrix.node-version }}
20+
uses: actions/setup-node@v3
21+
with:
22+
node-version: ${{ matrix.node-version }}
23+
cache: 'yarn'
24+
- run: sudo yarn global add electron-builder
25+
- run: yarn install
26+
- run: sudo yarn build --linux
27+
- run: rm -rf ./dist/*.yml ./dist/*.yaml ./dist/linux-unpacked
28+
- name: Upload multiple assets to release
29+
uses: csexton/release-asset-action@v3
30+
with:
31+
pattern: "dist/*"
32+
github-token: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,3 @@ Thumbs.db
1414

1515
# 忽略环境变量配置
1616
.env
17-
18-
# 忽略调试获取的Cookies
19-
bili.cookies.txt

.prettierrc

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
11
{
2-
"tabWidth": 4
3-
}
2+
"tabWidth": 4,
3+
"useTabs": false,
4+
"singleQuote": false,
5+
"semi": true,
6+
"jsxSingleQuote": false,
7+
"trailingComma": "none",
8+
"printWidth": 400,
9+
"endOfLine": "lf"
10+
}

eslint.config.mjs

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
import globals from "globals";
2+
import path from "node:path";
3+
import { fileURLToPath } from "node:url";
4+
import js from "@eslint/js";
5+
import { FlatCompat } from "@eslint/eslintrc";
6+
7+
const __filename = fileURLToPath(import.meta.url);
8+
const __dirname = path.dirname(__filename);
9+
const compat = new FlatCompat({
10+
baseDirectory: __dirname,
11+
recommendedConfig: js.configs.recommended,
12+
allConfig: js.configs.all
13+
});
14+
15+
export default [...compat.extends("eslint:recommended"), {
16+
languageOptions: {
17+
globals: {
18+
...globals.browser,
19+
...globals.commonjs,
20+
...globals.node
21+
},
22+
23+
ecmaVersion: "latest",
24+
sourceType: "module",
25+
},
26+
27+
rules: {
28+
"linebreak-style": ["error", "unix"],
29+
semi: ["error", "always"],
30+
},
31+
}];

icons/converter.py

Lines changed: 0 additions & 41 deletions
This file was deleted.

icons/icon.png

-128 KB
Loading

index.html

Lines changed: 0 additions & 10 deletions
This file was deleted.

main.js

Lines changed: 0 additions & 122 deletions
This file was deleted.

0 commit comments

Comments
 (0)