version bump (#1423)

* version bump

* set `Current`

* update welcome message and adjust styling

Co-authored-by: Lucy Cifferello <12953208+elvece@users.noreply.github.com>
This commit is contained in:
Aiden McClelland
2022-05-04 18:36:23 -04:00
committed by GitHub
parent 4ac03293ed
commit 17270e41fd
10 changed files with 51 additions and 20 deletions

2
backend/Cargo.lock generated
View File

@@ -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",

View File

@@ -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"

View File

@@ -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::Version>),
V0_3_0_1(Wrapper<v0_3_0_1::Version>),
V0_3_0_2(Wrapper<v0_3_0_2::Version>),
V0_3_0_3(Wrapper<v0_3_0_3::Version>),
Other(emver::Version),
}
@@ -122,6 +124,7 @@ pub async fn init<Db: DbHandle>(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"),

View File

@@ -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);

View File

@@ -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<Db: DbHandle>(&self, _db: &mut Db) -> Result<(), Error> {
Ok(())
}
async fn down<Db: DbHandle>(&self, _db: &mut Db) -> Result<(), Error> {
Ok(())
}
}

View File

@@ -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": {

View File

@@ -1,6 +1,6 @@
<ion-header>
<ion-toolbar>
<ion-title>{{ version }} Release Notes</ion-title>
<ion-title>Release Notes</ion-title>
<ion-buttons slot="end">
<ion-button (click)="dismiss()">
<ion-icon slot="icon-only" name="close"></ion-icon>
@@ -10,13 +10,14 @@
</ion-header>
<ion-content class="ion-padding">
<p class="note-padding">Minor compatibility fix.</p>
<h5>Previous releases:</h5>
<h6>0.3.0.1 Release Notes</h6>
<p>Minor bugfixes and performance improvements.</p>
<p></p>
<h6>0.3.0 Release Notes</h6>
<h4>This release:</h4>
<p class="section-subheader">{{ version }}</p>
<p class="note-padding">Bugfixes and minor performance updates.</p>
<h4>Previous releases:</h4>
<p class="section-subheader">0.3.0.2</p>
<p class="note-padding">Minor bugfixes and performance improvements.</p>
<p></p>
<p class="section-subheader">0.3.0</p>
<p>
Check out the full
<a

View File

@@ -19,3 +19,11 @@
.note-padding {
padding-bottom: 12px;
}
.section-subheader {
font-weight: bold;
}
h4 {
font-style: italic;
}

View File

@@ -20,7 +20,7 @@ export const mockPatchData: DataModel = {
},
'server-info': {
id: 'embassy-abcdefgh',
version: '0.3.0.1',
version: '0.3.0.3',
'last-backup': null,
'lan-address': 'https://embassy-abcdefgh.local',
'tor-address': 'http://myveryownspecialtoraddress.onion',

View File

@@ -865,7 +865,7 @@ dependencies = [
[[package]]
name = "embassy-os"
version = "0.3.0"
version = "0.3.0-rev.3"
dependencies = [
"aes",
"async-trait",