diff --git a/Cargo.toml b/Cargo.toml index 235f3777..bdb2286b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,3 +13,21 @@ opt-level = 2 [profile.dev.package.libsamplerate] opt-level = 2 + +[package.metadata.cross.target.x86_64-unknown-linux-gnu] +image = "ghcr.io/cross-rs/{{TARGET}}:edge" +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] +image = "ghcr.io/cross-rs/{{TARGET}}:edge" +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 + """] diff --git a/psst-gui/Cargo.toml b/psst-gui/Cargo.toml index bdd507e2..6665fa70 100644 --- a/psst-gui/Cargo.toml +++ b/psst-gui/Cargo.toml @@ -75,7 +75,7 @@ long_description = """ Small and efficient graphical music player for Spotify network. """ -[workspace.metadata.cross.target.x86_64-unknown-linux-gnu] +[package.metadata.cross.target.x86_64-unknown-linux-gnu] image = "ghcr.io/cross-rs/{{TARGET}}:edge" pre-build = ["dpkg --add-architecture $CROSS_DEB_ARCH", """ apt-get update && apt-get --assume-yes install \ @@ -84,7 +84,7 @@ pre-build = ["dpkg --add-architecture $CROSS_DEB_ARCH", """ libasound2-dev:$CROSS_DEB_ARCH """] -[workspace.metadata.cross.target.aarch64-unknown-linux-gnu] +[package.metadata.cross.target.aarch64-unknown-linux-gnu] image = "ghcr.io/cross-rs/{{TARGET}}:edge" pre-build = ["dpkg --add-architecture $CROSS_DEB_ARCH", """ apt-get update && apt-get --assume-yes install \