mirror of
https://github.com/imsyy/SPlayer.git
synced 2025-11-25 03:14:57 +08:00
fix: 修复搜索框歌手页面跳转
This commit is contained in:
22
.github/workflows/build.yml
vendored
22
.github/workflows/build.yml
vendored
@@ -1,20 +1,14 @@
|
||||
name: Build
|
||||
name: Build Dev
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- dev
|
||||
tags:
|
||||
- v*
|
||||
|
||||
jobs:
|
||||
release:
|
||||
name: Build and release electron app
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [windows-latest]
|
||||
name: Build and electron app
|
||||
runs-on: windows-latest
|
||||
|
||||
steps:
|
||||
- name: Check out git repository
|
||||
@@ -29,20 +23,18 @@ jobs:
|
||||
run: npm install
|
||||
|
||||
- name: Build Electron App
|
||||
if: matrix.os == 'windows-latest'
|
||||
run: npm run build:win
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
||||
|
||||
- name: Cleanup Artifacts for Windows
|
||||
if: matrix.os == 'windows-latest'
|
||||
- name: Cleanup Artifacts
|
||||
run: |
|
||||
npx rimraf "dist/!(*.exe)"
|
||||
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v3.0.0
|
||||
with:
|
||||
name: ${{ matrix.os }}
|
||||
name: SPlayer-dev
|
||||
path: dist
|
||||
|
||||
- name: Create a release
|
||||
@@ -51,5 +43,3 @@ jobs:
|
||||
with:
|
||||
draft: true
|
||||
files: "dist/**"
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
||||
|
||||
139
.github/workflows/release.yml
vendored
139
.github/workflows/release.yml
vendored
@@ -1,4 +1,4 @@
|
||||
name: release
|
||||
name: Build Release
|
||||
|
||||
on:
|
||||
push:
|
||||
@@ -6,92 +6,95 @@ on:
|
||||
- v*
|
||||
|
||||
jobs:
|
||||
mac_release:
|
||||
runs-on: macos-latest
|
||||
timeout-minutes: 30
|
||||
|
||||
steps:
|
||||
- name: Check out Git repository
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Setup Node.js environment
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 16.x
|
||||
cache: npm
|
||||
|
||||
- run: npm ci
|
||||
- run: npm run build:mac
|
||||
|
||||
- name: Upload binaries
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: mac-release
|
||||
path: release/*/*.*
|
||||
|
||||
- name: Create a release
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
with:
|
||||
draft: true
|
||||
files: release/mac-release/*.*
|
||||
|
||||
windows_release:
|
||||
build-windows:
|
||||
name: Build for Windows
|
||||
runs-on: windows-latest
|
||||
timeout-minutes: 30
|
||||
|
||||
steps:
|
||||
- name: Check out Git repository
|
||||
uses: actions/checkout@v2
|
||||
- name: Check out git repository
|
||||
uses: actions/checkout@v3.0.0
|
||||
|
||||
- name: Setup Node.js environment
|
||||
uses: actions/setup-node@v2
|
||||
- name: Install Node.js
|
||||
uses: actions/setup-node@v3.0.0
|
||||
with:
|
||||
node-version: 16.x
|
||||
cache: npm
|
||||
node-version: "16.x"
|
||||
|
||||
- run: npm ci
|
||||
- run: npm run build:win
|
||||
- name: Install Dependencies
|
||||
run: npm install
|
||||
|
||||
- name: Upload binaries
|
||||
uses: actions/upload-artifact@v2
|
||||
- name: Build Electron App for Windows
|
||||
run: npm run build:win
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
||||
|
||||
- name: Upload Windows artifact
|
||||
uses: actions/upload-artifact@v3.0.0
|
||||
with:
|
||||
name: windows-release
|
||||
path: release/*/*.*
|
||||
name: SPlayer-Windows
|
||||
path: dist/*.exe
|
||||
|
||||
- name: Create a release
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
build-macos:
|
||||
name: Build for macOS
|
||||
runs-on: macos-latest
|
||||
steps:
|
||||
- name: Check out git repository
|
||||
uses: actions/checkout@v3.0.0
|
||||
|
||||
- name: Install Node.js
|
||||
uses: actions/setup-node@v3.0.0
|
||||
with:
|
||||
draft: true
|
||||
files: release/windows-release/*.*
|
||||
node-version: "16.x"
|
||||
|
||||
linux_release:
|
||||
- name: Install Dependencies
|
||||
run: npm install
|
||||
|
||||
- name: Build Electron App for macOS
|
||||
run: npm run build:mac
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
||||
|
||||
- name: Upload macOS artifact
|
||||
uses: actions/upload-artifact@v3.0.0
|
||||
with:
|
||||
name: SPlayer-macOS
|
||||
path: dist/*.dmg
|
||||
|
||||
build-linux:
|
||||
name: Build for Linux
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 30
|
||||
|
||||
steps:
|
||||
- name: Check out Git repository
|
||||
uses: actions/checkout@v2
|
||||
- name: Check out git repository
|
||||
uses: actions/checkout@v3.0.0
|
||||
|
||||
- name: Setup Node.js environment
|
||||
uses: actions/setup-node@v2
|
||||
- name: Install Node.js
|
||||
uses: actions/setup-node@v3.0.0
|
||||
with:
|
||||
node-version: 16.x
|
||||
cache: npm
|
||||
node-version: "16.x"
|
||||
|
||||
- run: npm ci
|
||||
- run: npm run build:linux
|
||||
- name: Install Dependencies
|
||||
run: npm install
|
||||
|
||||
- name: Upload binaries
|
||||
uses: actions/upload-artifact@v2
|
||||
- name: Build Electron App for Linux
|
||||
run: npm run build:linux
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
||||
|
||||
- name: Upload Linux artifact
|
||||
uses: actions/upload-artifact@v3.0.0
|
||||
with:
|
||||
name: linux-release
|
||||
path: release/*/*.*
|
||||
name: SPlayer-Linux
|
||||
path: dist/*.AppImage
|
||||
|
||||
create-release:
|
||||
needs: [build-windows, build-macos, build-linux]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Download all artifacts
|
||||
uses: actions/download-artifact@v3.0.0
|
||||
|
||||
- name: Create a release
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
with:
|
||||
draft: true
|
||||
files: release/linux-release/*.*
|
||||
files: "dist/**"
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user