4 Commits

Author SHA1 Message Date
f202410f0d Include license and readme in build output
This is probably required for GPL compliance :-D
2026-02-03 23:06:30 -05:00
9dcbc44aa1 ReleaseSmall by default 2026-02-03 22:50:24 -05:00
d1fdf0c1be Automatically publish binaries to nextcloud
Updated the releases directory to use a specific account for releases
2026-02-03 22:44:53 -05:00
f13221133d Set dev version to 0.0.0 2026-02-01 21:10:50 -05:00
4 changed files with 36 additions and 2 deletions

View File

@@ -0,0 +1,26 @@
when:
- event: ["push", "pull_request", "manual"]
branch: ["dev", "master", "test*"]
tag: ["v*"]
engine: "nixery"
dependencies:
nixpkgs:
- rclone
git+https://github.com/mitchellh/zig-overlay:
- master
steps:
- name: "Build"
command: "zig build -Doptimize=ReleaseSmall -Dcpu=baseline"
- name: "Publish"
command: |
rclone sync ./zig-out \
--webdav-url "$RELEASE_NEXTCLOUD_HOST/remote.php/dav/files/$RELEASE_NEXTCLOUD_USER/" \
--webdav-user "$RELEASE_NEXTCLOUD_USER" \
--webdav-pass "$RELEASE_NEXTCLOUD_PASS" \
--webdav-vendor nextcloud \
:webdav:"zaprus/zaprus-$TANGLED_REF_NAME" \
-q

View File

@@ -3,4 +3,9 @@
This is an implementation of the [Saprus protocol](https://gitlab.com/c2-games/red-team/saprus) in Zig. This is an implementation of the [Saprus protocol](https://gitlab.com/c2-games/red-team/saprus) in Zig.
It is useful for developing clients either in Zig, or in any other language using the C bindings. It is useful for developing clients either in Zig, or in any other language using the C bindings.
Binary releases can be downloaded [here](https://cloud.zambito.xyz/s/cNaLeDz38W5ZcZs). Binary releases can be downloaded [here](https://cloud.zambito.xyz/s/7jJPTm68Zp3mN8F).
The code for this can be found here:
- https://tangled.org/zambyte.robbyzambito.me/zaprus
- https://git.robbyzambito.me/zaprus

View File

@@ -7,6 +7,9 @@ const std = @import("std");
// build runner to parallelize the build automatically (and the cache system to // build runner to parallelize the build automatically (and the cache system to
// know when a step doesn't need to be re-run). // know when a step doesn't need to be re-run).
pub fn build(b: *std.Build) void { pub fn build(b: *std.Build) void {
// Ensure the license is included in the output directory
b.installFile("LICENSE.md", "LICENSE.md");
b.installFile("README.md", "README.md");
// Standard target options allow the person running `zig build` to choose // Standard target options allow the person running `zig build` to choose
// what target to build for. Here we do not override the defaults, which // what target to build for. Here we do not override the defaults, which
// means any target is allowed, and the default is native. Other options // means any target is allowed, and the default is native. Other options

View File

@@ -10,7 +10,7 @@
// This is a [Semantic Version](https://semver.org/). // This is a [Semantic Version](https://semver.org/).
// In a future version of Zig it will be used for package deduplication. // In a future version of Zig it will be used for package deduplication.
.version = "0.2.0", .version = "0.0.0",
// Together with name, this represents a globally unique package // Together with name, this represents a globally unique package
// identifier. This field is generated by the Zig toolchain when the // identifier. This field is generated by the Zig toolchain when the