mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-24 05:06:28 +00:00
Merge pull request #300 from rustfs/dev_damon_ps1
fix: download rustfs-console-latest.zip first than build.
This commit is contained in:
+7
-8
@@ -1,5 +1,12 @@
|
|||||||
#!/bin/bash -e
|
#!/bin/bash -e
|
||||||
|
|
||||||
|
# check ./rustfs/static/index.html not exists
|
||||||
|
if [ ! -f ./rustfs/static/index.html ]; then
|
||||||
|
echo "Downloading rustfs-console-latest.zip"
|
||||||
|
# download rustfs-console-latest.zip do not show log
|
||||||
|
curl -s -L "https://dl.rustfs.com/artifacts/console/rustfs-console-latest.zip" -o tempfile.zip && unzip -q -o tempfile.zip -d ./rustfs/static && rm tempfile.zip
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -z "$SKIP_BUILD" ]; then
|
if [ -z "$SKIP_BUILD" ]; then
|
||||||
cargo build -p rustfs --bins
|
cargo build -p rustfs --bins
|
||||||
fi
|
fi
|
||||||
@@ -34,12 +41,4 @@ if [ -n "$1" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# check ./rustfs/static/index.html not exists
|
|
||||||
if [ ! -f ./rustfs/static/index.html ]; then
|
|
||||||
echo "Downloading rustfs-console-latest.zip"
|
|
||||||
# download rustfs-console-latest.zip do not show log
|
|
||||||
curl -s -L "https://dl.rustfs.com/artifacts/console/rustfs-console-latest.zip" -o tempfile.zip && unzip -q -o tempfile.zip -d ./rustfs/static && rm tempfile.zip
|
|
||||||
fi
|
|
||||||
|
|
||||||
cargo run --bin rustfs
|
cargo run --bin rustfs
|
||||||
Reference in New Issue
Block a user