diff --git a/Cargo.toml b/Cargo.toml index 415b803f..cbb75d08 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,23 +18,3 @@ opt-level = 2 [profile.dev.package.libsamplerate] opt-level = 2 - -[package.metadata.cross.target.x86_64-unknown-linux-gnu] -pre-build = [ - "dpkg --add-architecture $CROSS_DEB_ARCH", - """apt-get update && apt-get --assume-yes install \ - libgtk-3-dev:$CROSS_DEB_ARCH \ - libssl-dev:$CROSS_DEB_ARCH \ - libasound2-dev:$CROSS_DEB_ARCH - """ -] - -[package.metadata.cross.target.aarch64-unknown-linux-gnu] -pre-build = [ - "dpkg --add-architecture $CROSS_DEB_ARCH", - """apt-get update && apt-get --assume-yes install \ - libgtk-3-dev:$CROSS_DEB_ARCH \ - libssl-dev:$CROSS_DEB_ARCH \ - libasound2-dev:$CROSS_DEB_ARCH - """ -] \ No newline at end of file diff --git a/psst-gui/Cargo.toml b/psst-gui/Cargo.toml index 07f4604d..c5b215ff 100644 --- a/psst-gui/Cargo.toml +++ b/psst-gui/Cargo.toml @@ -66,3 +66,23 @@ short_description = "Fast Spotify client with native GUI" long_description = """ Small and efficient graphical music player for Spotify network. """ + +[package.metadata.cross.target.x86_64-unknown-linux-gnu] +pre-build = [ + "dpkg --add-architecture $CROSS_DEB_ARCH", + """apt-get update && apt-get --assume-yes install \ + libgtk-3-dev:$CROSS_DEB_ARCH \ + libssl-dev:$CROSS_DEB_ARCH \ + libasound2-dev:$CROSS_DEB_ARCH + """ +] + +[package.metadata.cross.target.aarch64-unknown-linux-gnu] +pre-build = [ + "dpkg --add-architecture $CROSS_DEB_ARCH", + """apt-get update && apt-get --assume-yes install \ + libgtk-3-dev:$CROSS_DEB_ARCH \ + libssl-dev:$CROSS_DEB_ARCH \ + libasound2-dev:$CROSS_DEB_ARCH + """ +]