diff --git a/backend/Cargo.lock b/backend/Cargo.lock index 4b06e53c4..36401ab2a 100644 --- a/backend/Cargo.lock +++ b/backend/Cargo.lock @@ -825,7 +825,7 @@ dependencies = [ [[package]] name = "embassy-os" -version = "0.3.0-rev.2" +version = "0.3.0-rev.3" dependencies = [ "aes", "async-trait", diff --git a/backend/Cargo.toml b/backend/Cargo.toml index 08f228212..3b0b9447c 100644 --- a/backend/Cargo.toml +++ b/backend/Cargo.toml @@ -14,7 +14,7 @@ keywords = [ name = "embassy-os" readme = "README.md" repository = "https://github.com/Start9Labs/embassy-os" -version = "0.3.0-rev.2" +version = "0.3.0-rev.3" [lib] name = "embassy" diff --git a/backend/src/version/mod.rs b/backend/src/version/mod.rs index a78752b80..4c74588e5 100644 --- a/backend/src/version/mod.rs +++ b/backend/src/version/mod.rs @@ -11,8 +11,9 @@ use crate::{Error, ResultExt}; mod v0_3_0; mod v0_3_0_1; mod v0_3_0_2; +mod v0_3_0_3; -pub type Current = v0_3_0_2::Version; +pub type Current = v0_3_0_3::Version; #[derive(serde::Serialize, serde::Deserialize)] #[serde(untagged)] @@ -20,6 +21,7 @@ enum Version { V0_3_0(Wrapper), V0_3_0_1(Wrapper), V0_3_0_2(Wrapper), + V0_3_0_3(Wrapper), Other(emver::Version), } @@ -122,6 +124,7 @@ pub async fn init(db: &mut Db) -> Result<(), Error> { Version::V0_3_0(v) => v.0.migrate_to(&Current::new(), db).await?, Version::V0_3_0_1(v) => v.0.migrate_to(&Current::new(), db).await?, Version::V0_3_0_2(v) => v.0.migrate_to(&Current::new(), db).await?, + Version::V0_3_0_3(v) => v.0.migrate_to(&Current::new(), db).await?, Version::Other(_) => { return Err(Error::new( eyre!("Cannot downgrade"), diff --git a/backend/src/version/v0_3_0_2.rs b/backend/src/version/v0_3_0_2.rs index 90f1f30cd..fe8397b8a 100644 --- a/backend/src/version/v0_3_0_2.rs +++ b/backend/src/version/v0_3_0_2.rs @@ -1,13 +1,6 @@ -use std::path::Path; - use emver::VersionRange; -use tokio::process::Command; use super::*; -use crate::disk::quirks::{fetch_quirks, save_quirks, update_quirks}; -use crate::disk::BOOT_RW_PATH; -use crate::update::query_mounted_label; -use crate::util::Invoke; const V0_3_0_2: emver::Version = emver::Version::new(0, 3, 0, 2); diff --git a/backend/src/version/v0_3_0_3.rs b/backend/src/version/v0_3_0_3.rs new file mode 100644 index 000000000..4f6c9ffda --- /dev/null +++ b/backend/src/version/v0_3_0_3.rs @@ -0,0 +1,26 @@ +use emver::VersionRange; + +use super::*; + +const V0_3_0_3: emver::Version = emver::Version::new(0, 3, 0, 3); + +pub struct Version; +#[async_trait] +impl VersionT for Version { + type Previous = v0_3_0_2::Version; + fn new() -> Self { + Version + } + fn semver(&self) -> emver::Version { + V0_3_0_3 + } + fn compat(&self) -> &'static VersionRange { + &*v0_3_0::V0_3_0_COMPAT + } + async fn up(&self, _db: &mut Db) -> Result<(), Error> { + Ok(()) + } + async fn down(&self, _db: &mut Db) -> Result<(), Error> { + Ok(()) + } +} diff --git a/frontend/package.json b/frontend/package.json index 3d42535e9..995df8163 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,6 +1,6 @@ { "name": "embassy-os", - "version": "0.3.0.2", + "version": "0.3.0.3", "author": "Start9 Labs, Inc", "homepage": "https://start9.com/", "scripts": { diff --git a/frontend/projects/ui/src/app/modals/os-welcome/os-welcome.page.html b/frontend/projects/ui/src/app/modals/os-welcome/os-welcome.page.html index 33cbd75f2..27b00f928 100644 --- a/frontend/projects/ui/src/app/modals/os-welcome/os-welcome.page.html +++ b/frontend/projects/ui/src/app/modals/os-welcome/os-welcome.page.html @@ -1,6 +1,6 @@ - {{ version }} Release Notes + Release Notes @@ -10,13 +10,14 @@ -

Minor compatibility fix.

-
Previous releases:
-
0.3.0.1 Release Notes
-

Minor bugfixes and performance improvements.

-

-
0.3.0 Release Notes
+

This release:

+

{{ version }}

+

Bugfixes and minor performance updates.

+

Previous releases:

+

0.3.0.2

+

Minor bugfixes and performance improvements.

+

0.3.0

Check out the full