1
0
mirror of https://github.com/aziascreations/BakaShrot.git synced 2026-11-23 20:58:46 +01:00

Moved the workspace to the root, Added the build scripts, ARM64 releases and the Docker image

Source/'s content is at the root now, Source/README.md merged into
readme.md. Scripts at the root: build.ps1, test.ps1 (was check.ps1),
release.ps1 (over release.py) and clean.ps1. Everything is LF except the
.ps1 files.

CI (.github/workflows/ci.yml) runs on a v* tag or by hand: the checks,
then a release for Windows x64 and ARM64 and Linux x64 and ARM64, each on
its own kind of runner, the archives kept as artifacts. release.py names
the platform from the Rust host, make_wheel.py tags the wheel from the
library's header.

docker/: the server's image (built from source, the tools beside it, uid
10001), compose.yml and test.sh. CI builds amd64 and arm64 natively,
checks them, and on a tag pushes them to ghcr.io with an index for
<version> and latest.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-15 01:13:44 +01:00
parent 17ec69c03c
commit 5045019df4
93 changed files with 634 additions and 277 deletions
+11 -8
View File
@@ -9,8 +9,8 @@ between peers by name. Clients: a C DLL, CLI tools, a Python module. An
- `revamp.md`: why, what's decided, what's proposed and open, the plan and
its status. Read it first.
- `Source/`: the implementation (`Source/README.md`: layout, commands,
conventions; `Source/docs/`: designs, `protocol.md` first,
- The implementation is the Cargo workspace at the root (`readme.md`:
layout, scripts, conventions; `docs/`: designs, `protocol.md` first,
`known-issues.md` for what's left).
- The old PureBasic implementation was removed on 2026-11-15: it's in git
history, `OldSource/` up to commit `68966a8`. Paths starting with
@@ -20,10 +20,13 @@ between peers by name. Clients: a C DLL, CLI tools, a Python module. An
- Rust via rustup, in `%USERPROFILE%\.cargo\bin`, which **isn't on every
shell's PATH**: prepend it (`export PATH="$HOME/.cargo/bin:$PATH"` in
bash; `check.ps1` does it itself). The toolchain is pinned
(`Source/rust-toolchain.toml`, 1.100.0, MSVC; Visual Studio 18 has the
bash; the `.ps1` scripts and `release.py` do it themselves). The toolchain is pinned
(`rust-toolchain.toml`, 1.100.0, MSVC; Visual Studio 18 has the
linker).
- `Source\check.ps1` runs what CI runs; it must pass before a step is done.
- `test.ps1` runs what CI runs; it must pass before a step is done
(`build.ps1`, `release.ps1`, `clean.ps1` beside it, see `readme.md`).
Run them by absolute path (`-File <repo>\test.ps1`): a relative one
fails when the shell's folder differs.
## Working rules
@@ -33,10 +36,10 @@ between peers by name. Clients: a C DLL, CLI tools, a Python module. An
- **Decisions go in `revamp.md`**: moved to "Decided" only when the owner
decides, with the date.
- **Use existing crates** rather than reimplementing (MessagePack is `rmp-serde`).
- **Files mix CRLF and LF:** edits must keep each file's line endings
(`Source/` is LF, the docs at the root mostly CRLF).
- **Line endings:** LF everywhere, `.ps1` CRLF (`.gitattributes`); edits
must keep them.
- **Bash tool heredocs collapse `\\`:** write edit scripts to files, or use
the Edit tool.
- **Run exes from a build folder** (`Source\target\`):
- **Run exes from a build folder** (`target\`):
the antivirus blocks them in temp folders.
- **Generated keys and certificates never go in git** (`target/`).