Compare commits
2 commits
Author | SHA1 | Date | |
---|---|---|---|
fb5dc1076a | |||
ba80650f03 |
2 changed files with 30 additions and 1 deletions
|
@ -20,7 +20,7 @@ there was a better way to check a boolean result lol
|
||||||
- [Windows](https://forge.joshwel.co/mark/sidestepper/releases/download/latest/sidestepper-windows-x86_64.exe)
|
- [Windows](https://forge.joshwel.co/mark/sidestepper/releases/download/latest/sidestepper-windows-x86_64.exe)
|
||||||
- [Linux (static binary, musl)](https://forge.joshwel.co/mark/sidestepper/releases/download/latest/sidestepper-linux-x86_64)
|
- [Linux (static binary, musl)](https://forge.joshwel.co/mark/sidestepper/releases/download/latest/sidestepper-linux-x86_64)
|
||||||
- [macOS universal](https://forge.joshwel.co/mark/sidestepper/releases/download/latest/sidestepper-macos-universal)
|
- [macOS universal](https://forge.joshwel.co/mark/sidestepper/releases/download/latest/sidestepper-macos-universal)
|
||||||
- [macOS x86_64](https://forge.joshwel.co/mark/sidestepper/releases/download/latest/sidestepper-macos-x86_84)
|
- [macOS x86_64](https://forge.joshwel.co/mark/sidestepper/releases/download/latest/sidestepper-macos-x86_64)
|
||||||
- [macOS aarch64](https://forge.joshwel.co/mark/sidestepper/releases/download/latest/sidestepper-macos-aarch64)
|
- [macOS aarch64](https://forge.joshwel.co/mark/sidestepper/releases/download/latest/sidestepper-macos-aarch64)
|
||||||
|
|
||||||
(also available in the 'releases' tab wherever this repository is situated in)
|
(also available in the 'releases' tab wherever this repository is situated in)
|
||||||
|
@ -57,6 +57,7 @@ but if you want it to output external-tool-friendly output to stdout, pass in
|
||||||
|
|
||||||
## historical changes
|
## historical changes
|
||||||
|
|
||||||
|
- v5 (i3/a6) - fix for a silly bug (not properly checking if a .sotaignore entry already exists before writing it)
|
||||||
- v5 (i3/a5) - 3rd implementation, rewritten in rust lol (no longer using iod-ttt,
|
- v5 (i3/a5) - 3rd implementation, rewritten in rust lol (no longer using iod-ttt,
|
||||||
just piggybacking off [ignore](https://crates.io/crates/ignore)'s WalkBuilder)
|
just piggybacking off [ignore](https://crates.io/crates/ignore)'s WalkBuilder)
|
||||||
- v4 (i2/a4) - optimised single iod-ttt
|
- v4 (i2/a4) - optimised single iod-ttt
|
||||||
|
|
28
build.ps1
Normal file
28
build.ps1
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
# powershell script to build all the binaries!!1!
|
||||||
|
# requires: NixOS-WSL under the distro name "NixOS" / "nixos"
|
||||||
|
|
||||||
|
# fish out the version via latest git tag, and mkdir in releases/
|
||||||
|
$version = git describe --tags --abbrev=0
|
||||||
|
New-Item -ItemType Directory -Force -Path "releases/$version"
|
||||||
|
|
||||||
|
# build 1/3: windows
|
||||||
|
cargo build --release
|
||||||
|
cp target/release/sidestepper.exe releases/$version/sidestepper-windows-x86_64.exe
|
||||||
|
|
||||||
|
# build 2/3: static linux
|
||||||
|
wsl -d nixos -- nix develop --command rustup default stable
|
||||||
|
wsl -d nixos -- nix develop --command rustup target add x86_64-unknown-linux-musl
|
||||||
|
wsl -d nixos -- nix develop --command cargo build --release --target x86_64-unknown-linux-musl
|
||||||
|
cp target/x86_64-unknown-linux-musl/release/sidestepper releases/$version/sidestepper-linux-x86_64
|
||||||
|
|
||||||
|
# build 3/3: universal macOS
|
||||||
|
wsl -d nixos -- nix develop --command rustup target add x86_64-apple-darwin
|
||||||
|
wsl -d nixos -- nix develop --command rustup target add aarch64-apple-darwin
|
||||||
|
wsl -d nixos -- nix develop --command cargo zigbuild --release --target x86_64-apple-darwin
|
||||||
|
wsl -d nixos -- nix develop --command cargo zigbuild --release --target aarch64-apple-darwin
|
||||||
|
wsl -d nixos -- nix develop --command cargo zigbuild --release --target universal2-apple-darwin
|
||||||
|
cp target/universal2-apple-darwin/release/sidestepper releases/$version/sidestepper-macos-universal
|
||||||
|
cp target/x86_64-apple-darwin/release/sidestepper releases/$version/sidestepper-macos-x86_64
|
||||||
|
cp target/aarch64-apple-darwin/release/sidestepper releases/$version/sidestepper-macos-aaarch64
|
||||||
|
|
||||||
|
echo done!
|
Loading…
Add table
Reference in a new issue