Skip to content
This repository has been archived by the owner on Apr 18, 2022. It is now read-only.

Commit

Permalink
Add mac support for publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
CleanCut committed Aug 16, 2020
1 parent d5b0a3e commit d6a75df
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions scripts/publish.sh
@@ -1,6 +1,11 @@
#! /bin/bash
set -e

BACKEND="vulkan"
if [[ `uname` == "Darwin" ]] ; then
BACKEND="metal"
fi

# Wave one -- crates without `amethyst_rendy` dependency.
crates=(
amethyst_config
Expand Down Expand Up @@ -46,9 +51,9 @@ do

if test "${crate}" = "amethyst"
then
cargo publish --features "vulkan"
cargo publish --features $BACKEND
else
(cd $crate && cargo publish --features "vulkan")
(cd $crate && cargo publish --features $BACKEND)
fi

# Rate limit ourselves as `crates.io` takes a while to update cache.
Expand Down

0 comments on commit d6a75df

Please sign in to comment.