diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 325161d..f2d332d 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -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) diff --git a/src/utils/Player.js b/src/utils/Player.js index 6a7c78e..1e515be 100644 --- a/src/utils/Player.js +++ b/src/utils/Player.js @@ -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; diff --git a/vue.config.js b/vue.config.js index 3f356b8..095d97d 100644 --- a/vue.config.js +++ b/vue.config.js @@ -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", },