Skip to content

Commit 62095be

Browse files
committed
feat: 更新工作流和配置,修复拼写错误并添加 RPM 目标
1 parent 0c5068f commit 62095be

File tree

7 files changed

+26
-22
lines changed

7 files changed

+26
-22
lines changed

.github/workflows/build-and-release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
id: package-info
4949
uses: luizfelipelaviola/get-package-info@v1
5050
with:
51-
path: ./packages/mitmproxy
51+
path: ./packages/gui
5252

5353
- name: Print
5454
run: |
@@ -74,15 +74,15 @@ jobs:
7474
echo "--------------------";
7575
python --version;
7676
77-
- name: Setup electron cahce
77+
- name: Setup electron cache
7878
uses: actions/cache@v4
7979
with:
8080
path: ${{ github.workspace }}/.cache/electron
8181
key: ${{ runner.os }}-electron-cache-${{ hashFiles('**/pnpm-lock.yaml') }}
8282
restore-keys: |
8383
${{ runner.os }}-electron-cache-
8484
85-
- name: Setup electron-builder cahce
85+
- name: Setup electron-builder cache
8686
uses: actions/cache@v4
8787
with:
8888
path: ${{ github.workspace }}/.cache/electron-builder

.github/workflows/npm-run-electron.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ on:
77
- test*
88
- release*
99
paths-ignore:
10-
- '_script/**'
11-
- 'doc/**'
12-
- '**/*.md'
13-
- '**/.gitignore'
14-
- '**/LICENSE'
10+
- "_script/**"
11+
- "doc/**"
12+
- "**/*.md"
13+
- "**/.gitignore"
14+
- "**/LICENSE"
1515

1616
jobs:
1717
npm-run-electron:
@@ -49,15 +49,15 @@ jobs:
4949
if: matrix.os == 'macos'
5050
uses: actions/setup-python@v5
5151
with:
52-
python-version: '3.10'
52+
python-version: "3.10"
5353

5454
- name: Print
5555
run: |
5656
echo "github.ref_type = ${{ github.ref_type }}";
5757
echo "github.ref = ${{ github.ref }}";
5858
echo "github.ref_name = ${{ github.ref_name }}";
5959
60-
- name: 'npm -v | pnpm -v | python --version'
60+
- name: "npm -v | pnpm -v | python --version"
6161
run: |
6262
echo "======================================================================";
6363
echo "npm -v";
@@ -74,15 +74,15 @@ jobs:
7474
echo "--------------------";
7575
python --version;
7676
77-
- name: Setup electron cahce
77+
- name: Setup electron cache
7878
uses: actions/cache@v4
7979
with:
8080
path: ${{ github.workspace }}/.cache/electron
8181
key: ${{ runner.os }}-electron-cache-${{ hashFiles('**/pnpm-lock.yaml') }}
8282
restore-keys: |
8383
${{ runner.os }}-electron-cache-
8484
85-
- name: Setup electron-builder cahce
85+
- name: Setup electron-builder cache
8686
uses: actions/cache@v4
8787
with:
8888
path: ${{ github.workspace }}/.cache/electron-builder

.github/workflows/test-and-upload.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
id: package-info
6868
uses: luizfelipelaviola/get-package-info@v1
6969
with:
70-
path: ./packages/mitmproxy
70+
path: ./packages/gui
7171

7272
- name: Print
7373
run: |
@@ -93,15 +93,15 @@ jobs:
9393
echo "--------------------";
9494
python --version;
9595
96-
- name: Setup electron cahce
96+
- name: Setup electron cache
9797
uses: actions/cache@v4
9898
with:
9999
path: ${{ github.workspace }}/.cache/electron
100100
key: ${{ runner.os }}-electron-cache-${{ hashFiles('**/pnpm-lock.yaml') }}
101101
restore-keys: |
102102
${{ runner.os }}-electron-cache-
103103
104-
- name: Setup electron-builder cahce
104+
- name: Setup electron-builder cache
105105
uses: actions/cache@v4
106106
with:
107107
path: ${{ github.workspace }}/.cache/electron-builder

packages/core/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@docmirror/dev-sidecar",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"private": false,
55
"description": "给开发者的加速代理工具",
66
"author": "docmirror.cn",
@@ -30,4 +30,4 @@
3030
"chai": "^4.3.4",
3131
"mocha": "^8.2.1"
3232
}
33-
}
33+
}

packages/gui/src/view/pages/plugin/free-eye.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,6 @@ export default {
184184
</a-table>
185185

186186
<a-collapse class="mb16">
187-
<a-collapse-panel key="formatted-results" header="格式化结果">
188-
<pre class="raw-json">{{ JSON.stringify(lastResult.results, null, 2) }}</pre>
189-
</a-collapse-panel>
190187
<a-collapse-panel key="raw-logs" header="原始日志">
191188
<a-textarea
192189
class="raw-log-textarea"
@@ -195,6 +192,9 @@ export default {
195192
readonly
196193
/>
197194
</a-collapse-panel>
195+
<a-collapse-panel key="formatted-results" header="格式化结果">
196+
<pre class="raw-json">{{ JSON.stringify(lastResult.results, null, 2) }}</pre>
197+
</a-collapse-panel>
198198
</a-collapse>
199199
</div>
200200
</div>

packages/gui/vue.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,10 @@ module.exports = defineConfig({
107107
target: 'tar.gz',
108108
arch: ['x64', 'arm64', 'armv7l'],
109109
},
110+
{
111+
target: 'rpm',
112+
arch: ['x64', 'arm64', 'armv7l'],
113+
},
110114
],
111115
category: 'System',
112116
},

packages/mitmproxy/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@docmirror/mitmproxy",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"private": false,
55
"description": "",
66
"author": "docmirror.cn",
@@ -27,4 +27,4 @@
2727
"through2": "^4.0.2",
2828
"tunnel-agent": "^0.6.0"
2929
}
30-
}
30+
}

0 commit comments

Comments
 (0)