Skip to content

Commit 5d8d8b0

Browse files
committed
use ssh url
for city-game
1 parent a0673f2 commit 5d8d8b0

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

scripts/build-subprojects.sh

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,20 @@ HERE="$(dirname "${BASH_SOURCE[0]}")"
66
cd "$HERE"
77
REPO_DIR="$(git rev-parse --show-toplevel)"
88

9-
subproject() {
10-
proj="$1"
11-
dir="$(mktemp -d -t "$proj".XXX)"
12-
echo "Building subproject [directory=$dir]"
13-
git clone "https://github.com/elihunter173/$proj.git" "$dir"
14-
cd "$dir"
15-
}
16-
17-
subproject asteroids-3d
9+
ASTEROIDS="$(mktemp -d -t asteroids-3d.XXX)"
10+
echo "Building asteroids-3d [directory=$ASTEROIDS]"
11+
git clone https://github.com/elihunter173/asteroids-3d.git "$ASTEROIDS"
12+
cd "$ASTEROIDS"
1813
npm install --production
1914
npm run build
2015
cp -r ./dist "$REPO_DIR/static/asteroids"
2116

17+
CITY_GAME="$(mktemp -d -t city-game.XXX)"
18+
echo "Building city-game [directory=$CITY_GAME]"
2219
eval `ssh-agent -s`
2320
ssh-add - <<< "$CITY_GAME_PRIVATE_DEPLOY_KEY"
24-
subproject city-game
21+
git clone git@github.com:elihunter173/city-game.git "$CITY_GAME"
22+
cd "$CITY_GAME"
2523
cargo build --release --target wasm32-unknown-unknown
2624
wasm-bindgen --no-typescript --target web \
2725
--out-dir ./out/ \

0 commit comments

Comments
 (0)