fix: bugs

This commit is contained in:
qier222 2021-03-07 23:40:06 +08:00
parent 2cf99fc1e6
commit 0adae696cf
No known key found for this signature in database
GPG Key ID: 9C85007ED905F14D
3 changed files with 37 additions and 9 deletions

View File

@ -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)

View File

@ -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;

View File

@ -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",
},