mirror of
https://github.com/qier222/YesPlayMusic.git
synced 2024-11-24 22:53:00 +08:00
fix: bugs
This commit is contained in:
parent
2cf99fc1e6
commit
0adae696cf
8
.github/workflows/build.yaml
vendored
8
.github/workflows/build.yaml
vendored
|
@ -19,14 +19,14 @@ jobs:
|
|||
with:
|
||||
node-version: 14.16.0
|
||||
|
||||
- name: Install RPM & Pacman (only on Linux)
|
||||
- name: Install RPM & Pacman (on Ubuntu)
|
||||
if: runner.os == 'Linux'
|
||||
run: |
|
||||
sudo apt-get update &&
|
||||
sudo apt-get install --no-install-recommends -y rpm &&
|
||||
sudo apt-get install --no-install-recommends -y bsdtar
|
||||
|
||||
- name: Install Snapcraft (only on Ubuntu)
|
||||
- name: Install Snapcraft (on Ubuntu)
|
||||
uses: samuelmeuli/action-snapcraft@v1
|
||||
if: startsWith(matrix.os, 'ubuntu')
|
||||
with:
|
||||
|
@ -34,6 +34,10 @@ jobs:
|
|||
|
||||
- name: Build/release Electron app
|
||||
uses: samuelmeuli/action-electron-builder@v1.6.0
|
||||
env:
|
||||
VUE_APP_ELECTRON_API_URL: /api
|
||||
VUE_APP_ELECTRON_API_URL_DEV: http://127.0.0.1:10754
|
||||
VUE_APP_ENABLE_SENTRY: true
|
||||
with:
|
||||
# GitHub token, automatically provided to the action
|
||||
# (No need to define this secret in the repo settings)
|
||||
|
|
|
@ -440,9 +440,12 @@ export default class {
|
|||
this._isPersonalFM = true;
|
||||
if (!this._enabled) this._enabled = true;
|
||||
if (this._currentTrack.id !== this._personalFMTrack.id) {
|
||||
this._replaceCurrentTrack(this._personalFMTrack.id);
|
||||
this._replaceCurrentTrack(this._personalFMTrack.id).then(() =>
|
||||
this.playOrPause()
|
||||
);
|
||||
} else {
|
||||
this.playOrPause();
|
||||
}
|
||||
this.playOrPause();
|
||||
}
|
||||
moveToFMTrash() {
|
||||
this._isPersonalFM = true;
|
||||
|
|
|
@ -83,10 +83,6 @@ module.exports = {
|
|||
target: "dmg",
|
||||
arch: ["x64", "arm64", "universal"],
|
||||
},
|
||||
{
|
||||
target: "zip",
|
||||
arch: ["x64", "arm64", "universal"],
|
||||
},
|
||||
],
|
||||
artifactName: "${productName}-${os}-${version}-${arch}.${ext}",
|
||||
category: "public.app-category.music",
|
||||
|
@ -108,7 +104,32 @@ module.exports = {
|
|||
publish: ["github"],
|
||||
},
|
||||
linux: {
|
||||
target: ["AppImage", "tar.gz", "deb", "rpm", "snap", "pacman"],
|
||||
target: [
|
||||
{
|
||||
target: "AppImage",
|
||||
arch: ["x64"],
|
||||
},
|
||||
{
|
||||
target: "tar.gz",
|
||||
arch: ["x64"],
|
||||
},
|
||||
{
|
||||
target: "deb",
|
||||
arch: ["x64"],
|
||||
},
|
||||
{
|
||||
target: "rpm",
|
||||
arch: ["x64"],
|
||||
},
|
||||
{
|
||||
target: "snap",
|
||||
arch: ["x64"],
|
||||
},
|
||||
{
|
||||
target: "pacman",
|
||||
arch: ["x64"],
|
||||
},
|
||||
],
|
||||
category: "Music",
|
||||
icon: "./build/icon.icns",
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue
Block a user