Package Details: apple-music-electron 2.3.0-1

Git Clone URL: https://aur.archlinux.org/apple-music-electron.git (read-only, click to copy)
Package Base: apple-music-electron
Description: Electron wrapper for Apple Music
Upstream URL: https://github.com/cryptofyre/Apple-Music-Electron
Keywords: apple music
Licenses: MIT
Submitter: giantdwarf
Maintainer: giantdwarf
Last Packager: giantdwarf
Votes: 3
Popularity: 0.88
First Submitted: 2020-11-09 22:31
Last Updated: 2021-07-02 03:01

Dependencies (3)

Required by (0)

Sources (2)

Pinned Comments

giantdwarf commented on 2021-06-28 22:01

Apologies for the recent buggy pushes, I'm transitioning this package from my old repo to the more updated version made by cryptofyre. The difference in naming caused some bugs, thanks @primalmotion for pointing that out. The current version should work smoothly but if you installed any of the buggier releases you may have to manually delete the Apple-Music-Electron.desktop file (in caps) from /usr/share/applications, otherwise you may see two launchers since the newer version keeps it in lowercase.

Latest Comments

1 2 Next › Last »

perseoGI commented on 2021-07-28 12:05

Ey the icon path is not correct

install: cannot stat '~/.cache/paru/clone/apple-music-electron/src/Apple-Music-Electron-2.3.0/assets/icon.png': No such file or directory

New path: resources/icons/icon.png And please, update to v2.4.0

cryptofyre commented on 2021-07-26 17:13

Apple Music Electron v2.4.0 is officially out. If you could update the AUR package that would be great! Also we started using submodules so make sure to run git clone recursively! Thanks again!

fridtjof commented on 2021-07-04 11:03

The icon path changed with 2.3.0 - it is now resources/icons/icon.png instead of assets/icon.png

giantdwarf commented on 2021-06-29 02:56

Git has been added as a build dependency.

primalmotion commented on 2021-06-29 01:44

I confirm that it now works great again. Thanks!

lmartinez-mirror commented on 2021-06-28 22:03

This package needs git in its makedepends. In a clean chroot:

==> Starting build()...
yarn install v1.22.10
info No lockfile found.
[1/4] Resolving packages...
error Couldn't find the binary git
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
==> ERROR: A failure occurred in build().
    Aborting...

giantdwarf commented on 2021-06-28 22:02

I decided to copy the desktop file to /usr/share/applications/apple-music-electron.desktop instead of retaining the uppercase to maintain consistency with the other .desktop files in that directory which are all in lowercase as well.

giantdwarf commented on 2021-06-28 22:01

Apologies for the recent buggy pushes, I'm transitioning this package from my old repo to the more updated version made by cryptofyre. The difference in naming caused some bugs, thanks @primalmotion for pointing that out. The current version should work smoothly but if you installed any of the buggier releases you may have to manually delete the Apple-Music-Electron.desktop file (in caps) from /usr/share/applications, otherwise you may see two launchers since the newer version keeps it in lowercase.

primalmotion commented on 2021-06-26 18:44

seems the pkgname being uppercased screws up the install. I had to patch the repo like so to get it installed:

diff --git a/PKGBUILD b/PKGBUILD
index 9026dcb..2dbd3bb 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,5 +1,6 @@
 # Maintainer: Bryce Hoehn <17hoehbr@gmail.com>
-pkgname=Apple-Music-Electron
+pkgname=apple-music-electron
+_pkgname=Apple-Music-Electron
 pkgver=2.0.0
 pkgrel=1
 pkgdesc="Electron wrapper for Apple Music"
@@ -10,11 +11,11 @@ depends=('libxss')
 makedepends=("yarn")
 source=(
   "${pkgname}-${pkgver}.tar.gz::$url/archive/v${pkgver}.tar.gz"
-  "${pkgname}.desktop"
+  "${_pkgname}.desktop"
 )

 build() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
+  cd "${srcdir}/${_pkgname}-${pkgver}"
   yarn install --non-interactive --pure-lockfile --cache-folder "${srcdir}/yarn-cache"
   if [[ ${CARCH} == "aarch64" ]]; then
     yarn electron-builder build --arm64 --linux dir
@@ -28,11 +29,11 @@ build() {
 }

 package() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
+  cd "${srcdir}/${_pkgname}-${pkgver}"
   install -dm755 "${pkgdir}/opt" "${pkgdir}/usr/bin"
-  cp -r --preserve=mode "${srcdir}/${pkgname}-${pkgver}/dist/linux-unpacked" "${pkgdir}/opt/${pkgname}"
-  install -Dm644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
-  install -Dm644 "${srcdir}/${pkgname}-${pkgver}/assets/icon.png" "${pkgdir}/usr/share/icons/hicolor/256x256/apps/${pkgname}.png"
+  cp -r --preserve=mode "${srcdir}/${_pkgname}-${pkgver}/dist/linux-unpacked" "${pkgdir}/opt/${pkgname}"
+  install -Dm644 "${srcdir}/${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
+  install -Dm644 "${srcdir}/${_pkgname}-${pkgver}/assets/icon.png" "${pkgdir}/usr/share/icons/hicolor/256x256/apps/${_pkgname}.png"
   ln -sf "/opt/${pkgname}/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
 }
 sha256sums=('d9ed59a7dfc3eb8e288c8c1636076ff57ffb8d012521f121587fccf81e28499b'
diff --git a/apple-music-electron.desktop b/apple-music-electron.desktop
deleted file mode 100755
index 032df99..0000000
--- a/apple-music-electron.desktop
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/usr/bin/env xdg-open
-[Desktop Entry]
-Type=Application
-Name=Apple Music
-Comment=Electron wrapper for Apple Music
-GenericName=Apple Music
-Exec=apple-music-electron
-Icon=apple-music-electron
-Categories=AudioVideo;Audio;
-Terminal=false
-StartupNotify=true
-Version=1.3.0

giantdwarf commented on 2021-05-27 20:29

@miracleorange I added libxss as a dependency so hopefully it works now.