Skip to content

Commit

Permalink
🐞 fix: fix some bugs #275
Browse files Browse the repository at this point in the history
  • Loading branch information
imsyy committed Oct 18, 2024
1 parent 18113d9 commit 2b8eb93
Show file tree
Hide file tree
Showing 15 changed files with 298 additions and 312 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ on:
push:
tags:
- v*
workflow_dispatch:

jobs:
# Windows
build-windows:
name: Build for Windows
runs-on: windows-latest
timeout-minutes: 30
steps:
# 检出 Git 仓库
- name: Check out git repository
Expand Down Expand Up @@ -50,15 +50,13 @@ jobs:
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/v')
with:
draft: false
files: dist/*.*
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
# Mac
build-macos:
name: Build for macOS
runs-on: macos-latest
timeout-minutes: 30
steps:
# 检出 Git 仓库
- name: Check out git repository
Expand Down Expand Up @@ -97,15 +95,13 @@ jobs:
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/v')
with:
draft: false
files: dist/*.*
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
# Linux
build-linux:
name: Build for Linux
runs-on: ubuntu-22.04
timeout-minutes: 30
steps:
# 检出 Git 仓库
- name: Check out git repository
Expand All @@ -124,6 +120,11 @@ jobs:
sudo apt-get install --no-install-recommends -y rpm &&
sudo apt-get install --no-install-recommends -y libarchive-tools &&
sudo apt-get install --no-install-recommends -y libopenjp2-tools
# 安装 Snapcraft
- name: Install Snapcraft
uses: samuelmeuli/action-snapcraft@v2
with:
snapcraft_token: ${{ secrets.SNAPCRAFT_TOKEN }}
# 复制环境变量文件
- name: Copy .env.example
run: |
Expand All @@ -141,6 +142,11 @@ jobs:
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
# 上传 Snap 包到 Snapcraft 商店
- name: Publish Snap to Snap Store
run: snapcraft upload dist/*.snap --release stable
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }}
# 上传构建产物
- name: Upload Linux artifact
uses: actions/upload-artifact@v4
Expand All @@ -153,7 +159,6 @@ jobs:
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/v')
with:
draft: false
files: dist/*.*
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@

[Dev Workflow](https://github.com/imsyy/SPlayer/actions/workflows/build.yml)

## Snap Store

[![Get it from the Snap Store](https://snapcraft.io/en/dark/install.svg)](https://snapcraft.io/splayer)

## ⚙️ Docker 部署

> 安装及配置 `Docker` 将不在此处说明,请自行解决
Expand Down
1 change: 1 addition & 0 deletions electron-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ linux:
- AppImage
- deb
- rpm
- snap
- tar.gz
# 维护者信息
maintainer: imsyy.top
Expand Down
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"@pixi/filter-color-matrix": "^7.4.2",
"@pixi/sprite": "^7.4.2",
"@vueuse/core": "^10.11.1",
"NeteaseCloudMusicApi": "^4.23.1",
"NeteaseCloudMusicApi": "^4.23.3",
"axios": "^1.7.7",
"change-case": "^5.4.4",
"dayjs": "^1.11.13",
Expand All @@ -64,12 +64,12 @@
"jss-preset-default": "^10.10.0",
"localforage": "^1.10.0",
"lodash-es": "^4.17.21",
"marked": "^14.1.2",
"marked": "^14.1.3",
"music-metadata": "7.14.0",
"pinia": "^2.2.4",
"pinia-plugin-persistedstate": "^3.2.3",
"plyr": "^3.7.8",
"vue-virt-list": "^1.5.2"
"vue-virt-list": "^1.5.3"
},
"devDependencies": {
"@electron-toolkit/preload": "^3.0.1",
Expand All @@ -82,14 +82,14 @@
"@types/file-saver": "^2.0.7",
"@types/howler": "^2.2.12",
"@types/js-cookie": "^3.0.6",
"@types/node": "^22.7.5",
"@typescript-eslint/eslint-plugin": "^8.8.1",
"@typescript-eslint/parser": "^8.8.1",
"@types/node": "^22.7.6",
"@typescript-eslint/eslint-plugin": "^8.10.0",
"@typescript-eslint/parser": "^8.10.0",
"@vitejs/plugin-vue": "^5.1.4",
"ajv": "^8.17.1",
"crypto-js": "^4.2.0",
"electron": "^28.3.3",
"electron-builder": "^25.1.7",
"electron": "^31.7.1",
"electron-builder": "^25.1.8",
"electron-log": "^5.2.0",
"electron-vite": "^2.3.0",
"eslint": "^9.12.0",
Expand All @@ -99,12 +99,12 @@
"naive-ui": "^2.40.1",
"node-taglib-sharp": "^5.2.3",
"prettier": "^3.3.3",
"sass": "^1.79.5",
"terser": "^5.34.1",
"sass": "^1.80.2",
"terser": "^5.36.0",
"typescript": "^5.6.3",
"unplugin-auto-import": "^0.18.3",
"unplugin-vue-components": "^0.27.4",
"vite": "^5.4.8",
"vite": "^5.4.9",
"vite-plugin-compression": "^0.5.1",
"vite-plugin-wasm": "^3.3.0",
"vue": "3.5.10",
Expand Down
Loading

0 comments on commit 2b8eb93

Please sign in to comment.