Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,22 @@ jobs:
run: |
cargo check -p rompatch-gui --release
cargo clippy -p rompatch-gui --all-targets -- -D warnings
# Guard against a release whose binary version (Cargo.toml) doesn't
# match the git tag. The updater manifest below derives its version
# from $GITHUB_REF_NAME while the installed app reports its version
# from Cargo.toml - if they disagree, every client gets stuck in an
# update loop because the "new" binary still reports the old version.
- name: verify tag matches Cargo.toml workspace version
if: startsWith(github.ref, 'refs/tags/')
run: |
set -euo pipefail
TAG_VERSION="${GITHUB_REF_NAME#v}"
CARGO_VERSION=$(cargo metadata --no-deps --format-version 1 \
| jq -r '.packages[] | select(.name=="rompatch-gui") | .version')
if [ "$TAG_VERSION" != "$CARGO_VERSION" ]; then
echo "::error::tag $GITHUB_REF_NAME (version $TAG_VERSION) does not match Cargo.toml ($CARGO_VERSION)"
exit 1
fi
# On tag pushes, produce a universal-apple-darwin .dmg.
# `cargo-binstall` pulls prebuilt tauri-cli binaries instead of
# building from source (~3-5 min saved per tagged release).
Expand Down
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ members = ["crates/rompatch-core", "crates/rompatch", "crates/rompatch-gui"]
exclude = ["fuzz"]

[workspace.package]
version = "0.2.3"
version = "0.3.1"
edition = "2021"
license = "MIT OR Apache-2.0"
repository = "https://github.com/GregTheGreek/rompatch-rs"
Expand Down
2 changes: 1 addition & 1 deletion crates/rompatch-gui/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ crate-type = ["rlib"]
tauri-build = { version = "=2.6.1", features = [] }

[dependencies]
rompatch-core = { version = "=0.2.3", path = "../rompatch-core", features = ["serde"] }
rompatch-core = { version = "=0.3.1", path = "../rompatch-core", features = ["serde"] }
serde = { version = "=1.0.228", features = ["derive"] }
serde_json = "=1.0.149"
sha2 = "=0.10.9"
Expand Down
2 changes: 1 addition & 1 deletion crates/rompatch-gui/ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rompatch-ui",
"version": "0.2.3",
"version": "0.3.1",
"description": "React frontend for the rompatch native GUI",
"private": true,
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion crates/rompatch/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ name = "rompatch"
path = "src/main.rs"

[dependencies]
rompatch-core = { path = "../rompatch-core", version = "0.2.3" }
rompatch-core = { path = "../rompatch-core", version = "0.3.1" }
lexopt = "0.3"

[lints]
Expand Down
Loading