Skip to content

Commit 18abe71

Browse files
author
pompurin404
committed
release
1 parent 0c0a0b1 commit 18abe71

File tree

3 files changed

+3
-76
lines changed

3 files changed

+3
-76
lines changed

.github/workflows/build.yml

+2-41
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,7 @@ jobs:
4949
with:
5050
files: |
5151
dist/*.exe
52-
dist/*.blockmap
53-
token: ${{ secrets.GITHUB_TOKEN }}
54-
- name: Merge Yaml
55-
if: startsWith(github.ref, 'refs/tags/v')
56-
run: pnpm updater latest.yml
57-
- name: Publish Release
58-
if: startsWith(github.ref, 'refs/tags/v')
59-
uses: softprops/action-gh-release@v2
60-
with:
61-
files: dist/latest.yml
52+
dist/latest.yml
6253
token: ${{ secrets.GITHUB_TOKEN }}
6354

6455
linux:
@@ -103,21 +94,6 @@ jobs:
10394
files: |
10495
dist/*.deb
10596
dist/*.rpm
106-
dist/*.blockmap
107-
token: ${{ secrets.GITHUB_TOKEN }}
108-
- name: Merge Yaml
109-
if: startsWith(github.ref, 'refs/tags/v') && matrix.arch == 'x64'
110-
run: pnpm updater latest-linux.yml
111-
- name: Merge Yaml
112-
if: startsWith(github.ref, 'refs/tags/v') && matrix.arch == 'arm64'
113-
run: pnpm updater latest-linux-arm64.yml
114-
- name: Publish Release
115-
if: startsWith(github.ref, 'refs/tags/v')
116-
uses: softprops/action-gh-release@v2
117-
with:
118-
files: |
119-
dist/latest-linux.yml
120-
dist/latest-linux-arm64.yml
12197
token: ${{ secrets.GITHUB_TOKEN }}
12298

12399
macos:
@@ -146,10 +122,7 @@ jobs:
146122
pnpm install
147123
pnpm prepare --${{ matrix.arch }}
148124
- name: Build
149-
env:
150-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
151125
run: pnpm build:mac --${{ matrix.arch }}
152-
153126
- name: Upload Artifacts
154127
uses: actions/upload-artifact@v4
155128
with:
@@ -160,17 +133,5 @@ jobs:
160133
if: startsWith(github.ref, 'refs/tags/v')
161134
uses: softprops/action-gh-release@v2
162135
with:
163-
files: |
164-
dist/*.dmg
165-
dist/*.zip
166-
dist/*.blockmap
167-
token: ${{ secrets.GITHUB_TOKEN }}
168-
- name: Merge Yaml
169-
if: startsWith(github.ref, 'refs/tags/v')
170-
run: pnpm updater latest-mac.yml
171-
- name: Publish Release
172-
if: startsWith(github.ref, 'refs/tags/v')
173-
uses: softprops/action-gh-release@v2
174-
with:
175-
files: dist/latest-mac.yml
136+
files: dist/*.dmg
176137
token: ${{ secrets.GITHUB_TOKEN }}

package.json

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mihomo-party",
3-
"version": "1.0.0",
3+
"version": "0.0.1",
44
"description": "Mihomo Party",
55
"main": "./out/main/index.js",
66
"author": "mihomo-party",
@@ -12,7 +12,6 @@
1212
"typecheck:web": "tsc --noEmit -p tsconfig.web.json --composite false",
1313
"typecheck": "npm run typecheck:node && npm run typecheck:web",
1414
"prepare": "node scripts/prepare.mjs",
15-
"updater": "node scripts/updater.mjs",
1615
"dev": "electron-vite dev",
1716
"postinstall": "electron-builder install-app-deps",
1817
"build:win": "electron-vite build && electron-builder --win --publish never",
@@ -26,7 +25,6 @@
2625
"@nextui-org/react": "^2.4.6",
2726
"axios": "^1.7.2",
2827
"dayjs": "^1.11.12",
29-
"electron-updater": "^6.2.1",
3028
"framer-motion": "^11.3.19",
3129
"next-themes": "^0.3.0",
3230
"pubsub-js": "^1.9.4",

scripts/updater.mjs

-32
This file was deleted.

0 commit comments

Comments
 (0)