Skip to content

Commit

Permalink
chore: bump version to v0.7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
drl990114 committed Feb 12, 2024
1 parent 2527a79 commit 98aa399
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
2 changes: 1 addition & 1 deletion apps/desktop/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "markflowy"
version = "0.7.2"
version = "0.7.4"
description = "A Markdown Editor App"
authors = ["drl990114"]
license = ""
Expand Down
16 changes: 11 additions & 5 deletions apps/desktop/src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"productName": "MarkFlowy",
"version": "0.7.3",
"version": "0.7.4",
"identifier": "com.drl990114.markflowy",
"build": {
"beforeDevCommand": "yarn dev",
Expand All @@ -12,7 +12,9 @@
"open": true
},
"updater": {
"endpoints": ["https://drl990114.github.io/MarkFlowy/install.json"],
"endpoints": [
"https://drl990114.github.io/MarkFlowy/install.json"
],
"active": true,
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDg3M0ZEQUYyOEMyNjVCNTIKUldSU1d5YU04dG8vaDFTemY1RVdrTWNNTUdvMlQ3K05nMnJSQzc5cldQZXM4N2N1ejF3UnJsM1kK",
"windows": {
Expand All @@ -37,7 +39,9 @@
"type": "embedBootstrapper"
},
"wix": {
"language": ["en-US"]
"language": [
"en-US"
]
}
},
"macOS": {
Expand All @@ -53,9 +57,11 @@
"security": {
"assetProtocol": {
"enable": true,
"scope": ["**"]
"scope": [
"**"
]
},
"csp": null
}
}
}
}
9 changes: 2 additions & 7 deletions cli/src/release.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@ pub struct Release {

#[derive(serde::Deserialize, serde::Serialize)]
struct Package {
package: PackageData,
}

#[derive(serde::Deserialize, serde::Serialize)]
struct PackageData {
version: String,
}

Expand All @@ -38,7 +33,7 @@ fn get_old_version() -> String {
let package_str = std::fs::read_to_string(PACKAGEFILE_URL).unwrap();
let package: Package = serde_json::from_str::<Package>(&package_str).unwrap();

return package.package.version;
return package.version;
}

fn write_new_version(new_version: String) {
Expand All @@ -51,7 +46,7 @@ fn write_new_version(new_version: String) {
let mut crate_data: Map<String, serde_json::Value> = toml::from_str(&crates_str).unwrap();

crate_data.get_mut("package").unwrap()["version"] = Value::String(new_version.clone());
package.get_mut("package").unwrap()["version"] = Value::String(new_version.clone());
package["version"] = Value::String(new_version.clone());

let new_package_str =
serde_json::to_string_pretty::<Map<String, serde_json::Value>>(&package).unwrap();
Expand Down

0 comments on commit 98aa399

Please sign in to comment.