blob: 3a09a9ee0db11bf64d64f54aaf989accd77d7633 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
# %%
""""Ensure that version numbers between `tauri.conf.json`, `cargo.toml`, and GitHub release are the same"""
import json
import toml
with open("src-tauri/tauri.conf.json", "rt") as f:
tauri_conf_json = json.load(f)
with open("src-tauri/Cargo.toml", "rt") as f:
Cargo_toml = toml.load(f)
tauri_conf_json["package"]["version"]
Cargo_toml["package"]["version"]
assert(tauri_conf_json["package"]["version"] == Cargo_toml["package"]["version"])
|