Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save masayukig/39d55839eef89ae9bea2992f0491cf1f to your computer and use it in GitHub Desktop.
Save masayukig/39d55839eef89ae9bea2992f0491cf1f to your computer and use it in GitHub Desktop.
Make and install spotify-client with AppImage recipe on openSUSE Tumbleweed

Install spotify-client with AppImage recipe on openSUSE Tumbleweed

  1. clone AppImage repo
$ git clone https://github.com/AppImage/AppImages
  1. Remove apt-get command execution from pkg2appimage.
$ git diff
diff --git a/pkg2appimage b/pkg2appimage
index c9cfa15..162da44 100755
--- a/pkg2appimage
+++ b/pkg2appimage
@@ -246,15 +246,6 @@ if [ ! -z "${_ingredients_dist}" ] ; then
     INSTALL=${_ingredients_packages[@]}
   fi

-  apt-get -o Acquire::AllowInsecureRepositories=true -o Acquire::Languages="none" -o Acquire::AllowDowngradeToInsecureRepositories=true $OPTIONS update || true
-  URLS=$(apt-get --allow-unauthenticated -o Apt::Get::AllowUnauthenticated=true $OPTIONS -y install --print-uris $INSTALL | cut -d "'" -f 2 | grep -e "^http")
-  if which aria2c &>/dev/null; then
-    dltool=aria2c
-  else
-    dltool=wget
-  fi
-
-  $dltool -c -i- <<<"$URLS"
 fi

 if [ ! -z "${_ingredients_post_script[0]}" ] ; then
  1. Make spotify AppImage
$ bash -ex ./pkg2appimage recipes/Spotify.yml
  1. Run the image
$ ./out/Spotify-1.0.89.313.g34a58dea.5.glibc2.14-x86_64.AppImage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment