summaryrefslogtreecommitdiffstats
path: root/web/README.md
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--web/README.md25
1 files changed, 13 insertions, 12 deletions
diff --git a/web/README.md b/web/README.md
index 5434e28..5de180d 100644
--- a/web/README.md
+++ b/web/README.md
@@ -31,23 +31,24 @@ zagan-bet-server-<version>-<platform>-<arch>
31 31
32## Publishing a build 32## Publishing a build
33 33
34From the repository root, with the version taken from `Cargo.toml`: 34From the repository root:
35 35
36```sh 36```sh
37V=$(sed -n 's/^version = "\(.*\)"/\1/p' Cargo.toml | head -1) 37./scripts/publish.sh
38```
38 39
39cargo build --release --target x86_64-unknown-linux-gnu 40It reads the version from `Cargo.toml`, builds all four artifacts and installs
40cargo build --release --bin client --no-default-features --target i686-unknown-linux-gnu 41them under `web/bin` with the names above. Override the destination with
41cargo build --release --bin client --target x86_64-pc-windows-gnu 42`DEST=/srv/www/bin ./scripts/publish.sh`.
42 43
43cp "target/x86_64-unknown-linux-gnu/release/server" "web/bin/server/zagan-bet-server-$V-linux-x86_64" 44Builds are per target triple, so these must be installed:
44cp "target/x86_64-unknown-linux-gnu/release/client" "web/bin/client/zagan-bet-client-$V-linux-x86_64" 45`x86_64-unknown-linux-gnu`, `i686-unknown-linux-gnu` and
45cp "target/i686-unknown-linux-gnu/release/client" "web/bin/client/zagan-bet-client-$V-linux-i686" 46`x86_64-pc-windows-gnu`, plus the mingw linker for the Windows build. Client
46cp "target/x86_64-pc-windows-gnu/release/client.exe" "web/bin/client/zagan-bet-client-$V-windows-x86_64.exe" 47builds always pass `--no-default-features`, which drops the server's OpenSSL
47``` 48dependency; the client is rustls-only.
48 49
49`--no-default-features` drops the server's OpenSSL dependency, which is what 50Cargo itself cannot produce these names: it always writes
50the 32-bit client build would otherwise fail on. 51`target/<triple>/release/<bin>`. The script renames after each build.
51 52
52## Preview locally 53## Preview locally
53 54