mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-16 21:28:06 +00:00
fix: bugs
This commit is contained in:
parent
2cf99fc1e6
commit
0adae696cf
3 changed files with 37 additions and 9 deletions
8
.github/workflows/build.yaml
vendored
8
.github/workflows/build.yaml
vendored
|
|
@ -19,14 +19,14 @@ jobs:
|
||||||
with:
|
with:
|
||||||
node-version: 14.16.0
|
node-version: 14.16.0
|
||||||
|
|
||||||
- name: Install RPM & Pacman (only on Linux)
|
- name: Install RPM & Pacman (on Ubuntu)
|
||||||
if: runner.os == 'Linux'
|
if: runner.os == 'Linux'
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update &&
|
sudo apt-get update &&
|
||||||
sudo apt-get install --no-install-recommends -y rpm &&
|
sudo apt-get install --no-install-recommends -y rpm &&
|
||||||
sudo apt-get install --no-install-recommends -y bsdtar
|
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
|
uses: samuelmeuli/action-snapcraft@v1
|
||||||
if: startsWith(matrix.os, 'ubuntu')
|
if: startsWith(matrix.os, 'ubuntu')
|
||||||
with:
|
with:
|
||||||
|
|
@ -34,6 +34,10 @@ jobs:
|
||||||
|
|
||||||
- name: Build/release Electron app
|
- name: Build/release Electron app
|
||||||
uses: samuelmeuli/action-electron-builder@v1.6.0
|
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:
|
with:
|
||||||
# GitHub token, automatically provided to the action
|
# GitHub token, automatically provided to the action
|
||||||
# (No need to define this secret in the repo settings)
|
# (No need to define this secret in the repo settings)
|
||||||
|
|
|
||||||
|
|
@ -440,9 +440,12 @@ export default class {
|
||||||
this._isPersonalFM = true;
|
this._isPersonalFM = true;
|
||||||
if (!this._enabled) this._enabled = true;
|
if (!this._enabled) this._enabled = true;
|
||||||
if (this._currentTrack.id !== this._personalFMTrack.id) {
|
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() {
|
moveToFMTrash() {
|
||||||
this._isPersonalFM = true;
|
this._isPersonalFM = true;
|
||||||
|
|
|
||||||
|
|
@ -83,10 +83,6 @@ module.exports = {
|
||||||
target: "dmg",
|
target: "dmg",
|
||||||
arch: ["x64", "arm64", "universal"],
|
arch: ["x64", "arm64", "universal"],
|
||||||
},
|
},
|
||||||
{
|
|
||||||
target: "zip",
|
|
||||||
arch: ["x64", "arm64", "universal"],
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
artifactName: "${productName}-${os}-${version}-${arch}.${ext}",
|
artifactName: "${productName}-${os}-${version}-${arch}.${ext}",
|
||||||
category: "public.app-category.music",
|
category: "public.app-category.music",
|
||||||
|
|
@ -108,7 +104,32 @@ module.exports = {
|
||||||
publish: ["github"],
|
publish: ["github"],
|
||||||
},
|
},
|
||||||
linux: {
|
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",
|
category: "Music",
|
||||||
icon: "./build/icon.icns",
|
icon: "./build/icon.icns",
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue