Files
phoebench/build-all.sh
T
2026-09-01 11:47:10 +02:00

25 lines
991 B
Bash
Executable File

#!/usr/bin/env bash
set -e
export PHOEBENCH_BUILD_RELEASE='true'
./gradlew :clients:cli:shadowJar
./gradlew :clients:compose:createDistributable
./gradlew :clients:compose:wasmJsBrowserProductionWebpack
./gradlew :server:installDist
mkdir -p artifacts
cp clients/cli/build/libs/phoebench-cli.jar artifacts/
(cd clients/compose/build/compose/binaries/main/app/com.jaytux.phoebench.clients && zip phoebench-linux.zip -r bin/ lib/)
cp clients/compose/build/compose/binaries/main/app/com.jaytux.phoebench.clients/phoebench-linux.zip artifacts/
mkdir -p artifacts/wasm
cp -r clients/compose/build/kotlin-webpack/wasmJs/productionExecutable/* clients/compose/build/processedResources/wasmJs/main/* artifacts/wasm
(cd artifacts/wasm && rm config.json && zip phoebench-wasm.zip -r ./*)
mv artifacts/wasm/phoebench-wasm.zip artifacts/
rm -fr artifacts/wasm
(cd server/build/install/server/ && zip phoebench-server.zip -r bin/ lib/)
cp server/build/install/server/phoebench-server.zip artifacts