build: rename server runtime binaries
This commit is contained in:
+12
-12
@@ -43,7 +43,7 @@ rustPlatform.buildRustPackage rec {
|
||||
filter = sourceFilter;
|
||||
};
|
||||
|
||||
cargoHash = "sha256-iZaTREhL/aLixn67A1+Gi9opqh2j/yyFuGMyBBvuATM=";
|
||||
cargoHash = "sha256-R33Ty4414wGkqnwCt08zbDQbVu9ggMC5I3ZawgloNT0=";
|
||||
|
||||
depsExtraArgs = {
|
||||
# Older fetchCargoVendor utilities used crates.io's API download endpoint,
|
||||
@@ -92,8 +92,8 @@ rustPlatform.buildRustPackage rec {
|
||||
];
|
||||
|
||||
postBuild = ''
|
||||
cargo build --offline --profile release -p yoi-workspace-server --bin yoi-workspace-server
|
||||
cargo build --offline --profile release -p worker-runtime --bin worker-runtime-rest-server --features ws-server,fs-store
|
||||
cargo build --offline --profile release -p yoi-workspace-server --bin yoi-server
|
||||
cargo build --offline --profile release -p worker-runtime --bin yoi-runtime --features ws-server,fs-store
|
||||
'';
|
||||
|
||||
# The package check is a credential-free install smoke check below. Running the
|
||||
@@ -105,16 +105,16 @@ rustPlatform.buildRustPackage rec {
|
||||
runHook preInstall
|
||||
|
||||
yoi_bin=$(find . -type f -name yoi | head -n 1)
|
||||
workspace_server_bin=$(find . -type f -name yoi-workspace-server | head -n 1)
|
||||
worker_runtime_bin=$(find . -type f -name worker-runtime-rest-server | head -n 1)
|
||||
workspace_server_bin=$(find . -type f -name yoi-server | head -n 1)
|
||||
worker_runtime_bin=$(find . -type f -name yoi-runtime | head -n 1)
|
||||
if [ -z "$yoi_bin" ] || [ -z "$workspace_server_bin" ] || [ -z "$worker_runtime_bin" ]; then
|
||||
echo "built binaries not found" >&2
|
||||
find . -maxdepth 6 -type f \( -name yoi -o -name yoi-workspace-server -o -name worker-runtime-rest-server \) -print >&2
|
||||
find . -maxdepth 6 -type f \( -name yoi -o -name yoi-server -o -name yoi-runtime \) -print >&2
|
||||
exit 1
|
||||
fi
|
||||
install -Dm755 "$yoi_bin" "$out/bin/yoi"
|
||||
install -Dm755 "$workspace_server_bin" "$out/bin/yoi-workspace-server"
|
||||
install -Dm755 "$worker_runtime_bin" "$out/bin/worker-runtime-rest-server"
|
||||
install -Dm755 "$workspace_server_bin" "$out/bin/yoi-server"
|
||||
install -Dm755 "$worker_runtime_bin" "$out/bin/yoi-runtime"
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
@@ -125,10 +125,10 @@ rustPlatform.buildRustPackage rec {
|
||||
|
||||
"$out/bin/yoi" worker --help >/dev/null
|
||||
test -x "$out/bin/yoi"
|
||||
test -x "$out/bin/yoi-workspace-server"
|
||||
test -x "$out/bin/worker-runtime-rest-server"
|
||||
"$out/bin/yoi-workspace-server" --help >/dev/null
|
||||
"$out/bin/worker-runtime-rest-server" --help >/dev/null
|
||||
test -x "$out/bin/yoi-server"
|
||||
test -x "$out/bin/yoi-runtime"
|
||||
"$out/bin/yoi-server" --help >/dev/null
|
||||
"$out/bin/yoi-runtime" --help >/dev/null
|
||||
test ! -e "$out/bin/yoi-pod"
|
||||
test ! -e "$out/share/yoi/resources"
|
||||
if "$out/bin/yoi" --session not-a-uuid 2>yoi.err; then
|
||||
|
||||
Reference in New Issue
Block a user